* last change to player.ship.manifest: manifest.food & similar are now read/write manifest quantities. Internally all commodities are now going to be referenced by the canonical identifiers, commodities.plist still overrides the displayName - the .manifest.list array is unchanged, and still read-only.
* renamed 2 ship properties for consistency: ship.availableCargoSpace & ship.cargoCapacity now become ship.cargoSpaceAvailable & ship.cargoSpaceCapacity.
- more code tidying.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2637 127b21dd-08f5-0310-b4b7-95ae10353056
* new: ship.addPassenger(name, start, destination, eta, fee) and ship.awardContract(quantity, commodity, start, destination, eta, fee) functions. Currently only apply to player.ship, these add a passenger / a special delivery contract to the player.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2633 127b21dd-08f5-0310-b4b7-95ae10353056
* new: ship.passengers array: {name, start, destination,eta, premium, fee, startName, destinationName, etaDescription}
* new: ship.contracts array: {commodity, quantity, description, start, destination,eta, premium, fee, startName, destinationName, etaDescription}
* change: player.ship.manifest is now an object instead of an array - new properties: manifest.food , manifest['alien items'] etc.. plus manifest.list (array, equivalent of the 'old' .manifest) the commodity objects themselves changed to be consistent with the new .contracts array (name -> commodity, displayName -> commodityName) example of new usage from console: if (PS.manifest.food) PS.manifest.food.quantity
- yet more code cleanup
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2617 127b21dd-08f5-0310-b4b7-95ae10353056
* Change: load failure prefix string altered to avoid the silly sounding 'Saved game failed to load. Could not load file.' That now reads 'Failed to restore saved game. Could not load file.': half as mysterious! :)
* Game Over fixes:
- after game over, Oolite now restores the last saved game.
- there should be no more 'xyz broken equipment' messages after dying now.
I'm fairly sure I haven't broken anything there, but will port to maintenance after some more testing.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2616 127b21dd-08f5-0310-b4b7-95ae10353056
- renamed to ship.equipment, now works for NPCs too, and excludes missiles & primary weapons
- ship.missiles array: lists all the missiles (including external storage) equipped - NB: like hasOneEquipmentItem includeMissiles, it's somewhat inaccurate for NPCs
- Primary weapons types now accessed using the new ship.forwardWeapon, ship.aftWeapon, ship.portWeapon, ship.starboardWeapon properties - for NPCs too.
* All weapon type-to-string functions now work properly for twin plasma cannons too.
- more minor code cleanup.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2614 127b21dd-08f5-0310-b4b7-95ae10353056
- no more autosave immediately after a restart.
- removed duplicate screen message during autosave.
- autosaved commander name is now 'CommanderName (autosave)' instead of 'autosave' as before.
* Trunk:
- changed the name of the autosave description key inside plist.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2609 127b21dd-08f5-0310-b4b7-95ae10353056
* new: player.ship.equipmentList[] readonly - each item listed has 4 properties{type,facing,isOk} facing uses WEAPON_FACING_NONE to WEAPON_FACING_STARBOARD, stored as int. Still needs a js helper function.
* new: Oolite.gameSettings{} readonly - the properties that can be queried atm: autosave, wireframeGraphics, procedurallyTexturedPlanets, musicMode, speechOn, reducedDetailGraphics, shaderEffectsLevel.
* change: planet.texture (read/write property) replaces the now deprecated setTexture() method.
- minor comments cleanup
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2608 127b21dd-08f5-0310-b4b7-95ae10353056
* any found system in galaxy map is now restored properly from save games.
* various found system bugfixes.
* corrected new nova mission string typo.
Maintenance & Trunk:
* friendlier handling for missing ']' in expandDescription: will return the unexpanded string instead of nil, plus warning integrated better with logcontrol.plist
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2590 127b21dd-08f5-0310-b4b7-95ae10353056