Merge pull request #763 from CHOMPStationBot/upstream-merge-9252

[MIRROR] [MIRROR] Stops slime securitrons from going ballistic when they get scratched
This commit is contained in:
Razgriz
2020-10-27 02:17:35 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
xeno_harm_strength = 9
req_one_access = list(access_research, access_robotics)
botcard_access = list(access_research, access_robotics, access_xenobiology, access_xenoarch, access_tox, access_tox_storage, access_maint_tunnels)
retaliates = FALSE
var/xeno_stun_strength = 6
/mob/living/bot/secbot/ed209/slime/update_icons()

View File

@@ -24,6 +24,7 @@
var/declare_arrests = FALSE // If true, announces arrests over sechuds.
var/threat = 0 // How much of a threat something is. Set upon acquiring a target.
var/attacked = FALSE // If true, gives the bot enough threat assessment to attack immediately.
var/retaliates = TRUE //If this type of secbot should retaliate at all - so that slime securitrons don't go ballistic the second they get glomped.
var/is_ranged = FALSE
var/awaiting_surrender = 0
@@ -64,6 +65,7 @@
desc = "A little security robot, with a slime baton subsituted for the regular one."
default_icon_state = "slimesecbot"
stun_strength = 10 // Slimebatons aren't meant for humans.
retaliates = FALSE // No, you're not allowed to beat the slimes to death just because they scratched you.
xeno_harm_strength = 9 // Weaker than regular slimesky but they can stun.
baton_glow = "#33CCFF"
@@ -194,7 +196,7 @@
..()
/mob/living/bot/secbot/proc/react_to_attack(mob/attacker)
if(!on) // We don't want it to react if it's off
if(!on || !retaliates) // We don't want it to react if it's off or doesn't care
return
if(!target)