378 Commits

Author SHA1 Message Date
cim
f51d9a0dac Fix bugs in trader[-smuggler] player role assignment, and tidy up a bit 2013-09-09 20:55:48 +01:00
cim
a3acea0ab3 Now roles are working, pirates can just check if ship can carry cargo, not if it does. 2013-09-08 21:23:00 +01:00
cim
f97bdb7667 Use roles for pirate victims, pirate enemies, friendly fire checks 2013-09-08 17:20:28 +01:00
cim
ea8c9c7b8e Make it possible to translate the Moray Med's name without breaking cargo 2013-09-07 11:09:31 +01:00
cim
1bcee4b7b7 Police ships anti-theft mechanism; traders have slightly better combat response 2013-09-05 20:12:41 +01:00
cim
35da08ae64 ship.damageAssessment() to check damage levels (will do more when NPCs can be damaged)
Also: adjust independent pirate role odds to be more towards small ships, and adjust missile loads of ships to reflect prior action or high value
2013-09-04 22:25:54 +01:00
cim
09c85be7bd Make interceptors need a higher tech level, make cargo ejection faster 2013-09-03 18:22:49 +01:00
cim
59a906b992 Improve trader response to piracy. 2013-09-02 22:23:06 +01:00
cim
a2334ba5f4 Add basic aegis raiders, some bug fixes in station/defense ship AI 2013-09-01 19:25:45 +01:00
cim
fa7673722e Reduce frequency of trader variants, logging in _addShips 2013-08-31 22:52:53 +01:00
cim
ce8c9b5b10 Remove debug lines 2013-08-31 21:16:25 +01:00
cim
a710d2f746 End patrols when supplies are low. Pirate interceptors will avoid fights then. 2013-08-31 19:33:56 +01:00
cim
1d750d8432 Fix error with interstellar space 2013-08-31 18:16:30 +01:00
cim
fd5fcfeeb3 Search for wormholes if insufficient fuel to leave a bad system 2013-08-31 18:07:17 +01:00
cim
90cab901ee As suggested, give AI object a more accurate name 2013-08-31 16:21:07 +01:00
cim
c7e7e2f75f Improve distress message handling 2013-08-30 21:14:55 +01:00
cim
8cf615c168 Adjust populator settings and related AI a bit.
Main changes: more independent pirates in Feudal/Anarchy; repopulator has a cap on the number of ships it can accumulate in-system; certain ships have tendency towards awful or non-awful accuracy settings; independent pirate packs are slightly bigger; tharglets share accuracy of controller. Overall effect should be to make the difficulty slope between Corp and Anarchy larger, but Corp safer.
2013-08-27 22:08:35 +01:00
cim
028fa0c8aa Merge branch 'master' into steady-state-ecosystem
Conflicts:
	src/Core/Scripting/OOJSEntity.m
2013-08-27 13:15:33 +01:00
cim
7db8688052 Update version from 1.77.1 to 1.79 2013-08-27 12:51:53 +01:00
cim
b54ec84e71 Add opportunist AI 2013-08-26 17:08:05 +01:00
cim
3fa10abb5c Adjust comms messages, avoid over-filling pirates with cargo 2013-08-26 16:17:59 +01:00
cim
273b58b9a5 Adjust nova mission to new populator (and future ones) 2013-08-26 14:09:06 +01:00
cim
baf2efceea Merge branch 'javascript-ai' into steady-state-ecosystem
Conflicts:
	Resources/Scripts/oolite-populator.js
	src/Core/Universe.h
2013-08-26 13:59:45 +01:00
cim
172f66c4c5 Merge branch 'master' into javascript-ai
Conflicts:
	src/Core/Entities/PlayerEntityLoadSave.m
2013-08-26 13:41:16 +01:00
cim
1ef0989d73 Add ship registry interface to allow player to set names
Commander name now it's independent of savefile name; ship unique name at the same time.
2013-08-25 22:39:28 +01:00
cim
e6fb14ffbf Adjust cargo generation, especially for smugglers, medical.
Increase likely_cargo levels on pirate ships quite a bit (PIRATE_GOODS already reduces it once; no need to do so again in shipdata)
2013-08-25 13:14:02 +01:00
cim
330ddb0d04 Fix bug when firing on ships docking with station 2013-08-23 21:18:23 +01:00
cim
9ec115c0f7 Adjust combat target acquisition for escorts, fix bug in ECM assistance 2013-08-23 20:01:38 +01:00
cim
805ca6a238 Adjustments to pirate demand size and threat assessment calculation 2013-08-22 18:38:01 +01:00
cim
2fb4822833 Fix bug in acquireCombatTarget
-DDEBUG_LASER_TYPES compile-time option to allow easier visual inspection of the "autoWeapons" changes
2013-08-19 21:05:56 +01:00
cim
3dc9ef82cc conditionInCombat is called on just about every AI reconsideration; optimise it 2013-08-18 19:15:09 +01:00
cim
637043cd2c Slightly optimise conditionLosingCombat, and fix bug in witchspace flee 2013-08-18 16:36:57 +01:00
cim
f8e88a56b5 Fix bug in friendly/hostile/trading station selection 2013-08-17 20:41:36 +01:00
cim
8fd2a655e4 Prefix internal cache names with oolite_ 2013-08-17 15:19:25 +01:00
cim
6393b99fca Allow fleeing to witchspace in certain situations 2013-08-17 14:39:16 +01:00
cim
ada2aa8a2d Serious efficiency fixes to last few commits
ship.findNearestStation()
2013-08-17 13:26:37 +01:00
cim
13b7c1afff Add station.allegiance (allegiance shipdata) property
Adjust AIs to avoid hostile stations
Adjust pirate AI to not rob the same target twice in a row
2013-08-16 21:44:27 +01:00
cim
ba71ac58b2 Adjust pirate interceptor AI to assist nearby pirates in trouble 2013-08-16 18:00:46 +01:00
cim
c190ceea44 For consistency, auto_weapons should apply to populator-awarded equipment 2013-08-15 21:59:51 +01:00
cim
894d3d683b Add auto_weapons (ship.autoWeapons) parameter to shipdata.
If set (default 0), then populator has discretion to change ship weapons and other items to fit the ship's role. So far just does fore and aft lasers.
2013-08-15 21:53:17 +01:00
cim
ce2d77557d Make sure pirate escorts have a bounty, fix initial pirate cargo 2013-08-14 21:10:29 +01:00
cim
02d6dd2dca Use correct message class for populator debug logs 2013-08-13 21:18:44 +01:00
cim
b829eef4a2 Police witchpoint patrols AI adjustments 2013-08-12 18:45:09 +01:00
cim
2ad55255f1 System repopulation 2013-08-11 22:56:53 +01:00
cim
03f7fb174b Adjust populator functions to allow easy launching from station or planet
Fix pirate lurk calculations, tune a few other AI behaviours
2013-08-11 20:51:46 +01:00
cim
2da8ada948 Adjust populator functions for bounty hunters 2013-08-11 13:01:31 +01:00
cim
75d5748bce Bounty hunter leader AI 2013-08-10 08:34:33 +01:00
cim
9edbe45d63 Add pirate interceptor AI, fix some bugs in pirate freighter AI 2013-08-09 18:00:18 +01:00
cim
b00b1bb550 First go at pirateFreighter/Fighter AIs
Fix bug with launching ships with escorts, tidy up functions
New: ship.notifyGroupOfWormhole()
Introduce AI template blocks to compact AI writing even further.
2013-08-09 13:09:54 +01:00
cim
bcc93120d7 Add smugglers to pirate targets, give m/h hunters a pack 2013-08-08 16:21:21 +01:00