mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2687 316c924e-a436-60f5-8080-3fe189b3f50e
30 lines
532 B
Plaintext
30 lines
532 B
Plaintext
/obj/machinery/disease2/monkeycloner
|
|
name = "Monkey dispensor"
|
|
icon = '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 |