diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-07-28 23:43:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-07-28 23:43:27 -0300 |
commit | 5cdc089b592c6a843209c4e474112aaefccaf9d9 (patch) | |
tree | 13526473c7859c9f0b60870b802c117264804848 | |
parent | c2d292e2cdc51693c07248f34b223906353f0d2f (diff) | |
download | serverdata-5cdc089b592c6a843209c4e474112aaefccaf9d9.tar.gz serverdata-5cdc089b592c6a843209c4e474112aaefccaf9d9.tar.bz2 serverdata-5cdc089b592c6a843209c4e474112aaefccaf9d9.tar.xz serverdata-5cdc089b592c6a843209c4e474112aaefccaf9d9.zip |
Disallow stacking in Tulimshar Inn, and let sleep bonus last 15~30 minutes.
Also change the bonus to 12~18% depending on day/night cycle
-rw-r--r-- | npc/003-9/recepcionist.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/npc/003-9/recepcionist.txt b/npc/003-9/recepcionist.txt index fc94014b0..8da798c37 100644 --- a/npc/003-9/recepcionist.txt +++ b/npc/003-9/recepcionist.txt @@ -10,7 +10,8 @@ goto L_Cutscene; // Otherwise, you cannot sleep here before finishing Lua's Quest - if (getq(General_Narrator) < 3) { + // (or if you already have a MaxHP buff active) + if (getq(General_Narrator) < 3 || getstatus(SC_INCMHPRATE)) { npctalk3 l("Hello, and welcome to Tulimshar Inn."); emotion E_HAPPY; end; @@ -22,14 +23,14 @@ mesn; mesq l("Good %s. Would you like to sleep here? It's only %d GP!", (is_night() ? l("evening") : l("day")), .@price); mesc l("Sleeping will fully replenish your health."); - mesc l("It'll also boost your %s for %s.", b(l("MAX HP")), l("15 minutes.")); + mesc l("It'll also boost your %s for %s.", b(l("MAX HP")), l("up to 30 minutes.")); mesc l("Sleeping at night, the bonus will be stronger!"); next; if (askyesno() == ASK_YES && Zeny > .@price) { POL_PlayerMoney(.@price); percentheal 100, 100; - .@buff=(is_night() ? 20 : 15); - SC_Bonus(900, SC_INCMHPRATE, .@buff, .@buff); // FIXME: We don't want stacking + .@buff=(is_night() ? 18 : 12); + SC_Bonus(rand2(900,1800), SC_INCMHPRATE, .@buff, .@buff); closeclientdialog; warp "003-9", 36, 47; dispbottom l("You feel refreshed!"); |