Skip to content

Commit

Permalink
add rune validate for adventure boss and event dungeon
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-doobu committed Dec 17, 2024
1 parent 8e959cb commit bd554bd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Lib9c/Action/AdventureBoss/ExploreAdventureBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,17 @@ public override IWorld Execute(IActionContext context)
break;
}

// just validate
foreach (var runeSlotInfo in runeSlotState.GetRuneSlot())
{
if (runeSlotInfo.RuneId is null)
{
continue;
}

runeStates.GetRuneState(runeSlotInfo.RuneId.Value);
}

exploreBoard.UsedApPotion += exploreAp;
explorer.UsedApPotion += exploreAp;

Expand Down
6 changes: 6 additions & 0 deletions Lib9c/Action/EventDungeonBattle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ is Bencodex.Types.List serializedEventDungeonInfoList
states = states.SetRuneState(AvatarAddress, runeStates);
}

// just validate
foreach (var runeSlotInfo in RuneInfos)
{
runeStates.GetRuneState(runeSlotInfo.RuneId);
}

var random = context.GetRandom();
var collectionModifiers = new List<StatModifier>();
if (collectionExist)
Expand Down

0 comments on commit bd554bd

Please sign in to comment.