-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.dm
54 lines (42 loc) · 1.19 KB
/
demo.dm
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
49
50
51
52
53
54
mob
var/restricted
hp = new /restricted(minimum=0, current=1000, maximum=1000)
ep = new /restricted(minimum=0, current=50, maximum=100)
Stat()
statpanel("Stats")
stat("Health: ", "[hp.to_text()]")
stat("Health Percentage: ", "[hp.to_percent_text()]")
stat("Health Rounded Percentage: ", "[hp.to_percent_rounded_text()]")
stat("Energy: ", "[ep.to_text()]")
stat("Energy Percentage: ", "[ep.to_percent_text()]")
stat("Energy Rounded Percentage: ", "[ep.to_percent_rounded_text()]")
verb
change_max_health(i as num)
hp.set_maximum(i)
take_random_damage()
var/x = rand(hp.minimum(), hp.maximum())
hp.decrease(x)
src << "You took [x] damage!"
heal_random_damage()
var/x = rand(hp.minimum(), hp.maximum())
hp.increase(x)
src << "You healed [x] damage!"
take_damage(i as num)
hp.decrease(i)
src << "You took [i] damage!"
heal_damage(i as num)
hp.increase(i)
src << "You healed [i] damage!"
epic_training_montage()
while(!ep.at_min())
ep.decrease(10)
sleep(20)
src << "Your montage was successful!"
rest()
while(!ep.at_max())
ep.increase(20)
sleep(20)
src << "Whoo, you feel rested!"
New()
..()
for(var/o in verbs)