Skip to content

Commit 9799ccf

Browse files
committed
chore: delete four more 5E-only classes the lazy registry had hidden
The first census imported kirby_cost and read GenericObject._registry, which at that point held only the packages eagerly imported -- 208 of ~300. Loading _registry_imports first surfaced skills, talents, perks, frameworks and martial arts, and with them four more 5E-only classes: RAPID_ATTACK_RANGED and TWO_WEAPON_FIGHTING_RANGED (6E folds the ranged variants into one skill with an option), LIGHTNING_REFLEXES_SINGLE (6E writes every scope as LIGHTNING_REFLEXES_ALL with a narrowing OPTIONID -- kirby-combat's own comment says so and scans the _SINGLE id only defensively), and MAGESIGHT (a 5E Fantasy Hero talent). Same category as the 27 deleted before them, same decision (6E only), same checks: referenced only by their package __init__ and the eager import list; the loader normalises nothing onto these ids; zero corpus or authored characters carry them. kirby-combat's defensive string is harmless and stays.
1 parent 0530bde commit 9799ccf

7 files changed

Lines changed: 3 additions & 252 deletions

File tree

kirby_cost/objects/_registry_imports.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
cramming, custom_skill, defense_maneuver, enhancer, knowledge_skill,
3939
language,
4040
mental_combat_levels, n_counter_skill, penalty_skill_levels,
41-
professional_skill, rapid_attack_hth, rapid_attack_ranged,
42-
skill_levels, transport_familiarity, two_weapon_fighting_hth,
43-
two_weapon_fighting_ranged, weapon_familiarity,
41+
professional_skill, rapid_attack_hth, skill_levels, transport_familiarity, two_weapon_fighting_hth,
42+
weapon_familiarity,
4443
)
4544

4645
# ── Perks ───────────────────────────────────────────────────────────
@@ -53,7 +52,7 @@
5352
from kirby_cost.objects.talents import ( # noqa: F401
5453
bump_of_direction, combat_luck, combat_sense, custom_talent, danger_sense,
5554
environmental_movement, lightning_reflexes_all,
56-
lightning_reflexes_single, mage_sight, resistance, simulate_death,
55+
resistance, simulate_death,
5756
speed_reading, striking_appearance, universal_translator,
5857
)
5958

kirby_cost/objects/skills/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
from kirby_cost.objects.skills.language import Language
2323
from kirby_cost.objects.skills.autofire_skills import AutofireSkills
2424
from kirby_cost.objects.skills.rapid_attack_hth import RapidAttackHTH
25-
from kirby_cost.objects.skills.rapid_attack_ranged import RapidAttackRanged
2625
from kirby_cost.objects.skills.two_weapon_fighting_hth import TwoWeaponFightingHTH
27-
from kirby_cost.objects.skills.two_weapon_fighting_ranged import TwoWeaponFightingRanged
2826

2927
__all__ = [
3028
'Skill',
@@ -46,7 +44,5 @@
4644
'Language',
4745
'AutofireSkills',
4846
'RapidAttackHTH',
49-
'RapidAttackRanged',
5047
'TwoWeaponFightingHTH',
51-
'TwoWeaponFightingRanged',
5248
]

kirby_cost/objects/skills/rapid_attack_ranged.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

kirby_cost/objects/skills/two_weapon_fighting_ranged.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

kirby_cost/objects/talents/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
from kirby_cost.objects.talents.danger_sense import DangerSense
1010
from kirby_cost.objects.talents.environmental_movement import EnvironmentalMovement
1111
from kirby_cost.objects.talents.lightning_reflexes_all import LightningReflexesAll
12-
from kirby_cost.objects.talents.lightning_reflexes_single import LightningReflexesSingle
13-
from kirby_cost.objects.talents.mage_sight import MageSight
1412
from kirby_cost.objects.talents.resistance import Resistance
1513
from kirby_cost.objects.talents.simulate_death import SimulateDeath
1614
from kirby_cost.objects.talents.speed_reading import SpeedReading
@@ -25,8 +23,6 @@
2523
'DangerSense',
2624
'EnvironmentalMovement',
2725
'LightningReflexesAll',
28-
'LightningReflexesSingle',
29-
'MageSight',
3026
'Resistance',
3127
'SimulateDeath',
3228
'SpeedReading',

kirby_cost/objects/talents/lightning_reflexes_single.py

Lines changed: 0 additions & 129 deletions
This file was deleted.

kirby_cost/objects/talents/mage_sight.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)