-
Notifications
You must be signed in to change notification settings - Fork 3
Pawn Crate
Alite edited this page Sep 24, 2026
·
3 revisions
This thing class that spawns a pawn when opened or destroyed with the same faction as the destroyer/opener:
<thingClass>EBSGFramework.Building_PawnCrate</thingClass>
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
</li>
</modExtensions>
If the extension isn't added, the defaults will still be used. These are the options available within the extension for the class:
- xenotype : Default (Baseliner) : The XenotypeDef used for the created pawn
- developmentalStage : Default (Adult) : The developmental state to assign to each pawn when made. Options are Newborn, Baby, Child, and Adult
- pawnKind : Default (EBSG_BlankColonistist) : The PawnKindDef to use for the created pawn
- The default has no apparel, weapons, or implants
This is a variation of the hermetic crate that creates a hussar that has the same faction as the opener/destroyer:
<ThingDef ParentName="CrateBase">
<defName>HussarPod</defName>
<label>hussar pod</label>
<description>A self-powered crate with a hussar inside, ready to serve whoever releases them.</description>
<size>(1, 2)</size>
<fillPercent>0.40</fillPercent>
<thingClass>EBSGFramework.Building_PawnCrate</thingClass>
<graphicData>
<texPath>Things/Building/Ruins/AncientHermeticCrate</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1, 2)</drawSize>
<shadowData>
<volume>(1, 0.45, 2)</volume>
</shadowData>
</graphicData>
<statBases>
<MaxHitPoints>250</MaxHitPoints>
<WorkToBuild>1000</WorkToBuild>
</statBases>
<building>
<openingEffect>HermeticCrateOpened</openingEffect>
</building>
<comps>
<li Class="CompProperties_EmptyStateGraphic">
<graphicData>
<texPath>Things/Building/Ruins/AncientHermeticCrateOpen</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1, 2)</drawSize>
</graphicData>
</li>
<li Class="CompProperties_ThrownFleckEmitter">
<fleck>TerminalScreenLensFlare</fleck>
<offsetMin>(-0.3,0,-0.7)</offsetMin>
<offsetMax>(0.3,0,-0.7)</offsetMax>
<emissionInterval>90</emissionInterval>
<scale>1~1.1</scale>
<colorA>(239,133,50,255)</colorA>
<colorB>(239,133,50,255)</colorB>
</li>
<li Class="CompProperties_Glower">
<glowRadius>3</glowRadius>
<glowColor>(239,133,50,0)</glowColor>
</li>
</comps>
<tickerType>Normal</tickerType>
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
<xenotype>Hussar</xenotype>
</li>
</modExtensions>
</ThingDef>
- Ability Validator
- Add Things To Inventory
- Alter Genes
- Alter Item
- Alter Xenotype (Ability)
- Blood Drain
- Blast Attacks
- Burst Attacks
- Change Faction
- Change Gender
- Change Ideology
- Change Traits
- Change Weather
- Charge Battery
- Create Items
- Create Linked Hediffs
- Deal Damage
- Destroy Corpse
- Destroy Filth
- Destroy Items
- Duplicate Pawn
- Fly to Map Tile
- Give Multiple Hediffs
- Instant Death
- Launch Projectile Burst
- Learn Skill
- Long Distance Teleport
- Love the Caster
- Offset Needs Ability
- Orbital Strike
- Push Target
- Reloadable Abilities
- Remove Multiple Hediffs
- Remove Things From Inventory
- Spawn Humanlike (Ability)
- Spawn Pawn Kinds
- Spew
- Start on Cooldown
- Stop Mental Break (No Psychic)
- Toggle Hediff
- Trigger Game Condition
- Abilities From Other Genes
- Additional Fertility by Age
- Additional Lovin' Results
- Aging Xenotype
- Biome Genes
- Butchery Changing Genes
- Coma Rest Genes
- Conflicting Genes
- Customizable Bloodclotting
- Damage Modifying Stats Extension
- EBSG Body
- Equip Restrict
- Evolving Genes
- Fertility by Age
- Gender by Age
- Genetic Romance Chance
- Hediff Adder
- Hediff on Consumption
- Hediffs at Age
- Hide Inactive
- Hive Mind Genes
- Inactive at Age
- Ingestible Dependency Genes
- Mutating Genes
- Pregnancy Replacing Genes
- Random Periodic Interaction
- Removed at Age
- Skill Changing Genes
- Spawn Age Limiter
- Thoughts on Down from Gene
- Vanishing Genes
- Various Conditional Stat Affecters
- Aging Hediff
- Alter Xenotype (Hediff)
- Attach Mote
- Create Items
- Create Other Hediffs
- Damage on Removal
- Damage Over Time
- Destroy on Death
- Display Severity
- Flip Gender Periodically
- Gender by Age Hediff
- Gene Randomizer
- Give Abilities at Severities
- Give Hediff to Killer
- Give Hediffs to Non-Allies
- Give Other Hediff Periodically
- Hediff on Kill
- Hediff While Moving
- Hediffs on Removal
- Hediffs While Drafted
- Hediffs While in Severity Ranges
- Hemogen on Kill
- Hemogen Regeneration
- Make Hediff Invisible at Stage
- Memory on Kill
- Modular Hediffs
- Multiple Lives
- Name Color Hediff
- Remove at Severities
- Remove/Damage Parts
- Remove on Faction Change
- Remove When Damaged
- Severity Change per Attack
- Severity Change When Hit
- Severity Per Day by Genes
- Severity per Interval by Terrain
- Shield Hediff
- Skill Change Hediffs
- Spawn Humanlike
- Spawn Pawn Kind on Removal
- Temporary Faction
- Temporary Genes
- Temporary Ideology
- Temporary Relation
- Terrain Cost Override
- Tiered Regeneration
- Various Explosion Hediff Comps
- Severity Setters
- Faction Bond
- Severity by Age
- Severity by Colony Genes
- Severity by Colony Wealth
- Severity by Equipped
- Severity by Gender
- Severity by Genes
- Severity by Light Level
- Severity by Map
- Severity by Mental State
- Severity by Nearby Pawns
- Severity by Need Level
- Severity by Other Hediff Severities
- Severity by Time of Day
- Severity When Downed
- Add or Append Hediff on Ingest
- Alter Genes on Ingest
- Alter Genes on Use
- Alter Xenotype on Ingest
- Alter Xenotype on Use
- Alter Xenotype on Use by Severity
- Damage Modifying Stats Extension
- Equip Restrict
- Flexible Entity Releaser
- Gatherer Spot
- Give Hediff Based on Severity
- Hediff on Damage
- Limited Charges
- Need Charger Buildings
- Projectile Impact Effects
- Random Shot
- Regenerating Things
- Shield Equipment
- Sleep Caskets
- Spawn Baby Thing Comp
- Turret Roof Blocked
- Weapon Trait Extension
- Desired Genes Precept
- Disliked in Faction
- Gene in Colony Mood Precept
- Gene in Colony Mood Toggle Precept
- Opinions About Genes
- People in the Colony
- Random Opinion
- Thought Mood by Hediff Severity
- Thought Multiplying Genes
- Thoughts About Water
- Xenophilobic Thoughts
- The Genes
- Resource Packs
- Craving and Overcharge Hediffs
- Resource Using Abilities
- Converting Resources
- Special DRG Abilities
- Special DRG Hediffs