mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 01:52:29 +00:00
Protolathe Power Cells Tweak
Fixes power cells and device cells not having the empty-charge icon when made. Tweaks the protolathe so all items that come with power cells start empty (such as energy weapons)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
/obj/item/weapon/cell/secborg/empty/New()
|
||||
..()
|
||||
charge = 0
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/apc
|
||||
name = "heavy-duty power cell"
|
||||
@@ -35,6 +36,7 @@
|
||||
/obj/item/weapon/cell/high/empty/New()
|
||||
..()
|
||||
charge = 0
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/super
|
||||
name = "super-capacity power cell"
|
||||
@@ -46,6 +48,7 @@
|
||||
/obj/item/weapon/cell/super/empty/New()
|
||||
..()
|
||||
charge = 0
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/hyper
|
||||
name = "hyper-capacity power cell"
|
||||
@@ -57,6 +60,7 @@
|
||||
/obj/item/weapon/cell/hyper/empty/New()
|
||||
..()
|
||||
charge = 0
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/cell/infinite
|
||||
name = "infinite-capacity power cell!"
|
||||
|
||||
@@ -61,4 +61,13 @@ other types of metals and chemistry for reagents).
|
||||
return new build_path(newloc)
|
||||
|
||||
/datum/design/item
|
||||
build_type = PROTOLATHE
|
||||
build_type = PROTOLATHE
|
||||
|
||||
//Make sure items don't get free power
|
||||
/datum/design/item/Fabricate()
|
||||
var/obj/item/I = ..()
|
||||
var/obj/item/weapon/cell/C = I.get_cell()
|
||||
if(C)
|
||||
C.charge = 0
|
||||
I.update_icon()
|
||||
return I
|
||||
@@ -12,6 +12,7 @@
|
||||
/datum/design/item/powercell/Fabricate()
|
||||
var/obj/item/weapon/cell/C = ..()
|
||||
C.charge = 0 //shouldn't produce power out of thin air.
|
||||
C.update_icon()
|
||||
return C
|
||||
|
||||
/datum/design/item/powercell/basic
|
||||
|
||||
Reference in New Issue
Block a user