mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-24 05:06:16 +01:00
31 lines
512 B
Plaintext
31 lines
512 B
Plaintext
/obj/machinery/disease2/monkeycloner
|
|
name = "Monkey dispensor"
|
|
icon = 'icons/obj/cloning.dmi'
|
|
icon_state = "pod_0"
|
|
density = 1
|
|
anchored = 1
|
|
|
|
var/cloning = 0
|
|
|
|
/obj/machinery/disease2/monkeycloner/attack_hand()
|
|
if(!cloning)
|
|
cloning = 150
|
|
|
|
icon_state = "pod_g"
|
|
|
|
/obj/machinery/disease2/monkeycloner/process()
|
|
if(stat & (NOPOWER|BROKEN))
|
|
return
|
|
use_power(500)
|
|
src.updateDialog()
|
|
|
|
if(cloning)
|
|
cloning -= 1
|
|
if(!cloning)
|
|
new /mob/living/carbon/monkey(src.loc)
|
|
icon_state = "pod_0"
|
|
|
|
|
|
|
|
return
|