Skip to content

Commit

Permalink
Fix explosives (#11750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukofamicom authored Oct 21, 2024
1 parent 495c043 commit 940ffa3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions code/game/turfs/closed/minerals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@
mineralAmt = 0
stage = GIBTONITE_DETONATE
explosion(bombturf,1,3,5, adminlog = notify_admins)
turf_destruction()

/turf/closed/mineral/gibtonite/proc/defuse()
if(stage == GIBTONITE_ACTIVE)
Expand All @@ -580,6 +581,8 @@
mineralAmt = 0
stage = GIBTONITE_DETONATE
explosion(bombturf,1,2,5, adminlog = 0)
turf_destruction()

if(stage == GIBTONITE_STABLE) //Gibtonite deposit is now benign and extractable. Depending on how close you were to it blowing up before defusing, you get better quality ore.
var/obj/item/gibtonite/G = new (src)
if(det_time <= 0)
Expand Down
11 changes: 8 additions & 3 deletions code/game/turfs/closed/wall/mineral_walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,16 @@
icon_state = "map-overspace"
fixed_underlay = list("space"=1)

/turf/closed/wall/mineral/plastitanium/explosive/ex_act(severity)
var/obj/item/bombcore/large/bombcore = new(get_turf(src))
/turf/closed/wall/mineral/plastitanium/explosive
var/obj/item/bombcore/large/bombcore

/turf/closed/wall/mineral/plastitanium/explosive/Initialize(mapload)
. = ..()
bombcore = new(get_turf(src))
bombcore.installed = TRUE

/turf/closed/wall/mineral/plastitanium/explosive/ex_act(severity)
bombcore.detonate()
..()

//have to copypaste this code
/turf/closed/wall/mineral/plastitanium/interior/copyTurf(turf/T)
Expand Down

0 comments on commit 940ffa3

Please sign in to comment.