mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
bugfix in anti-tamper proc
This commit is contained in:
@@ -5,11 +5,7 @@
|
||||
if(!(Proj.damage_type == BRUTE || Proj.damage_type == BURN))
|
||||
return
|
||||
|
||||
health -= Proj.damage
|
||||
|
||||
..()
|
||||
|
||||
if(locked && tamper_proof && health <= 0)
|
||||
if(locked && tamper_proof && health <= Proj.damage)
|
||||
if(tamper_proof == 2) // Mainly used for events to prevent any chance of opening the box improperly.
|
||||
visible_message("<font color='red'><b>The anti-tamper mechanism of [src] triggers an explosion!</b></font>")
|
||||
var/turf/T = get_turf(src.loc)
|
||||
@@ -33,9 +29,6 @@
|
||||
visible_message("<font color='green'><b>The anti-tamper mechanism of [src] fails!</b></font>")
|
||||
return
|
||||
|
||||
if(health <= 0)
|
||||
for(var/atom/movable/A as mob|obj in src)
|
||||
A.loc = src.loc
|
||||
qdel(src)
|
||||
..()
|
||||
|
||||
return
|
||||
@@ -533,6 +533,8 @@
|
||||
icon_override = 'icons/vore/custom_clothes_vr.dmi'
|
||||
item_state = "scree-helm_mob"
|
||||
|
||||
item_state_slots = list(slot_r_hand_str = "engspace_helmet", slot_l_hand_str = "engspace_helmet")
|
||||
|
||||
light_overlay = "helmet_light_dual"
|
||||
|
||||
species_restricted = null
|
||||
@@ -556,6 +558,8 @@
|
||||
icon_override = 'icons/vore/custom_clothes_vr.dmi'
|
||||
item_state = "scree-spess_mob"
|
||||
|
||||
item_state_slots = list(slot_r_hand_str = "eng_voidsuit", slot_l_hand_str = "eng_voidsuit")
|
||||
|
||||
species_restricted = null
|
||||
|
||||
mob_can_equip(var/mob/living/carbon/human/H, slot, disable_warning = 0)
|
||||
|
||||
Reference in New Issue
Block a user