fix action node factory

This commit is contained in:
Yunfan Li
2023-11-10 20:10:03 +08:00
parent 7063e5e00b
commit 748801b10b
3 changed files with 9 additions and 9 deletions

View File

@@ -43,13 +43,13 @@ class GenericHunterStrategyActionNodeFactory : public NamedObjectFactory<ActionN
/*C*/ nullptr); /*C*/ nullptr);
} }
// static ActionNode* wing_clip([[maybe_unused]] PlayerbotAI* botAI) static ActionNode* wing_clip([[maybe_unused]] PlayerbotAI* botAI)
// { {
// return new ActionNode("wing clip", return new ActionNode("wing clip",
// /*P*/ nullptr, /*P*/ nullptr,
// /*A*/ NextAction::array(0, new NextAction("raptor strike"), nullptr), /*A*/ NextAction::array(0, new NextAction("raptor strike"), nullptr),
// /*C*/ NextAction::array(0, new NextAction("flee"), nullptr)); /*C*/ nullptr);
// } }
static ActionNode* raptor_strike([[maybe_unused]] PlayerbotAI* botAI) static ActionNode* raptor_strike([[maybe_unused]] PlayerbotAI* botAI)
{ {

View File

@@ -32,7 +32,7 @@ class GenericPriestStrategyActionNodeFactory : public NamedObjectFactory<ActionN
creators["flash heal"] = &flash_heal; creators["flash heal"] = &flash_heal;
creators["flash heal on party"] = &flash_heal_on_party; creators["flash heal on party"] = &flash_heal_on_party;
creators["psychic scream"] = &psychic_scream; creators["psychic scream"] = &psychic_scream;
creators["fade"] = &fade; // creators["fade"] = &fade;
creators["shadowfiend"] = &shadowfiend; creators["shadowfiend"] = &shadowfiend;
} }

View File

@@ -63,7 +63,7 @@ float ExpectedGroupDpsValue::Calculate()
float gs_modifier = (float)mixedGearScore / basic_gs - 1; float gs_modifier = (float)mixedGearScore / basic_gs - 1;
gs_modifier = gs_modifier * 3 + 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; if (gs_modifier > 4) gs_modifier = 4;
return dps_num * basic_dps * gs_modifier; return dps_num * basic_dps * gs_modifier;