[Quest API] Fix LDoN Methods in Perl/Lua (#3287)

# Perl
- Add `quest::removeldonloss(theme_id)`.
- Add `quest::removeldonwin(theme_id)`.

# Lua
- Fix `eq.remove_ldon_win(theme_id)` as it was using `quest_manager.addldonwin(theme_id)` instead of `quest_manager.removeldonwin(theme_id)`.
This commit is contained in:
Alex King
2023-04-10 16:16:54 -04:00
committed by GitHub
parent 445f967ed6
commit 21002c2e8a
3 changed files with 37 additions and 19 deletions
+12
View File
@@ -849,11 +849,21 @@ void Perl__addldonwin(uint32 theme_id)
quest_manager.addldonwin(theme_id);
}
void Perl__removeldonwin(uint32 theme_id)
{
quest_manager.removeldonwin(theme_id);
}
void Perl__addldonloss(uint32 theme_id)
{
quest_manager.addldonloss(theme_id);
}
void Perl__removeldonloss(uint32 theme_id)
{
quest_manager.removeldonloss(theme_id);
}
void Perl__setnexthpevent(int at_mob_percentage)
{
quest_manager.setnexthpevent(at_mob_percentage);
@@ -4632,6 +4642,8 @@ void perl_register_quest()
package.add("remove_expedition_lockout_by_char_id", &Perl__remove_expedition_lockout_by_char_id);
package.add("removeitem", (void(*)(uint32_t))&Perl__removeitem);
package.add("removeitem", (void(*)(uint32_t, int))&Perl__removeitem);
package.add("removeldonloss", &Perl__removeldonloss);
package.add("removeldonwin", &Perl__removeldonwin);
package.add("removetitle", &Perl__removetitle);
package.add("rename", &Perl__rename);
package.add("repopzone", &Perl__repopzone);