crimsonland 0.1.0.dev5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crimson/__init__.py +24 -0
- crimson/assets_fetch.py +60 -0
- crimson/atlas.py +92 -0
- crimson/audio_router.py +155 -0
- crimson/bonuses.py +167 -0
- crimson/camera.py +75 -0
- crimson/cli.py +380 -0
- crimson/creatures/__init__.py +8 -0
- crimson/creatures/ai.py +186 -0
- crimson/creatures/anim.py +173 -0
- crimson/creatures/damage.py +103 -0
- crimson/creatures/runtime.py +1019 -0
- crimson/creatures/spawn.py +2871 -0
- crimson/debug.py +7 -0
- crimson/demo.py +1360 -0
- crimson/demo_trial.py +140 -0
- crimson/effects.py +1086 -0
- crimson/effects_atlas.py +73 -0
- crimson/frontend/__init__.py +1 -0
- crimson/frontend/assets.py +43 -0
- crimson/frontend/boot.py +424 -0
- crimson/frontend/menu.py +700 -0
- crimson/frontend/panels/__init__.py +1 -0
- crimson/frontend/panels/base.py +410 -0
- crimson/frontend/panels/controls.py +132 -0
- crimson/frontend/panels/mods.py +128 -0
- crimson/frontend/panels/options.py +409 -0
- crimson/frontend/panels/play_game.py +627 -0
- crimson/frontend/panels/stats.py +351 -0
- crimson/frontend/transitions.py +31 -0
- crimson/game.py +2533 -0
- crimson/game_modes.py +15 -0
- crimson/game_world.py +652 -0
- crimson/gameplay.py +2467 -0
- crimson/input_codes.py +176 -0
- crimson/modes/__init__.py +1 -0
- crimson/modes/base_gameplay_mode.py +219 -0
- crimson/modes/quest_mode.py +502 -0
- crimson/modes/rush_mode.py +300 -0
- crimson/modes/survival_mode.py +792 -0
- crimson/modes/tutorial_mode.py +648 -0
- crimson/modes/typo_mode.py +472 -0
- crimson/paths.py +23 -0
- crimson/perks.py +828 -0
- crimson/persistence/__init__.py +1 -0
- crimson/persistence/highscores.py +385 -0
- crimson/persistence/save_status.py +245 -0
- crimson/player_damage.py +77 -0
- crimson/projectiles.py +1133 -0
- crimson/quests/__init__.py +18 -0
- crimson/quests/helpers.py +147 -0
- crimson/quests/registry.py +49 -0
- crimson/quests/results.py +164 -0
- crimson/quests/runtime.py +91 -0
- crimson/quests/tier1.py +620 -0
- crimson/quests/tier2.py +652 -0
- crimson/quests/tier3.py +579 -0
- crimson/quests/tier4.py +721 -0
- crimson/quests/tier5.py +886 -0
- crimson/quests/timeline.py +115 -0
- crimson/quests/types.py +70 -0
- crimson/render/__init__.py +1 -0
- crimson/render/terrain_fx.py +88 -0
- crimson/render/world_renderer.py +1941 -0
- crimson/sim/__init__.py +1 -0
- crimson/sim/world_defs.py +67 -0
- crimson/sim/world_state.py +422 -0
- crimson/terrain_assets.py +19 -0
- crimson/tutorial/__init__.py +12 -0
- crimson/tutorial/timeline.py +291 -0
- crimson/typo/__init__.py +2 -0
- crimson/typo/names.py +233 -0
- crimson/typo/player.py +43 -0
- crimson/typo/spawns.py +73 -0
- crimson/typo/typing.py +52 -0
- crimson/ui/__init__.py +3 -0
- crimson/ui/cursor.py +95 -0
- crimson/ui/demo_trial_overlay.py +235 -0
- crimson/ui/game_over.py +660 -0
- crimson/ui/hud.py +601 -0
- crimson/ui/perk_menu.py +388 -0
- crimson/views/__init__.py +40 -0
- crimson/views/aim_debug.py +276 -0
- crimson/views/animations.py +274 -0
- crimson/views/arsenal_debug.py +404 -0
- crimson/views/audio_bootstrap.py +47 -0
- crimson/views/bonuses.py +201 -0
- crimson/views/camera_debug.py +359 -0
- crimson/views/camera_shake.py +229 -0
- crimson/views/corpse_stamp_debug.py +324 -0
- crimson/views/decals_debug.py +739 -0
- crimson/views/empty.py +19 -0
- crimson/views/fonts.py +114 -0
- crimson/views/game_over.py +117 -0
- crimson/views/ground.py +259 -0
- crimson/views/lighting_debug.py +1166 -0
- crimson/views/particles.py +293 -0
- crimson/views/perk_menu_debug.py +430 -0
- crimson/views/perks.py +398 -0
- crimson/views/player.py +434 -0
- crimson/views/player_sprite_debug.py +314 -0
- crimson/views/projectile_fx.py +609 -0
- crimson/views/projectile_render_debug.py +393 -0
- crimson/views/projectiles.py +221 -0
- crimson/views/quest_title_overlay.py +108 -0
- crimson/views/registry.py +34 -0
- crimson/views/rush.py +16 -0
- crimson/views/small_font_debug.py +204 -0
- crimson/views/spawn_plan.py +363 -0
- crimson/views/sprites.py +214 -0
- crimson/views/survival.py +15 -0
- crimson/views/terrain.py +132 -0
- crimson/views/ui.py +123 -0
- crimson/views/wicons.py +166 -0
- crimson/weapon_sfx.py +63 -0
- crimson/weapons.py +860 -0
- crimsonland-0.1.0.dev5.dist-info/METADATA +9 -0
- crimsonland-0.1.0.dev5.dist-info/RECORD +139 -0
- crimsonland-0.1.0.dev5.dist-info/WHEEL +4 -0
- crimsonland-0.1.0.dev5.dist-info/entry_points.txt +4 -0
- grim/__init__.py +20 -0
- grim/app.py +92 -0
- grim/assets.py +231 -0
- grim/audio.py +106 -0
- grim/config.py +294 -0
- grim/console.py +737 -0
- grim/fonts/__init__.py +7 -0
- grim/fonts/grim_mono.py +111 -0
- grim/fonts/small.py +120 -0
- grim/input.py +44 -0
- grim/jaz.py +103 -0
- grim/math.py +17 -0
- grim/music.py +403 -0
- grim/paq.py +76 -0
- grim/rand.py +37 -0
- grim/sfx.py +276 -0
- grim/sfx_map.py +103 -0
- grim/terrain_render.py +840 -0
- grim/view.py +16 -0
crimson/perks.py
ADDED
|
@@ -0,0 +1,828 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
"""Perk ids extracted from perks_init_database (FUN_0042fd90)."""
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
from enum import IntEnum, IntFlag
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class PerkFlags(IntFlag):
|
|
10
|
+
MODE_3_ONLY = 0x1 # allow when _DAT_00480360 == 3
|
|
11
|
+
TWO_PLAYER_ONLY = 0x2 # allow when _DAT_0048035c == 2
|
|
12
|
+
STACKABLE = 0x4 # can be offered even if already owned
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class PerkId(IntEnum):
|
|
16
|
+
ANTIPERK = 0
|
|
17
|
+
BLOODY_MESS_QUICK_LEARNER = 1
|
|
18
|
+
SHARPSHOOTER = 2
|
|
19
|
+
FASTLOADER = 3
|
|
20
|
+
LEAN_MEAN_EXP_MACHINE = 4
|
|
21
|
+
LONG_DISTANCE_RUNNER = 5
|
|
22
|
+
PYROKINETIC = 6
|
|
23
|
+
INSTANT_WINNER = 7
|
|
24
|
+
GRIM_DEAL = 8
|
|
25
|
+
ALTERNATE_WEAPON = 9
|
|
26
|
+
PLAGUEBEARER = 10
|
|
27
|
+
EVIL_EYES = 11
|
|
28
|
+
AMMO_MANIAC = 12
|
|
29
|
+
RADIOACTIVE = 13
|
|
30
|
+
FASTSHOT = 14
|
|
31
|
+
FATAL_LOTTERY = 15
|
|
32
|
+
RANDOM_WEAPON = 16
|
|
33
|
+
MR_MELEE = 17
|
|
34
|
+
ANXIOUS_LOADER = 18
|
|
35
|
+
FINAL_REVENGE = 19
|
|
36
|
+
TELEKINETIC = 20
|
|
37
|
+
PERK_EXPERT = 21
|
|
38
|
+
UNSTOPPABLE = 22
|
|
39
|
+
REGRESSION_BULLETS = 23
|
|
40
|
+
INFERNAL_CONTRACT = 24
|
|
41
|
+
POISON_BULLETS = 25
|
|
42
|
+
DODGER = 26
|
|
43
|
+
BONUS_MAGNET = 27
|
|
44
|
+
URANIUM_FILLED_BULLETS = 28
|
|
45
|
+
DOCTOR = 29
|
|
46
|
+
MONSTER_VISION = 30
|
|
47
|
+
HOT_TEMPERED = 31
|
|
48
|
+
BONUS_ECONOMIST = 32
|
|
49
|
+
THICK_SKINNED = 33
|
|
50
|
+
BARREL_GREASER = 34
|
|
51
|
+
AMMUNITION_WITHIN = 35
|
|
52
|
+
VEINS_OF_POISON = 36
|
|
53
|
+
TOXIC_AVENGER = 37
|
|
54
|
+
REGENERATION = 38
|
|
55
|
+
PYROMANIAC = 39
|
|
56
|
+
NINJA = 40
|
|
57
|
+
HIGHLANDER = 41
|
|
58
|
+
JINXED = 42
|
|
59
|
+
PERK_MASTER = 43
|
|
60
|
+
REFLEX_BOOSTED = 44
|
|
61
|
+
GREATER_REGENERATION = 45
|
|
62
|
+
BREATHING_ROOM = 46
|
|
63
|
+
DEATH_CLOCK = 47
|
|
64
|
+
MY_FAVOURITE_WEAPON = 48
|
|
65
|
+
BANDAGE = 49
|
|
66
|
+
ANGRY_RELOADER = 50
|
|
67
|
+
ION_GUN_MASTER = 51
|
|
68
|
+
STATIONARY_RELOADER = 52
|
|
69
|
+
MAN_BOMB = 53
|
|
70
|
+
FIRE_CAUGH = 54
|
|
71
|
+
LIVING_FORTRESS = 55
|
|
72
|
+
TOUGH_RELOADER = 56
|
|
73
|
+
LIFELINE_50_50 = 57
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
@dataclass(frozen=True, slots=True)
|
|
77
|
+
class PerkMeta:
|
|
78
|
+
perk_id: PerkId
|
|
79
|
+
const_name: str
|
|
80
|
+
const_addr: str
|
|
81
|
+
name: str
|
|
82
|
+
description: str
|
|
83
|
+
flags: PerkFlags | None
|
|
84
|
+
prereq: tuple[PerkId, ...] = ()
|
|
85
|
+
notes: str | None = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
PERK_TABLE = [
|
|
89
|
+
PerkMeta(
|
|
90
|
+
perk_id=PerkId.ANTIPERK,
|
|
91
|
+
const_name="perk_id_antiperk",
|
|
92
|
+
const_addr="DAT_004c2b40",
|
|
93
|
+
name="AntiPerk",
|
|
94
|
+
description="You shouldn't be seeing this..",
|
|
95
|
+
flags=None,
|
|
96
|
+
prereq=(),
|
|
97
|
+
notes="Never offered: `perk_can_offer` explicitly rejects `ANTIPERK`.",
|
|
98
|
+
),
|
|
99
|
+
PerkMeta(
|
|
100
|
+
perk_id=PerkId.BLOODY_MESS_QUICK_LEARNER,
|
|
101
|
+
const_name="perk_id_bloody_mess_quick_learner",
|
|
102
|
+
const_addr="DAT_004c2b44",
|
|
103
|
+
name="Bloody Mess",
|
|
104
|
+
description="More the merrier. More blood guarantees a 30% better experience. You spill more blood and gain more experience points.",
|
|
105
|
+
flags=None,
|
|
106
|
+
prereq=(),
|
|
107
|
+
notes=(
|
|
108
|
+
"`CreaturePool._start_death`: if the killer has Bloody Mess, uses `xp_base = int(reward_value * 1.3)`. "
|
|
109
|
+
"`GameWorld._queue_projectile_decals`: when active, spawns extra random decals and blood splatter "
|
|
110
|
+
"particles on projectile hits."
|
|
111
|
+
),
|
|
112
|
+
),
|
|
113
|
+
PerkMeta(
|
|
114
|
+
perk_id=PerkId.SHARPSHOOTER,
|
|
115
|
+
const_name="perk_id_sharpshooter",
|
|
116
|
+
const_addr="DAT_004c2b48",
|
|
117
|
+
name="Sharpshooter",
|
|
118
|
+
description="Miraculously your aiming improves drastically, but you take a little bit more time on actually firing the gun. If you order now, you also get a fancy LASER SIGHT without ANY charge!",
|
|
119
|
+
flags=None,
|
|
120
|
+
prereq=(),
|
|
121
|
+
notes=(
|
|
122
|
+
"`player_fire_weapon`: if Sharpshooter is active, multiplies `shot_cooldown` by `1.05` and does not "
|
|
123
|
+
"increase `player.spread_heat` by `weapon.spread_heat * 1.3` after firing. "
|
|
124
|
+
"`player_update`: while active, forces `player.spread_heat = 0.02`."
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
PerkMeta(
|
|
128
|
+
perk_id=PerkId.FASTLOADER,
|
|
129
|
+
const_name="perk_id_fastloader",
|
|
130
|
+
const_addr="DAT_004c2b5c",
|
|
131
|
+
name="Fastloader",
|
|
132
|
+
description="Man, you sure know how to load a gun.",
|
|
133
|
+
flags=None,
|
|
134
|
+
prereq=(),
|
|
135
|
+
notes="`player_start_reload` (0x00413430): if Fastloader is active, multiplies weapon `reload_time` by `0.7`.",
|
|
136
|
+
),
|
|
137
|
+
PerkMeta(
|
|
138
|
+
perk_id=PerkId.LEAN_MEAN_EXP_MACHINE,
|
|
139
|
+
const_name="perk_id_lean_mean_exp_machine",
|
|
140
|
+
const_addr="DAT_004c2b84",
|
|
141
|
+
name="Lean Mean Exp Machine",
|
|
142
|
+
description="Why kill for experience when you can make some of your own for free! With this perk the experience just keeps flowing in at a constant rate.",
|
|
143
|
+
flags=None,
|
|
144
|
+
prereq=(),
|
|
145
|
+
notes=(
|
|
146
|
+
"`perks_update_effects`: every `0.25` seconds, each player with this perk gains `+perk_count * 10` "
|
|
147
|
+
"experience."
|
|
148
|
+
),
|
|
149
|
+
),
|
|
150
|
+
PerkMeta(
|
|
151
|
+
perk_id=PerkId.LONG_DISTANCE_RUNNER,
|
|
152
|
+
const_name="perk_id_long_distance_runner",
|
|
153
|
+
const_addr="DAT_004c2b54",
|
|
154
|
+
name="Long Distance Runner",
|
|
155
|
+
description="You move like a train that has feet and runs. You just need a little time to warm up. In other words you'll move faster the longer you run without stopping.",
|
|
156
|
+
flags=None,
|
|
157
|
+
prereq=(),
|
|
158
|
+
notes=(
|
|
159
|
+
"`player_update`: while moving, `move_speed` normally increases by `frame_dt * 5.0` (clamped to `2.0`). "
|
|
160
|
+
"With Long Distance Runner active, `move_speed` continues to ramp up above `2.0` by `frame_dt` per frame, "
|
|
161
|
+
"clamped to `2.8`."
|
|
162
|
+
),
|
|
163
|
+
),
|
|
164
|
+
PerkMeta(
|
|
165
|
+
perk_id=PerkId.PYROKINETIC,
|
|
166
|
+
const_name="perk_id_pyrokinetic",
|
|
167
|
+
const_addr="DAT_004c2b64",
|
|
168
|
+
name="Pyrokinetic",
|
|
169
|
+
description="You see flames everywhere. Bare aiming at creatures causes them to heat up.",
|
|
170
|
+
flags=None,
|
|
171
|
+
prereq=(),
|
|
172
|
+
notes=(
|
|
173
|
+
"`perks_update_effects`: picks `creature_find_in_radius(&aim, 12.0, 0)`; while aiming at a creature, "
|
|
174
|
+
"decrements `collision_timer` by `dt` and, when it wraps, sets it to `0.5` and spawns 5 particles "
|
|
175
|
+
"(intensity 0.8, 0.6, 0.4, 0.3, 0.2), plus `fx_queue_add_random` at the creature position."
|
|
176
|
+
),
|
|
177
|
+
),
|
|
178
|
+
PerkMeta(
|
|
179
|
+
perk_id=PerkId.INSTANT_WINNER,
|
|
180
|
+
const_name="perk_id_instant_winner",
|
|
181
|
+
const_addr="DAT_004c2b4c",
|
|
182
|
+
name="Instant Winner",
|
|
183
|
+
description="2500 experience points. Right away. Take it or leave it.",
|
|
184
|
+
flags=PerkFlags.STACKABLE,
|
|
185
|
+
prereq=(),
|
|
186
|
+
notes="`perk_apply` (0x004055e0): grants `+2500` experience to the perk owner.",
|
|
187
|
+
),
|
|
188
|
+
PerkMeta(
|
|
189
|
+
perk_id=PerkId.GRIM_DEAL,
|
|
190
|
+
const_name="perk_id_grim_deal",
|
|
191
|
+
const_addr="DAT_004c2b70",
|
|
192
|
+
name="Grim Deal",
|
|
193
|
+
description="I'll make you a deal: I'll give you 18% more experience points, and you'll give me your life. So you'll die but score higher. Ponder that one for a sec.",
|
|
194
|
+
flags=None,
|
|
195
|
+
prereq=(),
|
|
196
|
+
notes="`perk_apply` (0x004055e0): sets `player.health = -1.0` and grants `+int(experience * 0.18)`.",
|
|
197
|
+
),
|
|
198
|
+
PerkMeta(
|
|
199
|
+
perk_id=PerkId.ALTERNATE_WEAPON,
|
|
200
|
+
const_name="perk_id_alternate_weapon",
|
|
201
|
+
const_addr="DAT_004c2b74",
|
|
202
|
+
name="Alternate Weapon",
|
|
203
|
+
description="Ever fancied about having two weapons available for use? This might be your lucky day; with this perk you'll get an extra weapon slot for another gun! Carrying around two guns slows you down slightly though. (You can switch the weapon slots with RELOAD key)",
|
|
204
|
+
flags=PerkFlags.MODE_3_ONLY,
|
|
205
|
+
prereq=(),
|
|
206
|
+
notes=(
|
|
207
|
+
"`player_apply_move_with_spawn_avoidance` (0x0041e290): scales movement delta by `0.8`. "
|
|
208
|
+
"`player_update`: pressing reload swaps the primary and alternate weapon runtime blocks, plays the "
|
|
209
|
+
"new weapon's reload SFX, and adds `+0.1` to `shot_cooldown`."
|
|
210
|
+
),
|
|
211
|
+
),
|
|
212
|
+
PerkMeta(
|
|
213
|
+
perk_id=PerkId.PLAGUEBEARER,
|
|
214
|
+
const_name="perk_id_plaguebearer",
|
|
215
|
+
const_addr="DAT_004c2b78",
|
|
216
|
+
name="Plaguebearer",
|
|
217
|
+
description="You carry a horrible disease. Good for you: you are immune. Bad for them: it is contagious! (Monsters become resistant over time though.)",
|
|
218
|
+
flags=None,
|
|
219
|
+
prereq=(),
|
|
220
|
+
notes=(
|
|
221
|
+
"Sets `player_plaguebearer_active` (`DAT_004908b9`). In `creature_update_all`, infected creatures "
|
|
222
|
+
"(`collision_flag != 0`) take `15` damage every `0.5` seconds via `collision_timer`; on an infection kill, "
|
|
223
|
+
"increments `plaguebearer_infection_count`. While `plaguebearer_infection_count < 60`, "
|
|
224
|
+
"`FUN_00425d80` spreads infection between creatures within `45` units when the target has `<150` HP. "
|
|
225
|
+
"While `plaguebearer_infection_count < 50`, the player infects nearby creatures (`<30` units) with `<150` HP."
|
|
226
|
+
),
|
|
227
|
+
),
|
|
228
|
+
PerkMeta(
|
|
229
|
+
perk_id=PerkId.EVIL_EYES,
|
|
230
|
+
const_name="perk_id_evil_eyes",
|
|
231
|
+
const_addr="DAT_004c2b88",
|
|
232
|
+
name="Evil Eyes",
|
|
233
|
+
description="No living (nor dead) can resist the hypnotic power of your eyes: monsters freeze still as you look at them!",
|
|
234
|
+
flags=None,
|
|
235
|
+
prereq=(),
|
|
236
|
+
notes=(
|
|
237
|
+
"`perks_update_effects` sets `evil_eyes_target_creature` (`DAT_00490bbc`) to "
|
|
238
|
+
"`creature_find_in_radius(&aim, 12.0, 0)` when the perk is active (else `-1`). "
|
|
239
|
+
"`creature_update_all` checks this index and skips the target's AI update."
|
|
240
|
+
),
|
|
241
|
+
),
|
|
242
|
+
PerkMeta(
|
|
243
|
+
perk_id=PerkId.AMMO_MANIAC,
|
|
244
|
+
const_name="perk_id_ammo_maniac",
|
|
245
|
+
const_addr="DAT_004c2b80",
|
|
246
|
+
name="Ammo Maniac",
|
|
247
|
+
description="You squeeze and you push and you pack your clips with about 20% more ammo than a regular fellow. They call you Ammo Maniac with a deep respect in their voices.",
|
|
248
|
+
flags=None,
|
|
249
|
+
prereq=(),
|
|
250
|
+
notes=(
|
|
251
|
+
"`perk_apply` (0x004055e0): on pick, calls `weapon_assign_player(player_index, weapon_id)` for each "
|
|
252
|
+
"player using their current weapon id. "
|
|
253
|
+
"`weapon_assign_player` (0x00452d40): when Ammo Maniac is active, increases `clip_size` by "
|
|
254
|
+
"`max(1, int(clip_size * 0.25))` before refilling ammo."
|
|
255
|
+
),
|
|
256
|
+
),
|
|
257
|
+
PerkMeta(
|
|
258
|
+
perk_id=PerkId.RADIOACTIVE,
|
|
259
|
+
const_name="perk_id_radioactive",
|
|
260
|
+
const_addr="DAT_004c2b7c",
|
|
261
|
+
name="Radioactive",
|
|
262
|
+
description="You are the Radioactive-man; you have that healthy green glow around you! Others don't like it though, it makes them sick and nauseous whenever near you. It does affect your social life a bit.",
|
|
263
|
+
flags=None,
|
|
264
|
+
prereq=(),
|
|
265
|
+
notes=(
|
|
266
|
+
"`creature_update_all`: if a creature is within 100 units and Radioactive is active, "
|
|
267
|
+
"decrement `collision_timer` by `dt * 1.5`; when it wraps, set it to `0.5` and deal "
|
|
268
|
+
"`(100 - dist) * 0.3` damage. Kills bypass `creature_handle_death`: "
|
|
269
|
+
"`experience = int(float(experience) + creature.reward_value)`; start death via `hitbox_size -= dt`."
|
|
270
|
+
),
|
|
271
|
+
),
|
|
272
|
+
PerkMeta(
|
|
273
|
+
perk_id=PerkId.FASTSHOT,
|
|
274
|
+
const_name="perk_id_fastshot",
|
|
275
|
+
const_addr="DAT_004c2b50",
|
|
276
|
+
name="Fastshot",
|
|
277
|
+
description="Funny how you make your gun spit bullets faster than the next guy. Even the most professional of engineers are astonished.",
|
|
278
|
+
flags=None,
|
|
279
|
+
prereq=(),
|
|
280
|
+
notes="`player_fire_weapon`: while active, multiplies `shot_cooldown` by `0.88`.",
|
|
281
|
+
),
|
|
282
|
+
PerkMeta(
|
|
283
|
+
perk_id=PerkId.FATAL_LOTTERY,
|
|
284
|
+
const_name="perk_id_fatal_lottery",
|
|
285
|
+
const_addr="DAT_004c2c08",
|
|
286
|
+
name="Fatal Lottery",
|
|
287
|
+
description="Fifty-fifty chance of dying OR gaining 10k experience points. Place your bets. Interested, anyone?",
|
|
288
|
+
flags=PerkFlags.STACKABLE,
|
|
289
|
+
prereq=(),
|
|
290
|
+
notes=(
|
|
291
|
+
"`perk_apply` (0x004055e0): rolls `crt_rand() & 1`. If the result is `0`, grants `+10000` experience; "
|
|
292
|
+
"otherwise sets `player.health = -1.0`."
|
|
293
|
+
),
|
|
294
|
+
),
|
|
295
|
+
PerkMeta(
|
|
296
|
+
perk_id=PerkId.RANDOM_WEAPON,
|
|
297
|
+
const_name="perk_id_random_weapon",
|
|
298
|
+
const_addr="DAT_004c2c04",
|
|
299
|
+
name="Random Weapon",
|
|
300
|
+
description="Here, have this weapon. No questions asked.",
|
|
301
|
+
flags=PerkFlags.MODE_3_ONLY | PerkFlags.STACKABLE,
|
|
302
|
+
prereq=(),
|
|
303
|
+
notes=(
|
|
304
|
+
"`perk_apply` (0x004055e0): picks a random available weapon (retries up to 100), skipping the pistol "
|
|
305
|
+
"and the currently equipped weapon, then calls `weapon_assign_player`."
|
|
306
|
+
),
|
|
307
|
+
),
|
|
308
|
+
PerkMeta(
|
|
309
|
+
perk_id=PerkId.MR_MELEE,
|
|
310
|
+
const_name="perk_id_mr_melee",
|
|
311
|
+
const_addr="DAT_004c2bac",
|
|
312
|
+
name="Mr. Melee",
|
|
313
|
+
description="You master the art of melee fighting. You don't just stand still when monsters come near -- you hit back. Hard.",
|
|
314
|
+
flags=None,
|
|
315
|
+
prereq=(),
|
|
316
|
+
notes=(
|
|
317
|
+
"`creature_update_all` (0x00426220): on a melee hit, if Mr. Melee is active, deals "
|
|
318
|
+
"`creature_apply_damage(creature, 25.0, damage_type=2, impulse=(0,0))` to the attacker."
|
|
319
|
+
),
|
|
320
|
+
),
|
|
321
|
+
PerkMeta(
|
|
322
|
+
perk_id=PerkId.ANXIOUS_LOADER,
|
|
323
|
+
const_name="perk_id_anxious_loader",
|
|
324
|
+
const_addr="DAT_004c2b90",
|
|
325
|
+
name="Anxious Loader",
|
|
326
|
+
description="When you can't stand waiting your gun to be reloaded you can speed up the process by clicking your FIRE button repeatedly as fast as you can.",
|
|
327
|
+
flags=None,
|
|
328
|
+
prereq=(),
|
|
329
|
+
notes="`player_update` (0x004136b0): while reloading (`reload_timer > 0`), `fire_pressed` subtracts `0.05` from `reload_timer`.",
|
|
330
|
+
),
|
|
331
|
+
PerkMeta(
|
|
332
|
+
perk_id=PerkId.FINAL_REVENGE,
|
|
333
|
+
const_name="perk_id_final_revenge",
|
|
334
|
+
const_addr="DAT_004c2b94",
|
|
335
|
+
name="Final Revenge",
|
|
336
|
+
description="Pick this and you'll get your revenge. It's a promise.",
|
|
337
|
+
flags=None,
|
|
338
|
+
prereq=(),
|
|
339
|
+
notes=(
|
|
340
|
+
"`player_take_damage` (0x00425e50): on death (`health < 0`), if Final Revenge is active, spawns an "
|
|
341
|
+
"explosion burst (scale 1.8), sets `bonus_spawn_guard`, and applies radius damage within 512 units: "
|
|
342
|
+
"`damage = (512 - dist) * 5.0` via `creature_apply_damage(damage_type=3, impulse=(0,0))`; plays "
|
|
343
|
+
"`sfx_explosion_large` and `sfx_shockwave`."
|
|
344
|
+
),
|
|
345
|
+
),
|
|
346
|
+
PerkMeta(
|
|
347
|
+
perk_id=PerkId.TELEKINETIC,
|
|
348
|
+
const_name="perk_id_telekinetic",
|
|
349
|
+
const_addr="DAT_004c2bf8",
|
|
350
|
+
name="Telekinetic",
|
|
351
|
+
description="Picking up bonuses has never been so easy and FUN. You can pick up bonuses simply by aiming at them for a while. Ingenious.",
|
|
352
|
+
flags=None,
|
|
353
|
+
prereq=(),
|
|
354
|
+
notes="`bonus_telekinetic_update`: aim at a bonus within 24 units for >650ms to pick it up remotely.",
|
|
355
|
+
),
|
|
356
|
+
PerkMeta(
|
|
357
|
+
perk_id=PerkId.PERK_EXPERT,
|
|
358
|
+
const_name="perk_id_perk_expert",
|
|
359
|
+
const_addr="DAT_004c2ba0",
|
|
360
|
+
name="Perk Expert",
|
|
361
|
+
description="You sure know how to pick a perk -- most people just don't see that extra perk laying around. This gives you the opportunity to pick the freshest and shiniest perks from the top.",
|
|
362
|
+
flags=None,
|
|
363
|
+
prereq=(),
|
|
364
|
+
notes="`perk_choice_count`: while active, offers `6` perk choices per selection (vs `5` baseline).",
|
|
365
|
+
),
|
|
366
|
+
PerkMeta(
|
|
367
|
+
perk_id=PerkId.UNSTOPPABLE,
|
|
368
|
+
const_name="perk_id_unstoppable",
|
|
369
|
+
const_addr="DAT_004c2b98",
|
|
370
|
+
name="Unstoppable",
|
|
371
|
+
description="Monsters can't slow you down with their nasty scratches and bites. It still hurts but you simply ignore the pain.",
|
|
372
|
+
flags=None,
|
|
373
|
+
prereq=(),
|
|
374
|
+
notes="`player_take_damage` (0x00425e50): while active, suppresses the on-hit heading jitter + spread heat increase.",
|
|
375
|
+
),
|
|
376
|
+
PerkMeta(
|
|
377
|
+
perk_id=PerkId.REGRESSION_BULLETS,
|
|
378
|
+
const_name="perk_id_regression_bullets",
|
|
379
|
+
const_addr="DAT_004c2bd0",
|
|
380
|
+
name="Regression Bullets",
|
|
381
|
+
description="Attempt to shoot with an empty clip leads to a severe loss of experience. But hey, whatever makes them go down, right?",
|
|
382
|
+
flags=None,
|
|
383
|
+
prereq=(),
|
|
384
|
+
notes=(
|
|
385
|
+
"`player_update`: while reloading with an empty clip, firing a shot costs experience "
|
|
386
|
+
"`int(experience - weapon.reload_time * factor)` where `factor=200` for most weapons and `factor=4` "
|
|
387
|
+
"when `weapon_ammo_class == 1` (fire)."
|
|
388
|
+
),
|
|
389
|
+
),
|
|
390
|
+
PerkMeta(
|
|
391
|
+
perk_id=PerkId.INFERNAL_CONTRACT,
|
|
392
|
+
const_name="perk_id_infernal_contract",
|
|
393
|
+
const_addr="DAT_004c2b9c",
|
|
394
|
+
name="Infernal Contract",
|
|
395
|
+
description="In exchange for your soul, a dark stranger is offering you three (3) new perks. To collect his part of the bargain soon enough, your health is reduced to a near-death status. Just sign down here below this pentagram..",
|
|
396
|
+
flags=None,
|
|
397
|
+
prereq=(),
|
|
398
|
+
notes="`perk_apply`: grants the perk owner `+3` levels (and `+3` pending perk picks), and sets all alive players to `health = 0.1`.",
|
|
399
|
+
),
|
|
400
|
+
PerkMeta(
|
|
401
|
+
perk_id=PerkId.POISON_BULLETS,
|
|
402
|
+
const_name="perk_id_poison_bullets",
|
|
403
|
+
const_addr="DAT_004c2bf4",
|
|
404
|
+
name="Poison Bullets",
|
|
405
|
+
description="You tend to explicitly treat each of your bullets with rat poison. You do it for good luck, but it seems to have other side effects too.",
|
|
406
|
+
flags=None,
|
|
407
|
+
prereq=(),
|
|
408
|
+
notes=(
|
|
409
|
+
"`projectile_update`: on creature hit, if Poison Bullets is active and `(crt_rand() & 7) == 1`, "
|
|
410
|
+
"sets `creature.flags |= 0x01` (self-damage tick). `creature_update_all` applies this via "
|
|
411
|
+
"`creature_apply_damage(creature, frame_dt * 60.0, damage_type=0, impulse=(0,0))`."
|
|
412
|
+
),
|
|
413
|
+
),
|
|
414
|
+
PerkMeta(
|
|
415
|
+
perk_id=PerkId.DODGER,
|
|
416
|
+
const_name="perk_id_dodger",
|
|
417
|
+
const_addr="DAT_004c2bdc",
|
|
418
|
+
name="Dodger",
|
|
419
|
+
description="It seems so stupid just to take the hits. Each time a monster attacks you you have a chance to dodge the attack.",
|
|
420
|
+
flags=None,
|
|
421
|
+
prereq=(),
|
|
422
|
+
notes="`player_take_damage` (0x00425e50): if Dodger is active and Ninja is not, 1/5 chance to ignore the hit (`crt_rand() % 5 == 0`).",
|
|
423
|
+
),
|
|
424
|
+
PerkMeta(
|
|
425
|
+
perk_id=PerkId.BONUS_MAGNET,
|
|
426
|
+
const_name="perk_id_bonus_magnet",
|
|
427
|
+
const_addr="DAT_004c2ba8",
|
|
428
|
+
name="Bonus Magnet",
|
|
429
|
+
description="You somehow seem to lure all kinds of bonuses to appear around you more often.",
|
|
430
|
+
flags=None,
|
|
431
|
+
prereq=(),
|
|
432
|
+
notes="`BonusPool.try_spawn_on_kill`: if the base roll fails (`crt_rand() % 9 != 1`) but any player has Bonus Magnet, a second roll (`crt_rand() % 10 == 2`) can still spawn a bonus.",
|
|
433
|
+
),
|
|
434
|
+
PerkMeta(
|
|
435
|
+
perk_id=PerkId.URANIUM_FILLED_BULLETS,
|
|
436
|
+
const_name="perk_id_uranium_filled_bullets",
|
|
437
|
+
const_addr="DAT_004c2c00",
|
|
438
|
+
name="Uranium Filled Bullets",
|
|
439
|
+
description="Your bullets have a nice creamy uranium filling. Yummy. Now that's gotta hurt the monsters more, right?",
|
|
440
|
+
flags=None,
|
|
441
|
+
prereq=(),
|
|
442
|
+
notes=(
|
|
443
|
+
"`creature_apply_damage` (0x004207c0): when `damage_type == 1` and Uranium Filled Bullets is active, "
|
|
444
|
+
"doubles the applied damage (`damage = damage + damage`)."
|
|
445
|
+
),
|
|
446
|
+
),
|
|
447
|
+
PerkMeta(
|
|
448
|
+
perk_id=PerkId.DOCTOR,
|
|
449
|
+
const_name="perk_id_doctor",
|
|
450
|
+
const_addr="DAT_004c2b60",
|
|
451
|
+
name="Doctor",
|
|
452
|
+
description="With a single glance you can tell the medical condition of, well, anything. Also, being a doctor, you know exactly what hurts the most enabling you to do slightly more damage with your attacks.",
|
|
453
|
+
flags=None,
|
|
454
|
+
prereq=(),
|
|
455
|
+
notes="`creature_apply_damage` (0x004207c0): when `damage_type == 1` and Doctor is active, multiplies damage by 1.2.",
|
|
456
|
+
),
|
|
457
|
+
PerkMeta(
|
|
458
|
+
perk_id=PerkId.MONSTER_VISION,
|
|
459
|
+
const_name="perk_id_monster_vision",
|
|
460
|
+
const_addr="DAT_004c2be8",
|
|
461
|
+
name="Monster Vision",
|
|
462
|
+
description="With your newly enhanced senses you can see all bad energy VERY clearly. That's got to be enough.",
|
|
463
|
+
flags=None,
|
|
464
|
+
prereq=(),
|
|
465
|
+
notes=(
|
|
466
|
+
"`creature_render_all` (0x00419680): when active, draws a yellow 90x90 quad "
|
|
467
|
+
"behind each active creature using `effect_select_texture(0x10)`, with alpha "
|
|
468
|
+
"fading by `clamp((hitbox_size + 10) * 0.1)` during corpse despawn. "
|
|
469
|
+
"`creature_render_type` (0x00418b60): disables the creature shadow pass while Monster Vision is active."
|
|
470
|
+
),
|
|
471
|
+
),
|
|
472
|
+
PerkMeta(
|
|
473
|
+
perk_id=PerkId.HOT_TEMPERED,
|
|
474
|
+
const_name="perk_id_hot_tempered",
|
|
475
|
+
const_addr="DAT_004c2bfc",
|
|
476
|
+
name="Hot Tempered",
|
|
477
|
+
description="It literally boils inside you. That's exactly why you need to let it out once in a while, unfortunately for those near you.",
|
|
478
|
+
flags=None,
|
|
479
|
+
prereq=(),
|
|
480
|
+
notes="`player_update`: periodically spawns an 8-shot ring alternating projectile types `0x0b/0x09`; the interval is randomized to `(crt_rand() % 8) + 2` seconds.",
|
|
481
|
+
),
|
|
482
|
+
PerkMeta(
|
|
483
|
+
perk_id=PerkId.BONUS_ECONOMIST,
|
|
484
|
+
const_name="perk_id_bonus_economist",
|
|
485
|
+
const_addr="DAT_004c2bf0",
|
|
486
|
+
name="Bonus Economist",
|
|
487
|
+
description="Your bonus power-ups last 50% longer than they normally would.",
|
|
488
|
+
flags=None,
|
|
489
|
+
prereq=(),
|
|
490
|
+
notes="`bonus_apply`: while active, scales bonus timer increments by `1.0 + 0.5 * perk_count`.",
|
|
491
|
+
),
|
|
492
|
+
PerkMeta(
|
|
493
|
+
perk_id=PerkId.THICK_SKINNED,
|
|
494
|
+
const_name="perk_id_thick_skinned",
|
|
495
|
+
const_addr="DAT_004c2bc0",
|
|
496
|
+
name="Thick Skinned",
|
|
497
|
+
description="Trade 1/3 of your health for only receiving 2/3rds damage on attacks.",
|
|
498
|
+
flags=None,
|
|
499
|
+
prereq=(),
|
|
500
|
+
notes="`perk_apply`: on pick, scales `player.health *= 2/3` (clamped to `>=1`). `player_take_damage` (0x00425e50): scales incoming damage by `2/3`.",
|
|
501
|
+
),
|
|
502
|
+
PerkMeta(
|
|
503
|
+
perk_id=PerkId.BARREL_GREASER,
|
|
504
|
+
const_name="perk_id_barrel_greaser",
|
|
505
|
+
const_addr="DAT_004c2bec",
|
|
506
|
+
name="Barrel Greaser",
|
|
507
|
+
description="After studying a lot of physics and friction you've come up with a way to make your bullets fly faster. More speed, more damage.",
|
|
508
|
+
flags=None,
|
|
509
|
+
prereq=(),
|
|
510
|
+
notes=(
|
|
511
|
+
"`creature_apply_damage` (0x004207c0): when `damage_type == 1` and Barrel Greaser is active, "
|
|
512
|
+
"multiplies damage by 1.4. `projectile_update` (0x00420b90): when Barrel Greaser is active and "
|
|
513
|
+
"`projectile.owner_id < 0`, doubles the per-frame movement step count (`steps *= 2`)."
|
|
514
|
+
),
|
|
515
|
+
),
|
|
516
|
+
PerkMeta(
|
|
517
|
+
perk_id=PerkId.AMMUNITION_WITHIN,
|
|
518
|
+
const_name="perk_id_ammunition_within",
|
|
519
|
+
const_addr="DAT_004c2bc8",
|
|
520
|
+
name="Ammunition Within",
|
|
521
|
+
description="Empty clip doesn't prevent you from shooting with a weapon; instead the ammunition is drawn from your health while you are reloading.",
|
|
522
|
+
flags=None,
|
|
523
|
+
prereq=(),
|
|
524
|
+
notes=(
|
|
525
|
+
"`player_update` (0x004136b0): while reloading with an empty clip, if Ammunition Within is active and "
|
|
526
|
+
"`experience > 0`, firing a shot costs health via `player_take_damage` (cost = 1.0 normally, 0.15 when "
|
|
527
|
+
"`weapon_ammo_class == 1`). Regression Bullets takes precedence when both are active."
|
|
528
|
+
),
|
|
529
|
+
),
|
|
530
|
+
PerkMeta(
|
|
531
|
+
perk_id=PerkId.VEINS_OF_POISON,
|
|
532
|
+
const_name="perk_id_veins_of_poison",
|
|
533
|
+
const_addr="DAT_004c2bb8",
|
|
534
|
+
name="Veins of Poison",
|
|
535
|
+
description="A strong poison runs through your veins. Monsters taking a bite of you are eventually to experience an agonizing death.",
|
|
536
|
+
flags=None,
|
|
537
|
+
prereq=(),
|
|
538
|
+
notes=(
|
|
539
|
+
"`creature_update_all`: on a melee hit (when `player.shield_timer <= 0`), if Veins of Poison is active "
|
|
540
|
+
"and Toxic Avenger is not, sets `creature.flags |= 0x01` (self-damage tick, `frame_dt * 60`)."
|
|
541
|
+
),
|
|
542
|
+
),
|
|
543
|
+
PerkMeta(
|
|
544
|
+
perk_id=PerkId.TOXIC_AVENGER,
|
|
545
|
+
const_name="perk_id_toxic_avenger",
|
|
546
|
+
const_addr="DAT_004c2bbc",
|
|
547
|
+
name="Toxic Avenger",
|
|
548
|
+
description="You started out just by being poisonous. The next logical step for you is to become highly toxic -- the ULTIMATE TOXIC AVENGER. Most monsters touching you will just drop dead within seconds!",
|
|
549
|
+
flags=None,
|
|
550
|
+
prereq=(PerkId.VEINS_OF_POISON,),
|
|
551
|
+
notes=(
|
|
552
|
+
"`creature_update_all`: on a melee hit (when `player.shield_timer <= 0`), if Toxic Avenger is active "
|
|
553
|
+
"sets `creature.flags |= 0x03`, enabling the strong self-damage tick (`frame_dt * 180`)."
|
|
554
|
+
),
|
|
555
|
+
),
|
|
556
|
+
PerkMeta(
|
|
557
|
+
perk_id=PerkId.REGENERATION,
|
|
558
|
+
const_name="perk_id_regeneration",
|
|
559
|
+
const_addr="DAT_004c2bb0",
|
|
560
|
+
name="Regeneration",
|
|
561
|
+
description="Your health replenishes but very slowly. What more there is to say?",
|
|
562
|
+
flags=None,
|
|
563
|
+
prereq=(),
|
|
564
|
+
notes=(
|
|
565
|
+
"`perks_update_effects` (0x00406b40): if Regeneration is active and `(crt_rand() & 1) != 0`, heals each "
|
|
566
|
+
"alive player with `0 < health < 100` by `+dt` (clamped to `100`)."
|
|
567
|
+
),
|
|
568
|
+
),
|
|
569
|
+
PerkMeta(
|
|
570
|
+
perk_id=PerkId.PYROMANIAC,
|
|
571
|
+
const_name="perk_id_pyromaniac",
|
|
572
|
+
const_addr="DAT_004c2bd4",
|
|
573
|
+
name="Pyromaniac",
|
|
574
|
+
description="You just enjoy using fire as your Tool of Destruction and you're good at it too; your fire based weapons do a lot more damage.",
|
|
575
|
+
flags=None,
|
|
576
|
+
prereq=(),
|
|
577
|
+
notes=(
|
|
578
|
+
"`creature_apply_damage` (0x004207c0): when `damage_type == 4` and Pyromaniac is active, multiplies "
|
|
579
|
+
"damage by 1.5 and consumes one `crt_rand()`."
|
|
580
|
+
),
|
|
581
|
+
),
|
|
582
|
+
PerkMeta(
|
|
583
|
+
perk_id=PerkId.NINJA,
|
|
584
|
+
const_name="perk_id_ninja",
|
|
585
|
+
const_addr="DAT_004c2be0",
|
|
586
|
+
name="Ninja",
|
|
587
|
+
description="You've taken your dodging abilities to the next level; monsters have really hard time hitting you.",
|
|
588
|
+
flags=None,
|
|
589
|
+
prereq=(PerkId.DODGER,),
|
|
590
|
+
notes="`player_take_damage` (0x00425e50): 1/3 chance to ignore the hit (`crt_rand() % 3 == 0`) (takes precedence over Dodger).",
|
|
591
|
+
),
|
|
592
|
+
PerkMeta(
|
|
593
|
+
perk_id=PerkId.HIGHLANDER,
|
|
594
|
+
const_name="perk_id_highlander",
|
|
595
|
+
const_addr="DAT_004c2bd8",
|
|
596
|
+
name="Highlander",
|
|
597
|
+
description="You are immortal. Well, almost immortal. Instead of actually losing health on attacks you've got a 10% chance of just dropping dead whenever a monster attacks you. There really can be only one, you know.",
|
|
598
|
+
flags=None,
|
|
599
|
+
prereq=(),
|
|
600
|
+
notes="`player_take_damage` (0x00425e50): when active, does not subtract damage; instead `crt_rand() % 10 == 0` sets `health = 0.0` (instant death).",
|
|
601
|
+
),
|
|
602
|
+
PerkMeta(
|
|
603
|
+
perk_id=PerkId.JINXED,
|
|
604
|
+
const_name="perk_id_jinxed",
|
|
605
|
+
const_addr="DAT_004c2b68",
|
|
606
|
+
name="Jinxed",
|
|
607
|
+
description="Things happen near you. Strangest things. Creatures just drop dead and accidents happen. Beware.",
|
|
608
|
+
flags=None,
|
|
609
|
+
prereq=(),
|
|
610
|
+
notes=(
|
|
611
|
+
"Global timer `data_4aaf1c` in `perks_update_effects`: every ~2.0–3.9s, 1/10 chance to deal 5 self-damage "
|
|
612
|
+
"and call `fx_queue_add_random` twice at the player position. If Freeze bonus is inactive, kills a random "
|
|
613
|
+
"active creature (index = `rand() % 0x17f`, 10 retries) by setting `health=-1` and decrementing "
|
|
614
|
+
"`hitbox_size -= dt*20`, then awards `experience = int(float(experience) + creature.reward_value)` and plays "
|
|
615
|
+
"`sfx_trooper_inpain_01`."
|
|
616
|
+
),
|
|
617
|
+
),
|
|
618
|
+
PerkMeta(
|
|
619
|
+
perk_id=PerkId.PERK_MASTER,
|
|
620
|
+
const_name="perk_id_perk_master",
|
|
621
|
+
const_addr="DAT_004c2ba4",
|
|
622
|
+
name="Perk Master",
|
|
623
|
+
description="Being the Perk Expert taught you a few things and now you are ready to take your training to the next level doubling the ability effect.",
|
|
624
|
+
flags=None,
|
|
625
|
+
prereq=(PerkId.PERK_EXPERT,),
|
|
626
|
+
notes="`perk_choice_count`: while active, offers `7` perk choices per selection (vs `5` baseline).",
|
|
627
|
+
),
|
|
628
|
+
PerkMeta(
|
|
629
|
+
perk_id=PerkId.REFLEX_BOOSTED,
|
|
630
|
+
const_name="perk_id_reflex_boosted",
|
|
631
|
+
const_addr="DAT_004c2b58",
|
|
632
|
+
name="Reflex Boosted",
|
|
633
|
+
description="To you the world seems to go on about 10% slower than to an average person. It can be rather irritating sometimes, but it does give you a chance to react better.",
|
|
634
|
+
flags=None,
|
|
635
|
+
prereq=(),
|
|
636
|
+
notes="Main loop (`grim_update`): when in gameplay (`game_state_id == 9`) and Reflex Boosted is active, scales `frame_dt *= 0.9`.",
|
|
637
|
+
),
|
|
638
|
+
PerkMeta(
|
|
639
|
+
perk_id=PerkId.GREATER_REGENERATION,
|
|
640
|
+
const_name="perk_id_greater_regeneration",
|
|
641
|
+
const_addr="DAT_004c2bb4",
|
|
642
|
+
name="Greater Regeneration",
|
|
643
|
+
description="Your health replenishes faster than ever.",
|
|
644
|
+
flags=None,
|
|
645
|
+
prereq=(PerkId.REGENERATION,),
|
|
646
|
+
notes=(
|
|
647
|
+
"No runtime hook found in this build: `perk_id_greater_regeneration` is only referenced in perk selection "
|
|
648
|
+
"and `perk_apply` (Death Clock clears it). No reads appear in `perks_update_effects` / `player_update`."
|
|
649
|
+
),
|
|
650
|
+
),
|
|
651
|
+
PerkMeta(
|
|
652
|
+
perk_id=PerkId.BREATHING_ROOM,
|
|
653
|
+
const_name="perk_id_breathing_room",
|
|
654
|
+
const_addr="DAT_004c2bc4",
|
|
655
|
+
name="Breathing Room",
|
|
656
|
+
description="Trade 2/3rds of your health for the killing of every single creature on the screen. No, you don't get the experience.",
|
|
657
|
+
flags=PerkFlags.TWO_PLAYER_ONLY,
|
|
658
|
+
prereq=(),
|
|
659
|
+
notes=(
|
|
660
|
+
"`perk_apply` (0x004055e0): scales `player.health` down by 2/3 for each player, then for every active "
|
|
661
|
+
"creature does `hitbox_size -= frame_dt` (starting death staging without XP/bonus logic) and clears "
|
|
662
|
+
"`bonus_spawn_guard`."
|
|
663
|
+
),
|
|
664
|
+
),
|
|
665
|
+
PerkMeta(
|
|
666
|
+
perk_id=PerkId.DEATH_CLOCK,
|
|
667
|
+
const_name="perk_id_death_clock",
|
|
668
|
+
const_addr="DAT_004c2c14",
|
|
669
|
+
name="Death Clock",
|
|
670
|
+
description="You die exactly in 30 seconds. You can't escape your destiny, but feel free to go on a spree. Tick, tock.",
|
|
671
|
+
flags=None,
|
|
672
|
+
prereq=(),
|
|
673
|
+
notes=(
|
|
674
|
+
"`player_take_damage` (0x00425e50): if Death Clock is active, returns immediately (immune to damage). "
|
|
675
|
+
"`perk_apply` (0x004055e0): clears Regeneration and Greater Regeneration perk counts and sets "
|
|
676
|
+
"`player.health = 100.0` when `health > 0.0`."
|
|
677
|
+
),
|
|
678
|
+
),
|
|
679
|
+
PerkMeta(
|
|
680
|
+
perk_id=PerkId.MY_FAVOURITE_WEAPON,
|
|
681
|
+
const_name="perk_id_my_favourite_weapon",
|
|
682
|
+
const_addr="DAT_004c2c18",
|
|
683
|
+
name="My Favourite Weapon",
|
|
684
|
+
description="You've grown very fond of your piece. You polish it all the time and talk nice to it, your precious. (+2 clip size, no more random weapon bonuses)",
|
|
685
|
+
flags=None,
|
|
686
|
+
prereq=(),
|
|
687
|
+
notes=(
|
|
688
|
+
"`perk_apply` (0x004055e0): on pick, increases `clip_size` by `2` for each player. "
|
|
689
|
+
"`weapon_assign_player` (0x00452d40): also applies `+2` to `clip_size` on every weapon assignment while "
|
|
690
|
+
"the perk is active."
|
|
691
|
+
),
|
|
692
|
+
),
|
|
693
|
+
PerkMeta(
|
|
694
|
+
perk_id=PerkId.BANDAGE,
|
|
695
|
+
const_name="perk_id_bandage",
|
|
696
|
+
const_addr="DAT_004c2c1c",
|
|
697
|
+
name="Bandage",
|
|
698
|
+
description="Here, eat this bandage and you'll feel a lot better in no time. (restores up to 50% health)",
|
|
699
|
+
flags=None,
|
|
700
|
+
prereq=(),
|
|
701
|
+
notes=(
|
|
702
|
+
"`perk_apply` (0x004055e0): multiplies `player.health` by `(crt_rand() % 50 + 1)` and clamps to `100.0`, "
|
|
703
|
+
"then calls `effect_spawn_burst(player.pos, 8)`."
|
|
704
|
+
),
|
|
705
|
+
),
|
|
706
|
+
PerkMeta(
|
|
707
|
+
perk_id=PerkId.ANGRY_RELOADER,
|
|
708
|
+
const_name="perk_id_angry_reloader",
|
|
709
|
+
const_addr="DAT_004c2c20",
|
|
710
|
+
name="Angry Reloader",
|
|
711
|
+
description="You hate it when you run out of shots. You HATE HATE HATE reloading your gun. Lucky for you, and strangely enough, your hate materializes as Mighty Balls of Fire. Or more like Quite Decent Balls of Fire, but it's still kinda neat, huh?",
|
|
712
|
+
flags=None,
|
|
713
|
+
prereq=(),
|
|
714
|
+
notes="Spawns a ring of projectile type `0x0b` when the reload timer crosses the half threshold.",
|
|
715
|
+
),
|
|
716
|
+
PerkMeta(
|
|
717
|
+
perk_id=PerkId.ION_GUN_MASTER,
|
|
718
|
+
const_name="perk_id_ion_gun_master",
|
|
719
|
+
const_addr="DAT_004c2c0c",
|
|
720
|
+
name="Ion Gun Master",
|
|
721
|
+
description="You're good with ion weapons. You're so good that not only your shots do slightly more damage but your ion blast radius is also increased.",
|
|
722
|
+
flags=None,
|
|
723
|
+
prereq=(),
|
|
724
|
+
notes=(
|
|
725
|
+
"`projectile_update` (0x00420b90): sets `ion_aoe_scale` to `1.2` when active, scaling ion AoE radii "
|
|
726
|
+
"(Ion Rifle: 88, Ion Minigun: 60, Ion Cannon: 128). `creature_apply_damage` (0x004207c0): when "
|
|
727
|
+
"`damage_type == 7`, multiplies damage by 1.2."
|
|
728
|
+
),
|
|
729
|
+
),
|
|
730
|
+
PerkMeta(
|
|
731
|
+
perk_id=PerkId.STATIONARY_RELOADER,
|
|
732
|
+
const_name="perk_id_stationary_reloader",
|
|
733
|
+
const_addr="DAT_004c2c10",
|
|
734
|
+
name="Stationary Reloader",
|
|
735
|
+
description="It's incredibly hard to reload your piece while moving around, you've noticed. In fact, realizing that, when you don't move a (leg) muscle you can reload the gun THREE TIMES FASTER!",
|
|
736
|
+
flags=None,
|
|
737
|
+
prereq=(),
|
|
738
|
+
notes="`player_update` (0x004136b0): while stationary, applies `reload_scale = 3.0` when decrementing `reload_timer`.",
|
|
739
|
+
),
|
|
740
|
+
PerkMeta(
|
|
741
|
+
perk_id=PerkId.MAN_BOMB,
|
|
742
|
+
const_name="perk_id_man_bomb",
|
|
743
|
+
const_addr="DAT_004c2c24",
|
|
744
|
+
name="Man Bomb",
|
|
745
|
+
description="You have the ability to go boom for you are the MAN BOMB. Going boom requires a lot of concentration and standing completely still for a few seconds.",
|
|
746
|
+
flags=None,
|
|
747
|
+
prereq=(),
|
|
748
|
+
notes="Burst spawns projectile types `0x15/0x16`.",
|
|
749
|
+
),
|
|
750
|
+
PerkMeta(
|
|
751
|
+
perk_id=PerkId.FIRE_CAUGH,
|
|
752
|
+
const_name="perk_id_fire_caugh",
|
|
753
|
+
const_addr="DAT_004c2c2c",
|
|
754
|
+
name="Fire Caugh",
|
|
755
|
+
description="You have a fireball stuck in your throat. Repeatedly. Mind your manners.",
|
|
756
|
+
flags=None,
|
|
757
|
+
prereq=(),
|
|
758
|
+
notes="Uses projectile type `0x2d` (see Fire Bullets in the atlas notes).",
|
|
759
|
+
),
|
|
760
|
+
PerkMeta(
|
|
761
|
+
perk_id=PerkId.LIVING_FORTRESS,
|
|
762
|
+
const_name="perk_id_living_fortress",
|
|
763
|
+
const_addr="DAT_004c2c28",
|
|
764
|
+
name="Living Fortress",
|
|
765
|
+
description="It comes a time in each man's life when you'd just rather not move anymore. Being living fortress not moving comes with extra benefits as well. You do the more damage the longer you stand still.",
|
|
766
|
+
flags=None,
|
|
767
|
+
prereq=(),
|
|
768
|
+
notes=(
|
|
769
|
+
"`player_update` (0x00412d70): while stationary and Living Fortress is active, increments "
|
|
770
|
+
"`player.living_fortress_timer += frame_dt` (caps at 30.0; resets to 0.0 when moving). "
|
|
771
|
+
"`creature_apply_damage` (0x004207c0): for `damage_type == 1`, multiplies damage by "
|
|
772
|
+
"`(living_fortress_timer * 0.05 + 1.0)` for each alive player."
|
|
773
|
+
),
|
|
774
|
+
),
|
|
775
|
+
PerkMeta(
|
|
776
|
+
perk_id=PerkId.TOUGH_RELOADER,
|
|
777
|
+
const_name="perk_id_tough_reloader",
|
|
778
|
+
const_addr="DAT_004c2c30",
|
|
779
|
+
name="Tough Reloader",
|
|
780
|
+
description="Damage received during reloading a weapon is halved.",
|
|
781
|
+
flags=None,
|
|
782
|
+
prereq=(),
|
|
783
|
+
notes="`player_take_damage` (0x00425e50): if `reload_active` is set, multiplies incoming damage by `0.5`.",
|
|
784
|
+
),
|
|
785
|
+
PerkMeta(
|
|
786
|
+
perk_id=PerkId.LIFELINE_50_50,
|
|
787
|
+
const_name="perk_id_lifeline_50_50",
|
|
788
|
+
const_addr="DAT_004c2be4",
|
|
789
|
+
name="Lifeline 50-50",
|
|
790
|
+
description="The computer removes half of the wrong monsters for you. You don't gain any experience.",
|
|
791
|
+
flags=None,
|
|
792
|
+
prereq=(),
|
|
793
|
+
notes=(
|
|
794
|
+
"`perk_apply` (0x004055e0): iterates `creature_pool` in slot order, deactivating every other slot "
|
|
795
|
+
"(`bVar8` toggles each iteration) when it is active, has `health <= 500.0`, and `(flags & 4) == 0`; "
|
|
796
|
+
"for each deactivated creature it calls `effect_spawn_burst(creature.pos, 4)`."
|
|
797
|
+
),
|
|
798
|
+
),
|
|
799
|
+
]
|
|
800
|
+
|
|
801
|
+
PERK_BY_ID = {int(entry.perk_id): entry for entry in PERK_TABLE}
|
|
802
|
+
|
|
803
|
+
QUICK_LEARNER_NAME = "Quick Learner"
|
|
804
|
+
QUICK_LEARNER_DESCRIPTION = (
|
|
805
|
+
"You learn things faster than a regular Joe from now on gaining 30% more experience points from everything you do."
|
|
806
|
+
)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
def perk_display_name(perk_id: int, *, fx_toggle: int = 0) -> str:
|
|
810
|
+
if int(perk_id) == int(PerkId.BLOODY_MESS_QUICK_LEARNER) and int(fx_toggle) != 0:
|
|
811
|
+
return QUICK_LEARNER_NAME
|
|
812
|
+
entry = PERK_BY_ID.get(int(perk_id))
|
|
813
|
+
if entry is None:
|
|
814
|
+
return f"Perk {int(perk_id)}"
|
|
815
|
+
return entry.name
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
def perk_display_description(perk_id: int, *, fx_toggle: int = 0) -> str:
|
|
819
|
+
if int(perk_id) == int(PerkId.BLOODY_MESS_QUICK_LEARNER) and int(fx_toggle) != 0:
|
|
820
|
+
return QUICK_LEARNER_DESCRIPTION
|
|
821
|
+
entry = PERK_BY_ID.get(int(perk_id))
|
|
822
|
+
if entry is None:
|
|
823
|
+
return "Unknown perk."
|
|
824
|
+
return entry.description
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
def perk_label(perk_id: int, *, fx_toggle: int = 0) -> str:
|
|
828
|
+
return perk_display_name(perk_id, fx_toggle=fx_toggle)
|