Skip to content

Commit

Permalink
Fix powercell
Browse files Browse the repository at this point in the history
  • Loading branch information
Glamurio committed Dec 3, 2024
1 parent a4ff3b8 commit 0b9a5c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/obj/artifacts/artifact_items/power_cell.dm
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
O.noise = pick('sound/weapons/airzooka.ogg', 'sound/misc/chair/glass/scoot5.ogg', 'sound/misc/chair/glass/scoot2.ogg')
if ("precursor") // what does precursor stuff even sound like???
O.noise = pick('sound/effects/singsuck.ogg', 'sound/effects/screech_tone.ogg')
if ("clockwork")
O.noise = pick('sound/misc/automaton_scratch.ogg', 'sound/misc/automaton_ratchet.ogg')
else
O.noise = 'sound/effects/electric_shock_short.ogg'

if(prob(O.chargeCap/1000)) // the more charge the bigger the chance it does dumb stuff
switch(src.artitype.name) // leakage
Expand All @@ -121,6 +125,10 @@
O.leakChem = pick("glitter","sakuride","grassgro","sparkles","mirabilis", "mugwort", "carpet")
if ("precursor")
O.leakChem = pick(all_functional_reagent_ids) // no way this goes wrong
if ("clockwork")
O.leakChem = pick("oil", "copper_nitrate", "mercury", "copper", "aluminium", "iron", "nickel", "silver", "iron_oxide")
else
O.leakChem = "oil"
if(prob(10))
O.smoky = TRUE
O.create_reagents(rand(5,20))
Expand Down

0 comments on commit 0b9a5c0

Please sign in to comment.