-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathobjects.dm
More file actions
48 lines (40 loc) · 832 Bytes
/
objects.dm
File metadata and controls
48 lines (40 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
obj
energy_trigger
icon = 'icons/obj.dmi'
icon_state = "emachine_on"
var/on = 1
var/block = 0
proc/floor_switch(var/t="")
block = 1
for(var/i=1, i<=max(world.maxx, world.maxy), i++)
var/trigger = 0
for(var/turf/floor/F in range(i, src))
if(F.icon_state != "floor[t]")
F.icon_state = "floor[t]"
trigger = 1
if(!trigger)
block = 0
break
sleep(1)
Click()
if(!block)
if(on==1)
on = 0
icon_state = "emachine_off"
floor_switch("_off")
else
on = 1
icon_state = "emachine_on"
floor_switch()
tree
icon = 'icons/trees.dmi'
icon_state = "tree1"
dead
icon_state = "deadtree1"
pine
icon_state = "pinetree1"
larch
icon_state = "larchtree1"
New()
..()
icon_state = "[copytext(icon_state, 1, -1)][rand(1, 4)]"