mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Potato batteries now scale with potency. Thanks to QualityVan!
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4530 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -146,7 +146,9 @@
|
|||||||
W:amount -= 5
|
W:amount -= 5
|
||||||
if(!W:amount) del(W)
|
if(!W:amount) del(W)
|
||||||
user << "<span class='notice'>You add some cable to the potato and slide it inside the battery encasing.</span>"
|
user << "<span class='notice'>You add some cable to the potato and slide it inside the battery encasing.</span>"
|
||||||
new /obj/item/weapon/cell/potato(user.loc)
|
var/obj/item/weapon/cell/potato/pocell = new /obj/item/weapon/cell/potato(user.loc)
|
||||||
|
pocell.maxcharge = src.potency * 10
|
||||||
|
pocell.charge = pocell.maxcharge
|
||||||
del(src)
|
del(src)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user