mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] Landmine fixes (#11683)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c663a72b96
commit
d27275cced
@@ -97,8 +97,12 @@
|
||||
if(istype(M, /obj/mecha))
|
||||
explode(M)
|
||||
|
||||
if(istype(M, /obj/vehicle))
|
||||
explode(M)
|
||||
|
||||
if(istype(M, /mob/living/))
|
||||
if(!M.hovering) //CHOMPedit: let's not make wings ignore mines because we use those here.
|
||||
var/mob/living/mob = M
|
||||
if(!(mob.hovering || mob.flying || mob.is_incorporeal() || mob.mob_size <= MOB_TINY))
|
||||
explode(M)
|
||||
|
||||
/obj/effect/mine/attackby(obj/item/W as obj, mob/living/user as mob)
|
||||
@@ -430,6 +434,6 @@
|
||||
|
||||
// This tells AI mobs to not be dumb and step on mines willingly.
|
||||
/obj/item/mine/is_safe_to_step(mob/living/L)
|
||||
if(!L.hovering) //CHOMPedit: Let's not trivialize mines.
|
||||
if(!(L.hovering || L.flying || L.is_incorporeal() || L.mob_size <= MOB_TINY))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user