Skip to content

Commit

Permalink
Fixed hyper component spawn rate, tweaked ultratech spawn rates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicguru committed May 29, 2020
1 parent 9e333a5 commit 473138c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 35 deletions.
34 changes: 20 additions & 14 deletions Defs/Factions/Pawn Kinds/UltratechPawns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<combatEnhancingDrugsCount>0~1</combatEnhancingDrugsCount>
<biocodeWeaponChance>0.2</biocodeWeaponChance>
<inventoryOptions>
<!-- <skipChance>0</skipChance> Chance to have Hyper Components: 2 in 10 -->
<subOptionsChooseOne>
<subOptionsTakeAll>
<li>
<skipChance>0.8</skipChance> <!-- All raiders have a 20% chance to carry hyper components -->
<thingDef>HyperComponent_AA</thingDef>
<countRange>1~1</countRange>
</li>
</subOptionsChooseOne>
</subOptionsTakeAll>
</inventoryOptions>
</PawnKindDef>

Expand Down Expand Up @@ -54,19 +54,21 @@
<li>MechanoidGunMedium</li>
</weaponTags>
<inventoryOptions>
<skipChance>0.7</skipChance>
<subOptionsChooseOne>
<li>
<skipChance>0.5</skipChance>
<thingDef>Silver</thingDef>
<countRange>60~150</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineIndustrial</thingDef>
<countRange>0~2</countRange>
<countRange>1~2</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineUltratech</thingDef>
<countRange>0~1</countRange>
<countRange>1~2</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
Expand Down Expand Up @@ -103,17 +105,19 @@
<li>MechanoidGunMedium</li>
</weaponTags>
<inventoryOptions>
<skipChance>0.4</skipChance>
<subOptionsChooseOne>
<li>
<skipChance>0.5</skipChance>
<thingDef>Silver</thingDef>
<countRange>100~200</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineIndustrial</thingDef>
<countRange>2~5</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineUltratech</thingDef>
<countRange>2~3</countRange>
</li>
Expand Down Expand Up @@ -142,15 +146,16 @@
<li>BionicEye</li>
</techHediffsRequired>
<inventoryOptions>
<skipChance>0.7</skipChance>
<subOptionsChooseOne>
<li>
<skipChance>0.5</skipChance>
<thingDef>Silver</thingDef>
<countRange>80~250</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineUltratech</thingDef>
<countRange>0~1</countRange>
<countRange>1~2</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
Expand Down Expand Up @@ -183,15 +188,16 @@
<li>ArchotechEye</li>
</techHediffsRequired>
<inventoryOptions>
<skipChance>0.7</skipChance>
<subOptionsChooseOne>
<li>
<skipChance>0.5</skipChance>
<thingDef>Silver</thingDef>
<countRange>90~260</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineUltratech</thingDef>
<countRange>0~1</countRange>
<countRange>1~2</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
Expand All @@ -215,15 +221,16 @@
<li>SpacerMeleeAdvanced</li>
</weaponTags>
<inventoryOptions>
<skipChance>0.7</skipChance>
<subOptionsChooseOne>
<li>
<skipChance>0.5</skipChance>
<thingDef>Silver</thingDef>
<countRange>80~250</countRange>
</li>
<li>
<skipChance>0.5</skipChance>
<thingDef>MedicineUltratech</thingDef>
<countRange>0~1</countRange>
<countRange>1~2</countRange>
</li>
</subOptionsChooseOne>
</inventoryOptions>
Expand Down Expand Up @@ -256,7 +263,6 @@
<li>BionicLeg</li>
</techHediffsRequired>
<inventoryOptions>
<skipChance>0.4</skipChance>
<subOptionsChooseOne>
<li>
<thingDef>Silver</thingDef>
Expand Down
35 changes: 16 additions & 19 deletions Defs/Factions/Ultratech.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,27 @@
<!-- Normal fights, standard mix -->
<kindDef>Combat</kindDef>
<options>
<UltratechMelee_AA>4</UltratechMelee_AA>
<UltratechMeleeAdvanced_AA>2</UltratechMeleeAdvanced_AA>
<UltratechSniper_AA>6</UltratechSniper_AA>
<UltratechSniperAdvanced_AA>4</UltratechSniperAdvanced_AA>
<UltratechGunner_AA>10</UltratechGunner_AA>
<UltratechGunnerAdvanced_AA>8</UltratechGunnerAdvanced_AA>
<UltratechMelee_AA>2</UltratechMelee_AA>
<UltratechMeleeAdvanced_AA>1</UltratechMeleeAdvanced_AA>

<UltratechSniper_AA>2</UltratechSniper_AA>
<UltratechSniperAdvanced_AA>1</UltratechSniperAdvanced_AA>

<UltratechGunner_AA>8</UltratechGunner_AA>
<UltratechGunnerAdvanced_AA>5</UltratechGunnerAdvanced_AA>
</options>
</li>
<li>
<kindDef>Settlement</kindDef>
<options>
<!-- <Villager>10</Villager>
<Town_Guard>10</Town_Guard>
<Grenadier_Destructive>1.5</Grenadier_Destructive>
<Mercenary_Slasher>7</Mercenary_Slasher>
<Mercenary_Gunner>10</Mercenary_Gunner>
<Mercenary_Elite>10</Mercenary_Elite>
<Town_Councilman>10</Town_Councilman> -->
<UltratechMelee_AA>5</UltratechMelee_AA>
<UltratechSniper_AA>8</UltratechSniper_AA>
<UltratechSniperAdvanced_AA>4</UltratechSniperAdvanced_AA>
<UltratechGunner_AA>10</UltratechGunner_AA>
<UltratechGunnerAdvanced_AA>8</UltratechGunnerAdvanced_AA>
<UltratechMeleeAdvanced_AA>4</UltratechMeleeAdvanced_AA>
<UltratechMelee_AA>3</UltratechMelee_AA>
<UltratechMeleeAdvanced_AA>2</UltratechMeleeAdvanced_AA>

<UltratechSniper_AA>5</UltratechSniper_AA>
<UltratechSniperAdvanced_AA>3</UltratechSniperAdvanced_AA>

<UltratechGunner_AA>5</UltratechGunner_AA>
<UltratechGunnerAdvanced_AA>9</UltratechGunnerAdvanced_AA>
</options>
</li>
</pawnGroupMakers>
Expand Down
2 changes: 0 additions & 2 deletions Source/AntimatterAnnihilation/Buildings/MBDTop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ public override void Draw()

private void DrawBarrel(float angle, float radius)
{


angle = angle % 360f;
float rads = angle * Mathf.Deg2Rad;

Expand Down

0 comments on commit 473138c

Please sign in to comment.