Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-Soaked committed Feb 28, 2024
1 parent 1cc012a commit 40ecae0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/game/objects/items/devices/mines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@

/// When something sets off a mine
/obj/item/mine/proc/triggermine(atom/movable/triggerer)
if(obj_integrity <= 0)
return
if(triggered) //too busy detonating to detonate again
return
if(triggerer)
Expand Down Expand Up @@ -402,9 +404,10 @@
var/spawn_number = 6

/obj/item/mine/spawner/mineEffect(mob/victim)
var/turf/T = get_turf(src)
playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
spawn_and_random_walk(spawn_type, T, spawn_number, walk_chance=50, admin_spawn=((flags_1 & ADMIN_SPAWNED_1) ? TRUE : FALSE))
if(isturf(loc))
var/turf/T = get_turf(src)
playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
spawn_and_random_walk(spawn_type, T, spawn_number, walk_chance=50, admin_spawn=((flags_1 & ADMIN_SPAWNED_1) ? TRUE : FALSE))
. = ..()

/obj/item/mine/spawner/manhack
Expand Down

0 comments on commit 40ecae0

Please sign in to comment.