Corrected script for some item #10 (#7177)

* Corrected script for some item #10
* add some items JRO costume

Thanks to @Atemo
This commit is contained in:
idk-whoami
2022-09-12 19:29:08 +07:00
committed by GitHub
parent 4a4cc26252
commit 58a7f36c92
13 changed files with 1339 additions and 138 deletions

View File

@@ -10120,6 +10120,8 @@ int pc_itemheal(struct map_session_data *sd, t_itemid itemid, int hp, int sp)
else if (itemid == ITEMID_COOKIE_BAT)
bonus += sd->sc.data[SC_MTF_PUMPKIN]->val2;
}
if (sd->sc.data[SC_VITALIZE_POTION])
bonus += bonus * 10 / 100;
tmp = hp * bonus / 100; // Overflow check
if (bonus != 100 && tmp > hp)