Skip to content

Commit

Permalink
PTL breaks open geodes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleroneSwordfish committed Oct 26, 2024
1 parent e030c1e commit 99459a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions code/modules/power/pt_laser.dm
Original file line number Diff line number Diff line change
Expand Up @@ -418,19 +418,23 @@

var/melt_prob = 0 //this var only exists for debug really
if (isturf(A))
if (abs(output) < 100 MEGA WATTS) //hard threshold for turfs, you need a beeg laser
var/turf_mult = istype(A, /turf/simulated/wall/auto/asteroid) ? 0.1 : 1
if (abs(output) < 100 MEGA WATTS * turf_mult) //hard threshold for turfs, you need a beeg laser
melt_prob = 0
else
melt_prob = abs(output) / (25 MEGA WATTS)
melt_prob = abs(output) / (25 MEGA WATTS * turf_mult)
if (prob(melt_prob))
A.ex_act(2)
if (A.density && melt_prob) //turfs keep refs so this will be the new turf if it does get replaced in ex_act
animate_meltspark(A)
else
melt_prob = (abs(output)) / (0.5 MEGA WATTS)
if (prob(melt_prob))
A.visible_message(SPAN_ALERT("[A] is melted away by [src]!"))
qdel(A)
if (istype(A, /obj/geode))
A.ex_act(severity = melt_prob > 20 ? 1 : 3, power = melt_prob / 4) //lazy severity because it doesn't really matter here
else
A.visible_message(SPAN_ALERT("[A] is melted away by [src]!"))
qdel(A)

if (QDELETED(A))
src.blocking_objects -= A //mmm yes for loop list modification
Expand Down
1 change: 1 addition & 0 deletions strings/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
(t)fri oct 25 24
(u)LeahTheTech
(*)Thermite should now be a bit more consistent, only requires 10u to activate, has a much more visible effect on turfs, can be cleaned up, and leaves a fire behind when activated.
(*)The PTL can now break open geodes and will melt through asteroid rock a lot faster.
(u)Glamurio (Ryou)
(p)21153
(e)🆕⚖⚗|C-Feature, C-Balance, A-Chemistry
Expand Down

0 comments on commit 99459a7

Please sign in to comment.