mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix action node factory
This commit is contained in:
@@ -43,13 +43,13 @@ class GenericHunterStrategyActionNodeFactory : public NamedObjectFactory<ActionN
|
||||
/*C*/ nullptr);
|
||||
}
|
||||
|
||||
// static ActionNode* wing_clip([[maybe_unused]] PlayerbotAI* botAI)
|
||||
// {
|
||||
// return new ActionNode("wing clip",
|
||||
// /*P*/ nullptr,
|
||||
// /*A*/ NextAction::array(0, new NextAction("raptor strike"), nullptr),
|
||||
// /*C*/ NextAction::array(0, new NextAction("flee"), nullptr));
|
||||
// }
|
||||
static ActionNode* wing_clip([[maybe_unused]] PlayerbotAI* botAI)
|
||||
{
|
||||
return new ActionNode("wing clip",
|
||||
/*P*/ nullptr,
|
||||
/*A*/ NextAction::array(0, new NextAction("raptor strike"), nullptr),
|
||||
/*C*/ nullptr);
|
||||
}
|
||||
|
||||
static ActionNode* raptor_strike([[maybe_unused]] PlayerbotAI* botAI)
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ class GenericPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionN
|
||||
creators["flash heal"] = &flash_heal;
|
||||
creators["flash heal on party"] = &flash_heal_on_party;
|
||||
creators["psychic scream"] = &psychic_scream;
|
||||
creators["fade"] = &fade;
|
||||
// creators["fade"] = &fade;
|
||||
creators["shadowfiend"] = &shadowfiend;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ float ExpectedGroupDpsValue::Calculate()
|
||||
float gs_modifier = (float)mixedGearScore / basic_gs - 1;
|
||||
gs_modifier = gs_modifier * 3 + 1;
|
||||
|
||||
if (gs_modifier < 0.5) gs_modifier = 0.5;
|
||||
if (gs_modifier < 0.75) gs_modifier = 0.75;
|
||||
if (gs_modifier > 4) gs_modifier = 4;
|
||||
|
||||
return dps_num * basic_dps * gs_modifier;
|
||||
|
||||
Reference in New Issue
Block a user