tahg

Possible fix for CAPAUG-X

Mar 29th, 2021 (edited)
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. // AugmentBP.cs
  2.  
  3. internal override bool Allocate()
  4. {
  5. var gold = Character.realGold;
  6. var aug = Character.augmentsController.augments[AugIndex];
  7. var alloc = CalculateAugCap();
  8. SetInput(alloc);
  9. if (Index % 2 == 0)
  10. {
  11. if (gold < aug.getAugCost() && aug.AugProgress() == 0) return false;
  12. aug.addEnergyAug();
  13. }
  14. else
  15. {
  16. if (gold < aug.getUpgradeCost() && aug.UpgradeProgress() == 0) return false;
  17. aug.addEnergyUpgrade();
  18. }
  19. return true;
  20. }
  21.  
Add Comment
Please, Sign In to add comment