Skip to content

Commit

Permalink
Crowd Control effects to add augs now actually check to see if the slot
Browse files Browse the repository at this point in the history
is full or not #660
  • Loading branch information
theastropath committed Apr 4, 2024
1 parent ed81cf8 commit e5f68d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DXRando/DeusEx/Classes/DXRandoCrowdControlEffects.uc
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,16 @@ function HandleAugEffectSelectability(string augName)
local bool canUpgrade,canDowngrade,sendUpgradeUpdate,sendDowngradeUpdate;
local int augLevel,augMax, augIndex;
local class<Augmentation> augClass;
local Augmentation anAug;

augClass=getAugClass(augName);
augIndex=getAugManagerIndex(augClass);
augLevel=FindAugLevel(augClass);
augMax=FindAugMax(augClass);
anAug = player().AugmentationSystem.FindAugmentation(augClass);

if (augLevel==-1){
canUpgrade=True;
canUpgrade=!player().AugmentationSystem.AreSlotsFull(anAug);
canDowngrade=False;
} else if (augLevel==augMax){
canUpgrade=False;
Expand Down

0 comments on commit e5f68d9

Please sign in to comment.