Skip to content

Commit

Permalink
TGS Test Merge (#16114)
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyorange committed Jun 19, 2024
2 parents 17bb400 + 772b5d8 commit 819f6c2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 2 additions & 0 deletions code/game/objects/structures/razorwire.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
return
if(CHECK_BITFIELD(O.pass_flags, PASS_DEFENSIVE_STRUCTURE))
return
if(HAS_TRAIT(O, TRAIT_TANK_DESANT))
return
var/mob/living/M = O
if(M.status_flags & INCORPOREAL)
return
Expand Down
3 changes: 3 additions & 0 deletions code/game/objects/structures/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
if(crosser.throwing || crosser.buckled)
return

if(HAS_TRAIT(crosser, TRAIT_TANK_DESANT))
return

if(isvehicle(crosser))
var/obj/vehicle/vehicle = crosser
vehicle.last_move_time += slow_amt
Expand Down
19 changes: 12 additions & 7 deletions code/modules/projectiles/guns/_shared_ammo_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@
burn_ticks = 12

///Effects applied to a mob that crosses a burning turf
/obj/fire/flamer/on_cross(datum/source, mob/living/crosser, oldloc, oldlocs)
. = ..()
if(istype(crosser) || isobj(crosser))
crosser.fire_act(burn_level)
/obj/fire/flamer/on_cross(datum/source, atom/movable/crosser, oldloc, oldlocs)
if(!isliving(crosser) || isobj(crosser))
return
if(HAS_TRAIT(crosser, TRAIT_TANK_DESANT))
return
crosser.fire_act(burn_level)

/obj/fire/flamer/affect_mob(mob/living/carbon/affected)
. = ..()
Expand Down Expand Up @@ -207,6 +209,9 @@
target.apply_status_effect(STATUS_EFFECT_MELTING_FIRE, PYROGEN_MELTING_FIRE_EFFECT_STACK)
target.take_overall_damage(damage, BURN, FIRE, max_limbs = 2)

/obj/fire/melting_fire/on_cross(datum/source, mob/living/carbon/human/crosser, oldloc, oldlocs)
if(istype(crosser))
affect_mob(crosser)
/obj/fire/melting_fire/on_cross(datum/source, atom/movable/crosser, oldloc, oldlocs)
if(!ishuman(crosser))
return
if(HAS_TRAIT(crosser, TRAIT_TANK_DESANT))
return
affect_mob(crosser)

0 comments on commit 819f6c2

Please sign in to comment.