Skip to content

Commit

Permalink
rnd plasma cutter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simb11 committed Sep 21, 2024
1 parent b372a0b commit 29f580f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion code/modules/mining/mine_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,6 @@ var/global/mining_shuttle_location = 0 // 0 = station 13, 1 = mining station
if((iswallturf(target)) && (prob(destruction_chance)))
target.ex_act(EXPLODE_HEAVY)


/obj/item/weapon/gun/energy/laser/cutter/atom_init()
. = ..()
power_supply.AddComponent(/datum/component/cell_selfrecharge, 50)
Expand Down
7 changes: 7 additions & 0 deletions code/modules/research/prototipify.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@
power_supply.maxcharge /= 2
power_supply.charge = power_supply.maxcharge

/obj/item/weapon/gun/energy/laser/cutter/set_prototype_qualities(rel_val=100, mark=0)
if(mark)
power_supply.maxcharge += (mark - 1) * 200
if(!prob(reliability))
power_supply.maxcharge /= 2
power_supply.charge = power_supply.maxcharge

/obj/item/weapon/gun/projectile/automatic/set_prototype_qualities(rel_val=100, mark=0)
if(mark)
recoil = max(recoil / mark, 0.5)
Expand Down

0 comments on commit 29f580f

Please sign in to comment.