* Added the transforming machine to the Malf Modules.

* You have to be within camera vision to place the machine.
 * The machine has been given a minute cooldown per each use, and will look unpowered when cooling down.
 * Added a delete option for /Robotize() and used it in the machine, to stop items piling up and eventually crashing clients.
 * The machine will make a sound when placed.
 * Added auto conveyor belts which are always on unless unpowered or broken.
 * Cyborgs built from the machine will only get 5k power cells.
 * Added a changelog entry for this change.
This commit is contained in:
Giacomand
2013-08-13 23:23:37 +01:00
parent 92286e56b6
commit 784ac98de4
5 changed files with 95 additions and 19 deletions
+5 -2
View File
@@ -261,11 +261,14 @@
//human -> robot
/mob/living/carbon/human/proc/Robotize()
/mob/living/carbon/human/proc/Robotize(var/delete_items = 0)
if (monkeyizing)
return
for(var/obj/item/W in src)
drop_from_inventory(W)
if(delete_items)
del(W)
else
drop_from_inventory(W)
regenerate_icons()
monkeyizing = 1
canmove = 0
+22 -4
View File
@@ -19,8 +19,29 @@
/obj/machinery/conveyor/centcom_auto
id = "round_end_belt"
// Auto conveyour is always on unless unpowered
/obj/machinery/conveyor/auto/New(loc, newdir)
..(loc, newdir)
operating = 1
setmove()
/obj/machinery/conveyor/auto/update()
if(stat & BROKEN)
icon_state = "conveyor-broken"
operating = 0
return
else if(!operable)
operating = 0
else if(stat & NOPOWER)
operating = 0
else
operating = 1
icon_state = "conveyor[operating]"
// create a conveyor
/obj/machinery/conveyor/New(loc, newdir, on = 0)
/obj/machinery/conveyor/New(loc, newdir)
..(loc)
if(newdir)
dir = newdir
@@ -49,9 +70,6 @@
if(SOUTHWEST)
forwards = WEST
backwards = NORTH
if(on)
operating = 1
setmove()
/obj/machinery/conveyor/proc/setmove()
if(operating == 1)