branchbefore/main/defendercancel
12 Commits over 0 Days - ∞cph!
Reworked raid interaction system, units can now keep performing appropriate interactions once they are in the camp (they'll keep eating your stuff if you don't fight them)
Can now specify a min/max number of units to spawn per unit type
Reimplemented some interaction target raid logic, raids can now look for things to eat and go and eat them
Added rats to the raid list, rats can go into camp and eat your food
Defend ally logic can now be triggered if an ally is being attacked (was previously only triggered if an ally was attacking something)
Defend ally logic now sets the combat target to the unit that is attacking the ally
Reworked raids from a desire into a group component
Longer duration to first raid
Added raid module to rats
Raiding animals can no longer flee
Can no longer disband raids (they either wipe out the tribe or get wiped out)
Reworked defend ally goal plan (just makes unit run to ally under attack, doesn't check for perception, other combat modules should take over once the unit gets into range)
Added a condition type to check for a unit's role
Added a bravery effect for defenders to make them more likely to stay and fight
Added a PlayerDisabledRole activity
New defender role, equips a wooden club and wanders around territory (still WIP)