-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_deusex.py
More file actions
43 lines (32 loc) · 939 Bytes
/
example_deusex.py
File metadata and controls
43 lines (32 loc) · 939 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
from xyobjects import *
def story():
return {
"save_id": "dxd",
"title": "Deus Ex: DE-MAKE test",
"author": "Technomancer",
"player": "jcd",
"start": "liberty_docks"
}
def on_start(state):
state.log("Talk to paul.", "Goal Updated")
class liberty_docks(XyzzyZone):
def __init__(self, state):
super().__init__(state)
self.name = "Liberty Island (Docks)"
self.contains = {"medkit": 2}
class medkit(Consumable):
def __init__(self, state):
super().__init__(state)
self.name = "medkit"
self.power = 25
def on_use(self, target = None):
if target:
target.heal(self.power)
class paul(HumanNPC):
def __init__(self, state):
super().__init__(state)
self.name = "Paul Denton"
class jcd(Human):
def __init__(self, state):
super().__init__(state)
self.name = "JC Denton"