Skip to content

Commit

Permalink
Merge pull request #104 from EstelMatiazi/stealing_buff
Browse files Browse the repository at this point in the history
rebalanced stealing coffer value
  • Loading branch information
sosarian-scribe authored Nov 16, 2024
2 parents dfc5a7d + 8c93ae9 commit 751f829
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Data/Scripts/Quests/Thief/Coffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,11 @@ public static void SetupCoffer( Coffer coffer )
coffer.Hue = CraftResources.GetHue(coffer.Resource);
}

int money1 = 30;
int money2 = 120;
double w1 = 500 * (MyServerSettings.GetGoldCutRate() * .01);
double w2 = 1000 * (MyServerSettings.GetGoldCutRate() * .01);

double w1 = money1 * (MyServerSettings.GetGoldCutRate() * .01);
double w2 = money2 * (MyServerSettings.GetGoldCutRate() * .01);

money1 = (int)w1;
money2 = (int)w2;
int money1 = (int)w1;
int money2 = (int)w2;

coffer.CofferGold = Utility.RandomMinMax( money1, money2 );
coffer.CofferRobber = "";
Expand Down

0 comments on commit 751f829

Please sign in to comment.