Skip to content

Commit

Permalink
lantern fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Halonexus committed May 6, 2024
1 parent be53a1f commit 6da0908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/items/ego_weapons/teth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,16 @@
/obj/effect/temp_visual/lanterntrap/proc/burst()
var/turf/T = get_turf(src)
playsound(T, 'sound/effects/ordeals/amber/midnight_out.ogg', 40,TRUE)
for(var/turf/open/T2 in range(range, src))
for(var/turf/open/T2 in RANGE_TURFS(range, src))
new /obj/effect/temp_visual/yellowsmoke(T2)
for(var/mob/living/L in creator.HurtInTurf(T2, list(), resonance_damage * damage_multiplier, BLACK_DAMAGE, check_faction = TRUE, hurt_mechs = TRUE))
to_chat(L, span_userdanger("[src] bites you!"))
if(creator)
creator.visible_message(span_danger("[creator] activates [src] on [L]!"),span_danger("You activate [src] on [L]!"), null, COMBAT_MESSAGE_RANGE, L)
if(mine_mode == LANTERN_MODE_REMOTE)//So that you can't just place one automatic mine and 5 manual ones around it
rupturing = TRUE
for(var/obj/effect/temp_visual/lanterntrap/field in range((range * 2) + 1, src))//Wierd formula that lets you spread out your mines for a big aoe.
if(field.mine_mode == mine_mode)//So that it can't trigger automatic mines by accident.
for(var/obj/effect/temp_visual/lanterntrap/field in orange((range * 2) + 1, src))//Wierd formula that lets you spread out your mines for a big aoe.
if(field.mine_mode == mine_mode && !field.rupturing)//So that it can't trigger automatic mines by accident.
field.burst()
qdel(src)
else
Expand Down

0 comments on commit 6da0908

Please sign in to comment.