502 Commits

Author SHA1 Message Date
AnotherCommander
32075335f5 Fixed broken Advanced Space Compass not being broken enough and introduced the JS PlayerShip class read/write property compassType (use with caution). 2017-01-13 15:11:23 +01:00
AnotherCommander
b779a8f3ac Fixed fee alignment also for passenger contracts. 2016-12-10 23:02:40 +01:00
AnotherCommander
d91d4dd02f Fixed fee alignment in parcel contracts screen. 2016-12-10 22:16:59 +01:00
AnotherCommander
0ae90a9847 Fixed planet government and economy icons not appearing in contracts screens if concealment was not defined. 2016-09-27 21:30:24 +02:00
Kevin Anthoney
91ad49fd1c hide system icons from cargo description for appropriate concealment level 2016-08-10 19:04:11 +01:00
AnotherCommander
2828b0c017 Fix previous fix. 2016-03-21 17:09:41 +01:00
AnotherCommander
0b1524317f Fixed incorrect parcels indexing when more than 10 parcel contracts were present. 2016-03-21 16:22:01 +01:00
AnotherCommander
623f9efd1b Fixed potential negative energy gain when shield boosters got damaged. Added comment at the point in the core where such condition is allowed to oocur, but left it unchanged in case OXPs rely on this behaviour. 2016-01-04 08:50:36 +01:00
AnotherCommander
d98115f54a Tentative fix for occasional null docking instructions in priority AI JS script. 2015-12-13 16:23:08 +01:00
cim
59d35952e9 Fix trumble mission so it ends after nova if not before 2015-11-28 15:16:57 +00:00
AnotherCommander
3d52ff353f Fixed missile AI apparently ignoring cloak activation. 2015-11-28 13:31:24 +01:00
cim
eb7e9a9b80 Use hudAllowsBigGui in contracts interfaces 2015-08-12 20:22:04 +01:00
cim
000df2d61b Add screenIDs to all core game mission screens 2015-08-11 21:01:54 +01:00
cim
389e3d4a2e Fix deprecation warnings in core code 2015-05-05 20:20:46 +01:00
cim
d8760f676f Include bounty resetting in tutorial reset function
Otherwise it can become impossible to complete stage 9
2015-05-01 17:40:28 +01:00
cim
5eaae4bef2 Fix issue with AIs trying to enter system 0 2015-04-28 17:57:48 +01:00
cim
408f8ce19d Fix issues with system ID 0 in trader AIs 2015-04-24 17:53:26 +01:00
cim
85334f4166 Fix issues with distress calls around stations 2015-04-20 18:23:27 +01:00
cim
055d2fa9b7 Allow condition scripts to be applied to ship library (closes #88) 2015-04-18 11:11:15 +01:00
AnotherCommander
97d097b8ec Fix stray yellow surround rectangle showing up when it shouldn't during tutorial. 2015-04-17 21:55:18 +02:00
cim
4ecd779536 Make it possible to view the ship library in game (issue #88)
Not yet possible to modify visibility of entries.
2015-04-16 21:31:15 +01:00
cim
8c3311aba8 Fix some AI errors in nova systems 2015-04-07 18:21:38 +01:00
cim
e8695c2c86 Fix some issues with removeDefenseTarget being potentially given a wormhole 2015-04-07 16:53:54 +01:00
cim
9a42498ab2 Remove debug statements 2015-04-03 14:44:24 +01:00
cim
cc8b9f53af Fix bug identified by phkb in home/destination generation 2015-04-01 11:10:28 +01:00
cim
9f6972a70d Try to fix issues with ships entering hyperspace near large stations 2015-03-24 18:45:57 +00:00
cim
eeaf83c14a Ensure main station exists before checking its properties 2015-03-16 18:13:36 +00:00
cim
1744ec9e52 Try again to prevent attacking wormholes 2015-03-08 11:58:13 +00:00
cim
c171f68507 Make the infinite loop preventer actually prevent infinite loops. 2015-02-05 19:53:43 +00:00
cim
902e304801 Add a behaviourWaitHere to priority AI, slightly adjust its debug behaviour 2015-01-27 21:31:01 +00:00
Jens Ayton
79bc9e473f Locale function tweaks
* Use normal string expansions for credit format
* Use format strings for negation
* Insure against recursion in credits expansion
2015-01-09 22:20:52 +01:00
cim
59519b6e59 Allow patrol lengths to be varied in AI if needed 2015-01-08 22:12:25 +00:00
cim
c8dcb0233e Contracts should not be generated to nova systems 2014-12-29 22:32:54 +00:00
cim
96a31e8a4c Fix targeting of wormholes in combat by NPCs 2014-12-29 16:25:08 +00:00
cim
8c5f17c0c8 Allow conditions scripts to update equipment sale price
this.updateEquipmentPrice(eqKey, price) returns price
Called before multiplier for station.
2014-12-15 18:12:49 +00:00
cim
7a96a62f64 Allow galdrive, escape pod, dock comp to be provided. 2014-12-14 21:20:28 +00:00
cim
fd8fbcd881 Scripts for large cargo bay. ship.cargoSpaceCapacity now writable 2014-12-14 18:50:05 +00:00
cim
e74163e878 Scriptable control over heat shielding equipment items 2014-12-14 17:23:31 +00:00
cim
a49b16fb90 Move energy units into scripted configuration 2014-12-13 15:47:35 +00:00
cim
fd9bded6dc Clean up script startup slightly 2014-12-13 14:35:22 +00:00
cim
eb8f381622 equipmentAdded / equipmentRemoved generic events for ships
Adjust to make use of these events.
2014-12-13 14:01:17 +00:00
cim
8efc8ec25e Split forward/aft shield strengths and recharge for player
Make them writable with JS
Start on scriptable equipment functions in JS with the shield boosters
(the NPC versions stay hard-coded for now, and might as well continue
to do so until/unless NPC shields get implemented)
2014-12-12 22:02:46 +00:00
cim
681f4a676e Fix missing ! 2014-12-12 17:08:32 +00:00
cim
84e97c1ca8 Update priority AI to use hasEquipmentProviding 2014-12-11 21:39:47 +00:00
cim
1de828017d Various bugfixes
- saveload and planetinfo changes
 - corona_flare now more consistent with radius of planet
 - system info during nova mission saved better
2014-12-06 15:05:37 +00:00
cim
8eebf744ed Fix another case of defense target functions potentially being used on wormholes 2014-12-06 09:34:51 +00:00
cim
02f5ad4b18 Fix some cases of bad defense target AI
(Copying a primary target to a defense target must check it's a ship first)
2014-11-28 14:25:47 +00:00
cim
04b6994398 Allow tracking of ships beyond scanner range, cloaked ships
...if already targeted as primary target.

Also allow ships attacked by military laser from beyond scanner range to
target aggressor.

Still to do: significant aim worsening if fighting cloaked ship.
2014-11-26 22:59:28 +00:00
cim
49db516d3d Make sure all populator-added hermits are CLASS_ROCK 2014-09-29 19:51:56 +01:00
cim
2b7df8cce1 Adjust odds calculator
Groups will now engage in combat without needing an excessive advantage over
the opposing force - 3:1 or even lower odds will be fine (a Krait assassin
will sometimes attack a Cobra III, because of its high armament)
2014-09-22 16:21:39 +01:00