-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbehavior_to_patch.py
More file actions
31 lines (24 loc) · 847 Bytes
/
behavior_to_patch.py
File metadata and controls
31 lines (24 loc) · 847 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
class BehaviorToPatch:
def generate(self, style):
if style == "aggressive":
return {
"entities": [{"type": "enemy", "name": "hunter"}],
"rules": {"entropy_increases_over_time": True}
}
if style == "cautious":
return {
"powerups": [{"name": "shield", "effect": {"stability": 0.4}}]
}
if style == "explorer":
return {
"powerups": [{"name": "bonus_loot", "effect": {"reward": 0.5}}]
}
if style == "hesitant":
return {
"rules": {"entropy_increases_over_time": False}
}
if style == "stuck":
return {
"powerups": [{"name": "escape_boost", "effect": {"reward": 0.8}}]
}
return {}