/*

anarchies-salvager-tugger-script.js

Script for making the Salvager Tugger part of the Salvage Gang's ship group.


Oolite
Copyright © 2004-2012 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.


Anarchies.oxp
Copyright © 2007-2012 "Commander McLane"

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.

*/

"use strict";

this.name = "anarchies-salvager-tugger-script";
this.description = "Ship script for Salvager Tuggers";
this.author = "Commander McLane";
this.copyright = "© 2012 Commander McLane";
this.license = "CC-by-nc-sa 3.0";
this.version = "2.8";


this.shipSpawned = function () {
	// establishing the ship group of the Salvage Gang
	var salvageGangGroup = system.shipsWithRole("anarchies_salvage_gang", this.ship)[0].group;
	// adding this ship (Salvager Tugger) to the group
	salvageGangGroup.addShip(this.ship);
	// setting the group attribute to this ship itself
	this.ship.group = salvageGangGroup;
}
