Config/script.js |
/*
based on the sell_equipment script from Commander McLane
Script for selling the beer cooler
Oolite
Copyright © 2003-2013 Giles C Williams and contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
beercooler.oxp
Copyright © 2012-2014 "Maik"
This work is licensed under the Creative Commons
Attribution-Noncommercial-Share Alike 3.0 Unported License.
To view a copy of this license, visit
http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter
to Creative Commons, 171 Second Street, Suite 300, San Francisco,
California, 94105, USA.
*/
this.name = "oolite.oxp.beercooler";
this.description = "script for selling the beer cooler";
this.author = "Maik";
this.copyright = "© 2014 Maik";
this.license = "CC-by-nc-sa 3.0";
this.version = "1.1.0";
/* event handler */
this.playerBoughtEquipment = function(equipmentKey)
{
if(equipmentKey == "EQ_BEERCOOLER_REMOVAL")
{
player.ship.removeEquipment("EQ_BEERCOOLER");
player.ship.removeEquipment("EQ_BEERCOOLER_REMOVAL");
}
}
|