Skip to content

Commit

Permalink
Add missing BuffLinkSheet to AdventureBossSimulator
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Jul 3, 2024
1 parent 66c9bf1 commit 4fdf86b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public AdventureBossSimulator Simulate()
{
new (StatType.ATK, StatModifier.OperationType.Add, 100),
},
_tableSheets.DeBuffLimitSheet
_tableSheets.DeBuffLimitSheet,
_tableSheets.BuffLinkSheet
);

var player = simulator.Player;
Expand Down Expand Up @@ -146,7 +147,8 @@ public void AddBreakthrough(bool simulate, int bossId, int fristFloor, int lastF
{
new (StatType.ATK, StatModifier.OperationType.Add, 100),
},
_tableSheets.DeBuffLimitSheet
_tableSheets.DeBuffLimitSheet,
_tableSheets.BuffLinkSheet
);
}

Expand Down
3 changes: 3 additions & 0 deletions Lib9c/Action/AdventureBoss/ExploreAdventureBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public override IWorld Execute(IActionContext context)
typeof(EnemySkillSheet),
typeof(CostumeStatSheet),
typeof(DeBuffLimitSheet),
typeof(BuffLinkSheet),
typeof(ItemRequirementSheet),
typeof(EquipmentItemRecipeSheet),
typeof(EquipmentItemSubRecipeSheetV2),
Expand Down Expand Up @@ -226,6 +227,7 @@ public override IWorld Execute(IActionContext context)
var costumeStatSheet = sheets.GetSheet<CostumeStatSheet>();
var materialItemSheet = sheets.GetSheet<MaterialItemSheet>();
var deBuffLimitSheet = sheets.GetSheet<DeBuffLimitSheet>();
var buffLinkSheet = sheets.GetSheet<BuffLinkSheet>();
if (gameConfigState is null)
{
throw new FailedLoadStateException(
Expand Down Expand Up @@ -289,6 +291,7 @@ public override IWorld Execute(IActionContext context)
rewards,
collectionModifiers,
deBuffLimitSheet,
buffLinkSheet,
false,
gameConfigState.ShatterStrikeMaxDamage
);
Expand Down
2 changes: 2 additions & 0 deletions Lib9c/Battle/AdventureBoss/AdventureBossSimulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public AdventureBossSimulator(
List<ItemBase> waveRewards,
List<StatModifier> collectionModifiers,
DeBuffLimitSheet deBuffLimitSheet,
BuffLinkSheet buffLinkSheet,
bool logEvent = true,
long shatterStrikeMaxDamage = 400_000
)
Expand All @@ -80,6 +81,7 @@ public AdventureBossSimulator(
)
{
DeBuffLimitSheet = deBuffLimitSheet;
BuffLinkSheet = buffLinkSheet;
var runeOptionSheet = simulatorSheets.RuneOptionSheet;
var skillSheet = simulatorSheets.SkillSheet;
var runeLevelBonus = RuneHelper.CalculateRuneLevelBonus(
Expand Down

0 comments on commit 4fdf86b

Please sign in to comment.