oolite/Resources/Config/characters.plist
Jens Ayton 30bce0b115 Great big lump o' stuff to deal with ship types and related things more cleanly.
OOShipRegistry parses shipdata.plist, shipyard.plist, demoships.plist and new shipdata-overrides.plist and shipyard-overrides.plist, resolves like_ship inheritance, does some sanity checking, filters out various sorts of invalid shipdata and shipyard entries and manages role->ship key mapping with probability weighting.

The latter is managed by OOProbabilitySet, which should probably be used by OORoleSet and OOProbabilisticTextureManager too. OOProbabilitySet is O(log n) for random selection instead of O(n) like the current linear-search code.

The next step is to start using OOShipRegistry everywhere.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1607 127b21dd-08f5-0310-b4b7-95ae10353056
2008-05-03 00:58:21 +00:00

40 lines
841 B
Plaintext

{
"constrictor-mission-thief" =
{
"random_seed" = "1 3 5 7 11 13"; // fix the name and details, but use the key to keep it secret
bounty = 1000; // not actually used, we do the reward in the script
origin = 7; // system number seven (Lave in Galaxy 0)
"script_actions" =
(
/*
check if docked
print congratulatory message from the Imperial Navy
award a special bounty
*/
{
conditions =
(
"status_string equal STATUS_DOCKED"
);
do =
(
{
conditions =
(
"gui_screen_string notequal GUI_SCREEN_MISSION"
);
do = (
"setMissionMusic: none",
"setMissionImage: none",
"showShipModel: none",
"setGuiToMissionScreen"
);
},
"awardCredits: 1000",
"addMissionText: conhunt-thief-captured"
);
}
);
};
}