mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 08:23:48 +00:00
Feat. Add Fishing action and fish with master. (#1433)
### Update :Thank you to @notOrrytrout from prompting me to work on this. Its been a huge learning experience. With @notOrrytrout I started working on enabling bot fishing with master, but also on their own. The first commit didnt crash, showing that it was possible to have a bot cast when master does. Currently it compiles but crashes when you try to fish with a bot in the group, whether the bot has fishing or not. It makes me think that the check in FishingValues is broken somehow, but I cant figure out how. --------- Co-authored-by: bash <31279994+hermensbas@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#define _PLAYERBOT_TRIGGERCONTEXT_H
|
||||
|
||||
#include "CureTriggers.h"
|
||||
#include "FishingTriggers.h"
|
||||
#include "GenericTriggers.h"
|
||||
#include "GuildTriggers.h"
|
||||
#include "LfgTriggers.h"
|
||||
@@ -226,6 +227,8 @@ public:
|
||||
creators["do quest status"] = &TriggerContext::do_quest_status;
|
||||
creators["travel flight status"] = &TriggerContext::travel_flight_status;
|
||||
creators["can self resurrect"] = &TriggerContext::can_self_resurrect;
|
||||
creators["can fish"] = &TriggerContext::can_fish;
|
||||
creators["can use fishing bobber"] = &TriggerContext::can_use_fishing_bobber;
|
||||
creators["new pet"] = &TriggerContext::new_pet;
|
||||
}
|
||||
|
||||
@@ -425,6 +428,8 @@ private:
|
||||
static Trigger* do_quest_status(PlayerbotAI* botAI) { return new NewRpgStatusTrigger(botAI, RPG_DO_QUEST); }
|
||||
static Trigger* travel_flight_status(PlayerbotAI* botAI) { return new NewRpgStatusTrigger(botAI, RPG_TRAVEL_FLIGHT); }
|
||||
static Trigger* can_self_resurrect(PlayerbotAI* ai) { return new SelfResurrectTrigger(ai); }
|
||||
static Trigger* can_fish(PlayerbotAI* ai) { return new CanFishTrigger(ai); }
|
||||
static Trigger* can_use_fishing_bobber(PlayerbotAI* ai) { return new CanUseFishingBobberTrigger(ai); }
|
||||
static Trigger* new_pet(PlayerbotAI* ai) { return new NewPetTrigger(ai); }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user