Xenobio Slime Extract Improvements (#8458)

This commit is contained in:
Geeves
2020-04-05 10:24:45 +02:00
committed by GitHub
parent 0ab9aac539
commit 2d72d694d6
4 changed files with 168 additions and 55 deletions
+15 -2
View File
@@ -127,11 +127,24 @@
name = "charged slime core"
desc = "A yellow slime core infused with phoron, it crackles with power."
origin_tech = list(TECH_POWER = 2, TECH_BIO = 4)
icon = 'icons/mob/npc/slimes.dmi' //'icons/obj/harvest.dmi'
icon_state = "yellow slime extract" //"potato_battery"
icon = 'icons/mob/npc/slimes.dmi'
icon_state = "yellow slime extract"
maxcharge = 10000
matter = null
var/next_recharge
/obj/item/cell/slime/Initialize()
. = ..()
START_PROCESSING(SSprocessing, src)
/obj/item/cell/slime/Destroy()
STOP_PROCESSING(SSprocessing, src)
return ..()
/obj/item/cell/slime/process()
if(next_recharge < world.time)
charge += maxcharge / 10
next_recharge = world.time + 1 MINUTE
/obj/item/cell/device/emergency_light
name = "miniature power cell"