How sylpyuanw/trk-nine works
TRK-Nine is a RimWorld gameplay mod implemented as C# extensions plus game Defs and assets. Its central player-facing workflow is equipping the configurable Delivery Box, switching weapon forms, and using form-specific combat and abilities; the mod also adds the Death Bow, armor-set effects, and combat patches. The graph emphasizes runtime components. Evidence is limited to the README and sampled source: unsampled subsystems are included where their paths are clear, but uncertain wiring is omitted.
Main entry points: Weapon_DeliveryBox.cs Form Transformer · Ability_DeliveryBoxHighPower.cs High Power Ability · CompEquippable_DeathBow.cs Bow Equipment · DeathBowDefOf.cs Bow Def References
Components 18
Delivery Box
- Form Transformer
Source/ClassLibrary1/Weapon/Weapon_DeliveryBox.cs - Form Display
Source/ClassLibrary1/Weapon/Weapon_DeliveryBox_DisplayPatches.cs - Form Effects
Source/ClassLibrary1/Weapon/Weapon_DeliveryBox_EffectPatches.cs - Melee Stat Patches
Source/ClassLibrary1/StatWorker_MeleeAveragePatches.cs - High Power Ability
Source/ClassLibrary1/Abilities/Ability_DeliveryBoxHighPower.cs - High Power Gizmo
Source/ClassLibrary1/Abilities/Gizmo_DeliveryBoxHighPower.cs - Breakthrough Tool
Source/ClassLibrary1/Abilities/Ability_BreakthroughTool.cs
Death Bow
- Bow Equipment
Source/ClassLibrary1/Weapon/BowOfDeath/CompEquippable_DeathBow.cs - Bow Def References
Source/ClassLibrary1/Weapon/BowOfDeath/DeathBowDefOf.cs - Arrow Projectile
Source/ClassLibrary1/Weapon/BowOfDeath/Projectile_DeathBowArrow.cs - Aim Visual Effects
Source/ClassLibrary1/Weapon/BowOfDeath/Mote_DeathBowAimVfx.cs
Abilities And Gear
- Set Piece Counter
Source/ClassLibrary1/Hediff/Comp_SetPiece.cs - Liu Set Effects
Source/ClassLibrary1/Abilities/Hediff_LiuSet.cs - Zwei Aura
Source/ClassLibrary1/Abilities/Hediff_ZweiAura.cs - Equipped Hediff
Source/ClassLibrary1/Hediff/Comp_EquippedHediff.cs
Combat Rules
- Ranged Dodge
Source/ClassLibrary1/Combat/Patch_Pawn_PreApplyDamage_RangeDodge.cs
Other components
- Player
- RimWorld Runtime
Connections 11
- Player → Form Transformer: switches forms
- Form Transformer → Melee Stat Patches: provides form tools
Source/ClassLibrary1/StatWorker_MeleeAveragePatches.cs - Form Transformer → Form Effects: supplies mode
Source/ClassLibrary1/Weapon/Weapon_DeliveryBox_EffectPatches.cs - Form Transformer → High Power Ability: manages ability
- Form Transformer → Breakthrough Tool: adds skill gizmo
- High Power Ability → RimWorld Runtime: adds health effect
Source/ClassLibrary1/Abilities/Ability_DeliveryBoxHighPower.cs - Player → Bow Equipment: uses bow controls
- Bow Equipment → Bow Def References: references definitions
Source/ClassLibrary1/Weapon/BowOfDeath/CompEquippable_DeathBow.cs - Arrow Projectile → Bow Def References: reads arrow definition
Source/ClassLibrary1/Weapon/BowOfDeath/Projectile_DeathBowArrow.cs - Set Piece Counter → RimWorld Runtime: grants ability
Source/ClassLibrary1/Hediff/Comp_SetPiece.cs - Ranged Dodge → RimWorld Runtime: patches damage intake
Source/ClassLibrary1/Combat/Patch_Pawn_PreApplyDamage_RangeDodge.cs