Give me the peac gun (#12295)

This commit is contained in:
Alberyk
2021-08-17 12:08:42 -03:00
committed by GitHub
parent 9b561c01cc
commit e0a44e7a19
20 changed files with 183 additions and 15 deletions

View File

@@ -307,4 +307,10 @@
for(var/obj/item/protection in list(head, wear_mask, glasses))
if(protection.protects_eyestab(stab_item, stabbed))
return TRUE
return FALSE
return FALSE
/mob/living/carbon/human/is_anti_materiel_vulnerable()
if(isSynthetic())
return TRUE
else
return FALSE

View File

@@ -1021,4 +1021,7 @@ default behaviour is:
set_death_time(CREW, world.time)
//Used by simple animals and monkey species for renaming. M is the one doing the renaming
/mob/living/proc/can_name(var/mob/living/M)
return FALSE
/mob/living/proc/is_anti_materiel_vulnerable()
return FALSE

View File

@@ -40,6 +40,8 @@
//Armor
var/damage = P.damage
var/flags = P.damage_flags()
if(is_anti_materiel_vulnerable())
damage = P.damage * P.anti_materiel_potential
var/damaged
if(!P.nodamage)
damaged = apply_damage(damage, P.damage_type, def_zone, damage_flags = P.damage_flags(), used_weapon = P, armor_pen = P.armor_penetration)

View File

@@ -930,6 +930,12 @@
/mob/living/simple_animal/set_respawn_time()
set_death_time(ANIMAL, world.time)
/mob/living/simple_animal/is_anti_materiel_vulnerable()
if(isSynthetic())
return TRUE
else
return FALSE
#undef BLOOD_NONE
#undef BLOOD_LIGHT
#undef BLOOD_MEDIUM