Skip to content

Commit

Permalink
change RuneSummon.SummonLimit to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
sonohoshi committed Oct 14, 2024
1 parent 869cd8f commit 2e41aa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .Lib9c.Tests/Action/Summon/RuneSummonTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private class ExecuteMemeber : IEnumerable<object[]>
// Fail by exceeding summon limit
new object[]
{
20001, 11, 600201, 22, 1, typeof(InvalidSummonCountException),
20001, 101, 600201, 22, 1, typeof(InvalidSummonCountException),
},
new object[]
{
Expand Down
6 changes: 3 additions & 3 deletions Lib9c/Action/RuneSummon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class RuneSummon : GameAction, IRuneSummonV1
public const string SummonCountKey = "sc";
public int SummonCount;

private const int SummonLimit = 10;
private const int SummonLimit = 100;
public const int RuneQuantity = 10;

public override IWorld Execute(IActionContext context)
Expand Down Expand Up @@ -155,9 +155,9 @@ IWorld states
)
{
// Ten plus one
if (summonCount == 10)
if (summonCount >= 10)
{
summonCount += 1;
summonCount += summonCount / 10;
}

var result = SimulateSummon(runeSheet, summonRow, summonCount, random);
Expand Down

0 comments on commit 2e41aa2

Please sign in to comment.