Skip to content

Commit

Permalink
Framework for aug upgrade bingo goals
Browse files Browse the repository at this point in the history
  • Loading branch information
theastropath committed Aug 7, 2023
1 parent 1f7c2ea commit 7ca6694
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions GUI/DeusEx/Classes/PersonaScreenAugmentations.uc
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,25 @@ function UpdateBioEnergyBar()
winBioEnergy.SetCurrentValue(energyPercent);
winBioEnergyText.SetText(Int(player.Energy)$"/"$Int(player.EnergyMax)$" Energy");
}
function UpgradeAugmentation()
{
local int levelBefore;
local DXRando dxr;
if (selectedAug!=None){
levelBefore = selectedAug.CurrentLevel;
}
_UpgradeAugmentation();
if (selectedAug!=None){
if (selectedAug.CurrentLevel!=levelBefore){
foreach player.AllActors(class'DXRando',dxr){break;}
class'DXREvents'.static.MarkBingo(dxr,"AugUpgraded"); //General "Upgrade x augs" kind of situation
class'DXREvents'.static.MarkBingo(dxr,selectedAug.Class.Name$"Upgraded"); //aug-specific upgrade goals
class'DXREvents'.static.MarkBingo(dxr,"AugLevel"$(selectedAug.CurrentLevel+1)); //"Get X Augs to level Y" type goals

}
}
}

0 comments on commit 7ca6694

Please sign in to comment.