Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AugmentBP.cs
- internal override bool Allocate()
- {
- var gold = Character.realGold;
- var aug = Character.augmentsController.augments[AugIndex];
- var alloc = CalculateAugCap();
- SetInput(alloc);
- if (Index % 2 == 0)
- {
- if (gold < aug.getAugCost() && aug.AugProgress() == 0) return false;
- aug.addEnergyAug();
- }
- else
- {
- if (gold < aug.getUpgradeCost() && aug.UpgradeProgress() == 0) return false;
- aug.addEnergyUpgrade();
- }
- return true;
- }
Add Comment
Please, Sign In to add comment