mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Newly created computers and vending machines in unpowered areas will now start as unpowered.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1476 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -6,6 +6,10 @@ ID Computer
|
||||
Pod/Blast Doors computer
|
||||
*/
|
||||
|
||||
/obj/machinery/computer/New()
|
||||
..()
|
||||
spawn(2)
|
||||
power_change()
|
||||
|
||||
/obj/machinery/computer/meteorhit(var/obj/O as obj)
|
||||
for(var/x in src.verbs)
|
||||
|
||||
@@ -22,11 +22,13 @@
|
||||
//Little sanity check here
|
||||
if ((isnull(temp_paths)) || (isnull(temp_amounts)) || (temp_paths.len != temp_amounts.len) || (temp_hidden.len != temp_hideamt.len))
|
||||
stat |= BROKEN
|
||||
power_change()
|
||||
return
|
||||
|
||||
src.build_inventory(temp_paths,temp_amounts)
|
||||
//Add hidden inventory
|
||||
src.build_inventory(temp_hidden,temp_hideamt, 1)
|
||||
power_change()
|
||||
return
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user