BurgerLUA / burgerstation

My main project. This is the repository for the upcoming BYOND game Burgerstation. Currently in development.
Other
39 stars 118 forks source link

Makes NPC's seek out players again #700

Closed Gboster-0 closed 1 month ago

Gboster-0 commented 1 month ago

What this PR does

Moves one var check back to where it was, specifically for if the AI has an objective to attack currently

This fixes random elimination squads/enemies chilling until you attack them

Why it should be added to the game

In the same commit that burger made AI's run away at round end, they tried to make the code a bit neater by pushing back can_attack and objective_attack 1 proc backwards. That in fact made every AI unable to find players, ever, as long as they were not attacked.