Last active
October 26, 2024 21:33
-
-
Save kenyon/42ff37cffa58caf7c2072a7bb4b76747 to your computer and use it in GitHub Desktop.
IdleRPG patch to penalize only questers instead of all players
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- bot.v3.1.2.pl 2018-01-04 16:54:48.373134641 -0800 | |
+++ bot.v3.1.2-PenalizeOnlyQuesters.pl 2018-01-04 16:54:33.153317772 -0800 | |
@@ -1939,7 +1939,7 @@ | |
"and to tend downwards with great weight and ". | |
"pressure towards hell. Therefore have you drawn ". | |
"yourselves 15 steps closer to that gaping maw.")); | |
- for $player (grep { $rps{$_}{online} } keys %rps) { | |
+ for $player (@{$quest{questers}}) { | |
my $gain = int(15 * ($opts{rppenstep}**$rps{$player}{level})); | |
$rps{$player}{pen_quest} += $gain; | |
$rps{$player}{next} += $gain; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment