Skip to content

Commit

Permalink
Added 1.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Toakan committed Feb 29, 2020
1 parent 77dbf80 commit 5357686
Show file tree
Hide file tree
Showing 90 changed files with 980 additions and 2,458 deletions.
Binary file added 1.0/Assemblies/0Harmony.dll
Binary file not shown.
Binary file added 1.0/Assemblies/0JecsTools.dll
Binary file not shown.
Binary file added 1.0/Assemblies/AbilityUser.dll
Binary file not shown.
Binary file added 1.0/Assemblies/AbilityUserAI.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompActivatableEffect.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompAnimated.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompBalloon.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompBigBox.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompDeflector.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompDelayedSpawner.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompExtraSounds.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompInstalledPart.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompLumbering.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompOverlays.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompOversizedWeapon.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompSlotLoadable.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompToggleDef.dll
Binary file not shown.
Binary file added 1.0/Assemblies/CompVehicle.dll
Binary file not shown.
Binary file added 1.0/Assemblies/PawnShields.dll
Binary file not shown.
Binary file added 1.0/Assemblies/ThinkNodes.dll
Binary file not shown.
11 changes: 11 additions & 0 deletions 1.0/Defs/AbilityDefs/Abilities_Base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>

<Defs>

<!-- ========================BaseDef================================== -->

<AbilityUser.AbilityDef Name="BaseAbility" Abstract="True">
<uiIconPath>UI/Glow_Corrupt</uiIconPath>
</AbilityUser.AbilityDef>

</Defs>
23 changes: 23 additions & 0 deletions 1.0/Defs/DamageDefs/AbilityUser_Damages.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<DamageDef>
<defName>Laser</defName>
<workerClass>DamageWorker_AddInjury</workerClass>
<label>burn</label>
<hasForcefulImpact>true</hasForcefulImpact>
<makesBlood>false</makesBlood>
<!-- <incapChanceMultiplier>1.2</incapChanceMultiplier> -->
<canInterruptJobs>false</canInterruptJobs>
<externalViolence>true</externalViolence>
<deathMessage>{0} has been shot to death.</deathMessage>
<hediff>Burn</hediff>
<armorCategory>Heat</armorCategory>
<explosionHeatEnergyPerCell>15</explosionHeatEnergyPerCell>
<explosionCellMote>Mote_BlastFlame</explosionCellMote>
<explosionColorCenter>(1, 0.7, 0.7)</explosionColorCenter>
<explosionColorEdge>(1, 1, 0.7)</explosionColorEdge>
<soundExplosion>Explosion_Flame</soundExplosion>
</DamageDef>

</Defs>
20 changes: 20 additions & 0 deletions 1.0/Defs/JobDefs/AbilityUser_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<JobDef>
<defName>CastAbilityVerb</defName>
<driverClass>AbilityUser.JobDriver_CastAbilityVerb</driverClass>
<reportString>Using an ability</reportString>
<alwaysShowWeapon>true</alwaysShowWeapon>
<casualInterruptible>false</casualInterruptible>
</JobDef>

<JobDef>
<defName>CastAbilitySelf</defName>
<driverClass>AbilityUser.JobDriver_CastAbilitySelf</driverClass>
<reportString>Using an ability</reportString>
<alwaysShowWeapon>true</alwaysShowWeapon>
<casualInterruptible>false</casualInterruptible>
</JobDef>

</Defs>
12 changes: 12 additions & 0 deletions 1.0/Defs/JobDefs/CompDeflector_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<JobDef>
<defName>CastDeflectVerb</defName>
<driverClass>CompDeflector.JobDriver_CastDeflectVerb</driverClass>
<reportString>Deflecting</reportString>
<alwaysShowWeapon>true</alwaysShowWeapon>
<casualInterruptible>false</casualInterruptible>
</JobDef>

</Defs>
17 changes: 17 additions & 0 deletions 1.0/Defs/JobDefs/CompInstalledPart_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<JobDef>
<defName>CompInstalledPart_InstallPart</defName>
<driverClass>CompInstalledPart.JobDriver_InstallPart</driverClass>
<reportString>installing TargetA.</reportString>
<suspendable>false</suspendable>
</JobDef>

<JobDef>
<defName>CompInstalledPart_UninstallPart</defName>
<driverClass>CompInstalledPart.JobDriver_UninstallPart</driverClass>
<reportString>uninstalling TargetA.</reportString>
<suspendable>false</suspendable>
</JobDef>

</Defs>
10 changes: 10 additions & 0 deletions 1.0/Defs/JobDefs/CompSlotLoadable_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<JobDef>
<defName>GatherSlotItem</defName>
<driverClass>CompSlotLoadable.JobDriver_GatherSlotItem</driverClass>
<reportString>equipping TargetA.</reportString>
</JobDef>

</Defs>
13 changes: 13 additions & 0 deletions 1.0/Defs/JobDefs/CompVehicle_Jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<JobDef>
<defName>CompVehicle_LoadPassenger</defName>
<driverClass>CompVehicle.JobDriver_LoadPassenger</driverClass>
<reportString>entering TargetA.</reportString>
</JobDef>
<JobDef>
<defName>CompVehicle_Assemble</defName>
<driverClass>CompVehicle.JobDriver_AssembleVehicle</driverClass>
<reportString>assembling TargetA.</reportString>
</JobDef>
</Defs>
196 changes: 196 additions & 0 deletions 1.0/Defs/PawnShields/Shields.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<StatCategoryDef>
<defName>Shield</defName>
<label>Shield</label>
<displayOrder>35</displayOrder>
</StatCategoryDef>

<StatDef>
<defName>Shield_BaseMeleeBlockChance</defName>
<label>melee block chance</label>
<description>Shield users melee block chance is multiplied by this. The higher the better.</description>
<category>Shield</category>
<workerClass>PawnShields.StatWorker_Shield</workerClass>
<defaultBaseValue>1</defaultBaseValue>
<minValue>0.05</minValue>
<toStringStyle>PercentZero</toStringStyle>
<showIfUndefined>false</showIfUndefined>
</StatDef>

<StatDef>
<defName>Shield_BaseRangedBlockChance</defName>
<label>ranged block chance</label>
<description>Shield users ranged block chance is multiplied by this. The higher the better.</description>
<category>Shield</category>
<workerClass>PawnShields.StatWorker_Shield</workerClass>
<defaultBaseValue>0.5</defaultBaseValue>
<minValue>0.05</minValue>
<toStringStyle>PercentZero</toStringStyle>
<showIfUndefined>false</showIfUndefined>
</StatDef>

<StatDef>
<defName>Shield_DamageAbsorbed</defName>
<label>damage absorption</label>
<description>How much damage the shield absorbs from a blocked attack.</description>
<category>Shield</category>
<workerClass>PawnShields.StatWorker_Shield</workerClass>
<defaultBaseValue>1</defaultBaseValue>
<minValue>0.05</minValue>
<toStringStyle>PercentZero</toStringStyle>
<showIfUndefined>false</showIfUndefined>
</StatDef>

<!-- Hediffs -->
<HediffDef>
<defName>ShieldFatigue</defName>
<label>shield fatigue</label>
<hediffClass>HediffWithComps</hediffClass>
<maxSeverity>1.0</maxSeverity>
<comps>
<li Class="HediffCompProperties_Immunizable">
<severityPerDayNotImmune>-48.0</severityPerDayNotImmune>
</li>
</comps>
<stages>
<li>
<label>minor</label>
<capMods>
<li>
<capacity>Manipulation</capacity>
<offset>-0.02</offset>
</li>
<li>
<capacity>Moving</capacity>
<offset>-0.02</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.5</minSeverity>
<label>major</label>
<capMods>
<li>
<capacity>Manipulation</capacity>
<offset>-0.06</offset>
</li>
<li>
<capacity>Moving</capacity>
<offset>-0.06</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>0.8</minSeverity>
<label>severe</label>
<capMods>
<li>
<capacity>Manipulation</capacity>
<offset>-0.1</offset>
</li>
<li>
<capacity>Moving</capacity>
<offset>-0.1</offset>
</li>
</capMods>
</li>
<li>
<minSeverity>1.0</minSeverity>
<label>extreme</label>
<capMods>
<li>
<capacity>Manipulation</capacity>
<offset>-0.1</offset>
</li>
<li>
<capacity>Moving</capacity>
<offset>-0.1</offset>
</li>
</capMods>
</li>
</stages>
</HediffDef>

<!-- Melee Block -->
<StatDef>
<defName>MeleeShieldBlockChance</defName>
<label>melee block chance</label>
<description>Chance to block a melee attack that would've otherwise hit.</description>
<category>PawnCombat</category>
<displayPriorityInCategory>99</displayPriorityInCategory>
<neverDisabled>false</neverDisabled>
<defaultBaseValue>0.3</defaultBaseValue>
<toStringStyle>PercentZero</toStringStyle>
<toStringStyleUnfinalized>FloatOne</toStringStyleUnfinalized>
<noSkillOffset>0</noSkillOffset>
<skillNeedOffsets>
<li Class="SkillNeed_BaseBonus">
<skill>Melee</skill>
<baseValue>5</baseValue>
<bonusPerLevel>7</bonusPerLevel>
</li>
</skillNeedOffsets>
<capacityOffsets>
<li>
<capacity>Moving</capacity>
<scale>18</scale>
</li>
<li>
<capacity>Sight</capacity>
<scale>8</scale>
<max>1.4</max>
</li>
</capacityOffsets>
<postProcessCurve>
<points>
<li>(5, 0.10)</li>
<li>(20, 0.30)</li>
<li>(60, 0.50)</li>
<li>(100, 0.80)</li>
<li>(140, 0.90)</li>
</points>
</postProcessCurve>
</StatDef>

<!-- Ranged Block -->
<StatDef>
<defName>RangedShieldBlockChance</defName>
<label>ranged block chance</label>
<description>Chance to block a ranged attack that would've otherwise hit.</description>
<category>PawnCombat</category>
<displayPriorityInCategory>99</displayPriorityInCategory>
<neverDisabled>false</neverDisabled>
<defaultBaseValue>0.1</defaultBaseValue>
<toStringStyle>PercentZero</toStringStyle>
<toStringStyleUnfinalized>FloatOne</toStringStyleUnfinalized>
<noSkillOffset>0</noSkillOffset>
<skillNeedOffsets>
<li Class="SkillNeed_BaseBonus">
<skill>Melee</skill>
<baseValue>5</baseValue>
<bonusPerLevel>3</bonusPerLevel>
</li>
</skillNeedOffsets>
<capacityOffsets>
<li>
<capacity>Moving</capacity>
<scale>18</scale>
</li>
<li>
<capacity>Sight</capacity>
<scale>8</scale>
<max>1.4</max>
</li>
</capacityOffsets>
<postProcessCurve>
<points>
<li>(5, 0.05)</li>
<li>(20, 0.10)</li>
<li>(60, 0.30)</li>
<li>(100, 0.60)</li>
<li>(140, 0.80)</li>
</points>
</postProcessCurve>
</StatDef>
</Defs>
Loading

0 comments on commit 5357686

Please sign in to comment.