Skip to content
Snippets Groups Projects
Commit 4a6577eb authored by deuce's avatar deuce
Browse files

Modify the buyin:payout ratio of gambling from 1:4.62 to 1:1.06

Still a slight advantage to the player which is silly, but at least
it's not just giving money away.
parent f6593fe7
Branches
Tags
No related merge requests found
......@@ -622,17 +622,17 @@ function Player_gamble()
if(realgold != 0 && this.gold >= realgold && realgold <= 25000 && realgold >= 1) {
okea=random(99)+1;
if(okea <= 3) {
realgold *= 100;
realgold *= 10;
this.gold += realgold;
console.writeln("You shot all the targets and win "+realgold+" Steel pieces!");
}
else if (okea <= 15) {
realgold *= 10;
realgold *= 4;
this.gold += realgold;
console.writeln("You shot 50% of the targets and win "+realgold+" Steel pieces!");
}
else if (okea <= 30) {
realgold *= 3;
realgold *= 2;
this.gold += realgold;
console.writeln("You shot 25% of the targets and win "+realgold+" Steel pieces!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment