mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 19:19:12 +01:00
Simple mobs now have a var that can be toggled to make them taser immune
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
var/assist_distance = 25 // Radius in which I'll ask my comrades for help.
|
||||
var/supernatural = 0 // If the mob is supernatural (used in null-rod stuff for banishing?)
|
||||
var/grab_resist = 75 // Chance of me resisting a grab attempt.
|
||||
var/taser_kill = 1 // Is the mob weak to tasers
|
||||
|
||||
//Attack ranged settings
|
||||
var/ranged = 0 // Do I attack at range?
|
||||
@@ -1439,16 +1440,17 @@
|
||||
|
||||
//Shot with taser/stunvolver
|
||||
/mob/living/simple_animal/stun_effect_act(var/stun_amount, var/agony_amount, var/def_zone, var/used_weapon=null)
|
||||
var/stunDam = 0
|
||||
var/agonyDam = 0
|
||||
if(taser_kill)
|
||||
var/stunDam = 0
|
||||
var/agonyDam = 0
|
||||
|
||||
if(stun_amount)
|
||||
stunDam += stun_amount * 0.5
|
||||
adjustFireLoss(stunDam)
|
||||
if(stun_amount)
|
||||
stunDam += stun_amount * 0.5
|
||||
adjustFireLoss(stunDam)
|
||||
|
||||
if(agony_amount)
|
||||
agonyDam += agony_amount * 0.5
|
||||
adjustFireLoss(agonyDam)
|
||||
if(agony_amount)
|
||||
agonyDam += agony_amount * 0.5
|
||||
adjustFireLoss(agonyDam)
|
||||
|
||||
/mob/living/simple_animal/emp_act(severity)
|
||||
if(!isSynthetic())
|
||||
|
||||
Reference in New Issue
Block a user