fixes monkey telekinesis (#85513)

## About The Pull Request
fixes monkey ai hitting u from a distance with unloaded guns 

## Why It's Good For The Game
fixes monkey ai hitting u from a distance with unloaded guns 

## Changelog
🆑
fix: fixes monkey ai hitting u from a distance with unloaded guns 
/🆑
This commit is contained in:
Ben10Omintrix
2024-08-14 13:21:40 +02:00
committed by GitHub
parent d598d4ff3b
commit 5d0fc8b1db
+1 -1
View File
@@ -197,7 +197,7 @@
var/can_shoot = gun?.can_shoot() || FALSE
if(gun && controller.blackboard[BB_MONKEY_GUN_WORKED] && prob(95))
// We attempt to attack even if we can't shoot so we get the effects of pulling the trigger
gun.melee_attack_chain(living_pawn, real_target)
gun.interact_with_atom(real_target, living_pawn)
controller.set_blackboard_key(BB_MONKEY_GUN_WORKED, can_shoot ? TRUE : prob(80)) // Only 20% likely to notice it didn't work
if(can_shoot)
controller.set_blackboard_key(BB_MONKEY_GUN_NEURONS_ACTIVATED, TRUE)