Skip to content

Instantly share code, notes, and snippets.

@kenyon
Last active October 26, 2024 21:33
Show Gist options
  • Save kenyon/42ff37cffa58caf7c2072a7bb4b76747 to your computer and use it in GitHub Desktop.
Save kenyon/42ff37cffa58caf7c2072a7bb4b76747 to your computer and use it in GitHub Desktop.
IdleRPG patch to penalize only questers instead of all players
--- 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