-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdebug.py
74 lines (51 loc) · 1.44 KB
/
debug.py
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from globals import *
import weather
import zones
import alife
import items
import life
def suicide():
life.kill(LIFE[SETTINGS['following']], 'suicide')
def kill(life_id):
life.kill(LIFE[life_id], 'suicide')
def stop():
LIFE[SETTINGS['following']]['path'] = []
def clean_slate():
for alife in LIFE.values():
if alife['id'] == SETTINGS['controlling'] or alife['dead']:
continue
life.kill(alife, 'an act of treason')
def make_hungry(life_id):
LIFE[life_id]['hunger'] = 500
def world_hunger():
for l in LIFE.values():
l['hunger'] = 500
def make_thirsty(life_id):
LIFE[life_id]['thirst'] = 500
def simple_lights():
SETTINGS['draw light'] = False
def time(time):
WORLD_INFO['real_time_of_day'] = time
def timescale(scale):
WORLD_INFO['time_scale'] = scale
def warp(x, y):
LIFE[SETTINGS['controlling']]['pos'][0] = x
LIFE[SETTINGS['controlling']]['pos'][1] = y
def camps():
alife.camps.debug_camps()
def food():
items.create_item('corn', position=LIFE[SETTINGS['controlling']]['pos'])
def drink():
items.create_item('soda', position=LIFE[SETTINGS['controlling']]['pos'])
def give(item):
items.create_item(item, position=LIFE[SETTINGS['controlling']]['pos'])
def day():
WORLD_INFO['real_time_of_day'] = 1500
def night():
WORLD_INFO['real_time_of_day'] = 0
def toss():
life.push(LIFE[SETTINGS['controlling']], 0, 2)
def soldier():
LIFE[SETTINGS['following']]['stats']['firearms'] = 10
def weather():
weather.change_weather()