Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 9784568

Browse files
author
Redmoogle
authored
Gives plasma cutter mods examine for cost and stackability (#21510)
* Update special.dm * Update special.dm * Me when CI kills itself
1 parent 866d0f4 commit 9784568

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

code/modules/projectiles/guns/energy/special.dm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,21 @@
333333
var/cost = 10
334334
var/stackable = FALSE
335335

336+
/obj/item/upgrade/plasmacutter/examine(mob/user)
337+
. = ..()
338+
. += span_notice("This mod takes up [cost] mod capacity.")
339+
340+
if(stackable)
341+
. += span_notice("This mod is stackable.")
342+
else
343+
. += span_notice("This mod is not stackable.")
344+
336345
/obj/item/upgrade/plasmacutter/proc/modify_projectile(obj/projectile/plasma/K)
337346

338347
/obj/item/upgrade/plasmacutter/proc/install(obj/item/gun/energy/plasmacutter/P)
339348

340349
/obj/item/upgrade/plasmacutter/proc/uninstall(obj/item/gun/energy/plasmacutter/P)
350+
P.installed_upgrades -= src // Allows you to put the mod back in
341351

342352
/obj/item/upgrade/plasmacutter/defuser
343353
name = "plasma cutter defusal kit"
@@ -355,6 +365,7 @@
355365
P.cell.maxcharge = initial(P.cell.maxcharge)*2
356366

357367
/obj/item/upgrade/plasmacutter/capacity/uninstall(obj/item/gun/energy/plasmacutter/P)
368+
. = ..()
358369
P.cell.maxcharge = initial(P.cell.maxcharge)
359370
P.cell.charge = min(P.cell.charge, P.cell.maxcharge)
360371

@@ -368,6 +379,7 @@
368379
P.fire_delay *= 0.5
369380

370381
/obj/item/upgrade/plasmacutter/cooldown/uninstall(obj/item/gun/energy/plasmacutter/P)
382+
. = ..()
371383
P.fire_delay *= 2
372384

373385
/obj/item/upgrade/plasmacutter/range

0 commit comments

Comments
 (0)