Comments name Karrz, not a first name, in this release's code

This commit is contained in:
Karrz1
2026-11-16 17:22:58 +00:00
parent 01e37d09ae
commit eb8fff366e
21 changed files with 29 additions and 29 deletions
@@ -1494,7 +1494,7 @@ function UI.LeadClick(button)
UI.leadState = state
UI.RefreshLead()
end
-- Follow, Stay and Come pause a running lead on the server (chris, 2026-11-13); "go" or a right-click goes on.
-- Follow, Stay and Come pause a running lead on the server (Karrz, 2026-11-13); "go" or a right-click goes on.
function UI.LeadPausedByOrder()
if UI.leadState == "on" then
UI.leadState = "paused"
@@ -543,7 +543,7 @@ float RaidItemSpellScore(ItemTemplate const* tpl, RaidWeights const& w, RaidRole
continue;
// A proc counts for its uptime: at about one proc a minute, the share of the fight its aura is up (capped at the old flat 0.17).
// Felstriker's 3 s of +100% hit and crit scored as 17 % of a permanent +100 %, above any tank weapon's whole budget, and put the
// rogue dagger in every protection warrior's main hand (chris 11-15, Naxx: "I don't know why the tanks have that dagger").
// rogue dagger in every protection warrior's main hand (Karrz 11-15, Naxx: "I don't know why the tanks have that dagger").
bool const proc = e->TriggerType == ITEM_SPELLTRIGGER_ON_PROC;
if (proc)
if (int32 const dur = si->GetDuration(); dur > 0)
+1 -1
View File
@@ -84,7 +84,7 @@ struct Line
bool later = false; // gear the bot may wear but only a few levels from now: a gift from the owner or a group mate, kept until then
// (Gremloc 11-08: a group mate's piece above the bot's level was bought at the vendor price)
bool supply = false; // a potion, elixir, flask, food or drink, weapon oil or stone, or bandage the bot can use itself: a gift
// from the owner or a group mate (chris 11-16: five Brilliant Mana Oil handed to his healer were met
// from the owner or a group mate (Karrz 11-16: five Brilliant Mana Oil handed to his healer were met
// with "i'll give you 10s for that")
};
+1 -1
View File
@@ -863,7 +863,7 @@ public:
// healer's and the casters' mana (PullManaGate), for the dead, and for the player when he is dead, outside or over
// kTankLeadPlayerHoldYd away. Paused: the lead stays with the tank, which starts no new pull and walks no further until "lead on".
// In a raid group on a raid map the main tank leads the trash the same way, but stops before each boss: it stands where it would
// pull from and waits until the player pulls himself or says "go" (tank_lead_boss_wait / tank_lead_boss_go; chris 2026-11-14).
// pull from and waits until the player pulls himself or says "go" (tank_lead_boss_wait / tank_lead_boss_go; Karrz 2026-11-14).
// Ends on its own when the bot leaves the dungeon (update_dungeon_autopilot_hold). Every bot of the group holds it: the tank
// leads, the rest stay on the tank and fight its pulls. Written by the chat handler (world thread), read by the bot worker.
enum class TankLead : uint8 { Off = 0, On = 1, Paused = 2 };
@@ -2352,7 +2352,7 @@ bool BotCommandParser::ApplyPlaceOrder(Player* sender, std::string const& line,
who.push_back(word);
}
// One order, one answer: the same place order from the same player again within kSameOrderMs is the same click reaching more than one
// bot (a whisper to each, the add-on's route), not a new order. chris, 2026-11-14 15:24: "39 bot(s) in a line (tight gap) in front of
// bot (a whisper to each, the add-on's route), not a new order. Karrz, 2026-11-14 15:24: "39 bot(s) in a line (tight gap) in front of
// you. ..." seven times and more in his chat for one click.
constexpr uint32 kSameOrderMs = 3000;
static std::unordered_map<uint64, std::pair<std::string, uint32>> s_lastPlace;
@@ -2449,7 +2449,7 @@ bool BotCommandParser::ApplyLeadOrder(Player* sender, std::string const& line, c
in >> verb;
if (!sender || !sender->GetSession())
return false;
// "go" alone picks a paused lead back up (chris, 2026-11-13: Stay and Follow pause the lead, "go" goes on). It is the lead's word
// "go" alone picks a paused lead back up (Karrz, 2026-11-13: Stay and Follow pause the lead, "go" goes on). It is the lead's word
// only while the tank leads or is paused; otherwise it stays the chat cue it was (BotChatReactor).
bool const go_word = IsLeadGoWord(line);
if (verb != "lead" && !go_word)
@@ -2481,7 +2481,7 @@ bool BotCommandParser::ApplyLeadOrder(Player* sender, std::string const& line, c
answer.PSendSysMessage("%s", "You have no group yet: add a bot first.");
return true;
}
// A raid group is led too (chris, 2026-11-14): its main tank leads the trash and stops before each boss for the player. A party that
// A raid group is led too (Karrz, 2026-11-14): its main tank leads the trash and stops before each boss for the player. A party that
// is not a raid group on a raid map follows its owner (raid_map_party_hold), so the lead waits for the raid group there.
bool const raid = grp->isRaidGroup();
Map const* here = sender->GetMap();
@@ -3272,7 +3272,7 @@ bool BotCommandParser::DispatchSingleImpl(Player* sender, Player* bot, std::stri
if (normalized == "equip" || normalized.rfind("equip ", 0) == 0 || normalized == "use your best gear" ||
normalized == "wear your best gear")
return OrderEquip(sender, bot, normalized == "equip" || normalized.rfind("equip ", 0) == 0 ? normalized : std::string("equip best"));
// "use <item link>" of a piece to wear is an equip order: in Blackwing Lair chris told his raid "use [Onyxia Scale Cloak]" in party chat
// "use <item link>" of a piece to wear is an equip order: in Blackwing Lair Karrz told his raid "use [Onyxia Scale Cloak]" in party chat
// and nothing happened, because "use" only knew game objects (dev realm 2026-11-13). Any other link goes on to the "use" verb as before.
if (normalized.rfind("use ", 0) == 0)
if (size_t const p = normalized.find("item:"); p != std::string::npos)
@@ -5735,7 +5735,7 @@ bool BotCommandParser::DispatchSingleImpl(Player* sender, Player* bot, std::stri
by_icon ? "by its icon assignment" : "on the owner's selection");
// Raid map: only the main tank pulls (a spare duty tank stands by). A boss whose strike goes to the melee soakers (Patchwerk's
// Hateful Strike, RaidRules::meleeSoak) is the exception: the off tanks go in with the main tank, or the main tank is alone in his
// reach for the first strike 1.2 s after the pull and dies to it (chris 11-15 live: Don in full T3 died at 1 s, the off tanks 25 y back).
// reach for the first strike 1.2 s after the pull and dies to it (Karrz 11-15 live: Don in full T3 died at 1 s, the off tanks 25 y back).
bool soaker = false;
if (Raid::RaidRules const* rules = Raid::RulesForMap(bot->GetMapId()))
for (Raid::MeleeSoak const& soak : rules->meleeSoak)
@@ -57,7 +57,7 @@ public:
static bool ApplyLeadOrder(Player* sender, std::string const& line, char const* via);
// True when `line` is "go" alone (or the Russian "вперед" / "го"), the word that picks up a paused lead.
static bool IsLeadGoWord(std::string const& line);
// An owner's Stay / Hold / Follow / Come (`line`, a bare order or a squad line) while his tank leads: the lead pauses (chris,
// An owner's Stay / Hold / Follow / Come (`line`, a bare order or a squad line) while his tank leads: the lead pauses (Karrz,
// 2026-11-13) and he is told "go" goes on; the order itself is not consumed. Does nothing for any other line. World thread.
static void PauseLeadForOwnerOrder(Player* sender, std::string const& line, char const* via);
@@ -2898,7 +2898,7 @@ void PveGroupCoordinator::PlanRaidTanks(uint64 bkey, uint64 group_low, uint32 ma
if (e.src->max_mana > 0) { dps_mana_sum += Pct(e.src->mana, e.src->max_mana); ++dps_mana_n; }
}
// The most DPS bots on one enemy. A raid fight script (RaidFightScript.cpp) names its own focus, which last_raid_focus_ never holds:
// nef-chris-1114c read "on the focus 0" for the whole pull. This count shows how many share one target either way.
// nef-karrz-1114c read "on the focus 0" for the whole pull. This count shows how many share one target either way.
uint32 dps_top = 0;
{
std::unordered_map<uint64, uint32> on;
@@ -15,7 +15,7 @@ inline bool IsWorldErrand(std::string_view name)
if (name == "idle:quest_start_item")
return false;
// Accepting a guild invite goes nowhere either, and it is the player's own invite: "idle:guild_" below caught it, so a
// companion following its player never answered a /ginvite (chris 2026-11-16: Kathleen, then Chaelanna, never joined).
// companion following its player never answered a /ginvite (Karrz 2026-11-16: Kathleen, then Chaelanna, never joined).
if (name == "idle:guild_invite_accept")
return false;
static constexpr std::string_view kPrefixes[] = {
@@ -3124,7 +3124,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
}
// A bot already in the wedge stays where it is. Its slot index counts the members on its side, which changes every time one
// of them steps out of a cone or crosses over, and without this check the slot moved and the bot walked again every 4 s:
// chris's dev raid 2026-11-14 15:40-15:42, the mage Gorham took 20 "flank boss" steps in 80 s, every one cut his Frostbolt
// Karrz's dev raid 2026-11-14 15:40-15:42, the mage Gorham took 20 "flank boss" steps in 80 s, every one cut his Frostbolt
// short, and he did nothing for two minutes at full mana.
{
float const dBot = Dist2D(ex, ey, bot->GetPositionX(), bot->GetPositionY());
@@ -4073,7 +4073,7 @@ uint8_t MemberDamageSchools(Member const& m, Player* mainTank)
}
// The school(s) of a caster's main nuke, by its spec. MemberDamageSchools counts every school the class has, so a frost mage still
// "can hurt" a Blue Drakonid (400 frost) with fire and arcane, but its rotation is Frostbolt and its talents back frost: chris noticed in
// "can hurt" a Blue Drakonid (400 frost) with fire and arcane, but its rotation is Frostbolt and its talents back frost: Karrz noticed in
// his 11-14 pulls that one drakonid colour took far less from him than the other. Phase 1 resistances (creature_template_resistance,
// VMaNGOS): Blue 14261 frost 400 (arcane 100), Green 14262 nature 400, Bronze 14263 arcane 400, Red 14264 fire 400, Black 14265 fire and
// shadow 400, Chromatic 14302 250 in every magic school.
@@ -52,7 +52,7 @@ namespace Playerbot::Raid {
r.avoidFrontal.push_back({ 11583, 46.0f, 55.0f, Who::NonTank });
// Tail Lash 23364 reaches 30 yards behind him (client data: radius 30 on all three effects, printed on every death to it), not the
// 20 the rear arc had: of the 100 bots it killed in the Nefarian sweeps and the dev realm raids up to 2026-11-13, 37 stood 20-35 y
// from him (dist on the bot_death line, centre to centre), and chris's raid lost half its casters to it. 34 = the 30, his size and a
// from him (dist on the bot_death line, centre to centre), and Karrz's raid lost half its casters to it. 34 = the 30, his size and a
// step. The arc is Onyxia's Tail Sweep 15847 (-120 in its client data, 60 each side of straight behind), the same breath-and-tail
// dragon: there is no SpellTargetRestrictions copy here to read Tail Lash's own cone from, so the next run's deaths check it.
r.avoidFrontal.push_back({ 11583, 34.0f, kOnyTailHalfDeg, Who::NonTank, 180.0f, 100.0f, 0.0f, true, kOnyConeMarginDeg });
@@ -63,7 +63,7 @@ namespace Playerbot::Raid {
// Everybody but his tank stands on his flank, in the wedge between the Shadow Flame cone (55 degrees each side, plus a 12 degree margin
// for his turn) and the Tail Lash arc (kOnyTailHalfDeg + kOnyConeMarginDeg), the Onyxia layout (StandFlank, RaidBrain 3d). Without it
// nothing placed the raid after the landing (the phase 1 posts end there) and the bots stood wherever they were, round his tank: in
// chris's dev raid 2026-11-14 15:10 the raid centre stood 6 y from him ("[raid_face] axis ... raid centre 6 yd out, 27 raiders"),
// Karrz's dev raid 2026-11-14 15:10 the raid centre stood 6 y from him ("[raid_face] axis ... raid centre 6 yd out, 27 raiders"),
// Shadow Flame killed 5 and his swings and Cleave 10 more within 5-10 y of him, and his tank found no spot to turn him ("no spot on
// the axis behind Nefarian", 8 times). Melee 3-10 y, healers 21-25 y, ranged 23-29 y (inside their 30 y spells).
{
@@ -169,7 +169,7 @@ namespace Playerbot::Raid {
r.stand.push_back({ 16028, Who::Ranged, 3272.0f, -3240.0f, kPatchHallZ, 5.0f, false, 0 });
r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3223.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 1 });
r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3241.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 2 });
// The posts are for a fight in his hall. Pulled anywhere else (chris 11-15 live: met at the hall's west end, 3210,-3190, on his
// The posts are for a fight in his hall. Pulled anywhere else (Karrz 11-15 live: met at the hall's west end, 3210,-3190, on his
// walk), the healers ran 120 y off to the east corners and the ranged 80 y to theirs, nobody healed the soakers and every tank died
// to Hateful Strike in the first 30 s. Past 40 y from a post he is fought where he is, by the plain raid layout.
for (Stand& s : r.stand)
@@ -31,7 +31,7 @@ std::unordered_map<uint64_t, uint64_t> g_ownPick; // bot -> its last pick wh
constexpr uint32_t kFightGapMs = 8000; // no engaged enemy for this long: the next pull starts a new fight
constexpr float kCampSpellReach = 30.0f; // Fight::campReach: an enemy farther than this is not one a bot at the camp casts at
// Fight::campReach: the raid's focus stays "at the camp" out to campReach + this. nef-chris-1114c (chris's 12:43 pull): the tanks held their
// Fight::campReach: the raid's focus stays "at the camp" out to campReach + this. nef-karrz-1114c (Karrz's 12:43 pull): the tanks held their
// drakonids 21-32 y from the camp centre, right across the 28 y edge, and a held drakonid stepping out by a yard dropped it from every bot's
// list while another stood inside. The focus changed 30 times in 100 s, often back and forth before a kill (660 -> 661 -> 660), the damage
// was split over two or three drakonids, 3,000 raid damage a second against the waves, and the adds went from 5 to 20.
@@ -49,7 +49,7 @@ std::unordered_map<uint64_t, uint32_t> g_bossOffTank;
// A boss that joins a fight already under way (Nefarian landing in Victor's fight): enemy -> when it was first seen engaged, and since when a
// tank of the raid has held it (0 = not now). The DPS keep off it until a tank has held it for kLateBossTankMs, at least kLateBossMinMs after
// it came and at most kLateBossMaxMs (no tank ever taking it must not freeze the raid). chris, 2026-11-14 15:20, after the 15:10 wipe: when
// it came and at most kLateBossMaxMs (no tank ever taking it must not freeze the raid). Karrz, 2026-11-14 15:20, after the 15:10 wipe: when
// Nefarian lands everyone but the tanks should stand back, the tank picks him up and turns him, then the raid goes in. In that pull the raid
// stood round him as he landed and 6 died to his swings before a tank had him, and 5 more to the first Shadow Flame.
struct LateBoss { uint32_t seen = 0; uint32_t onTank = 0; uint32_t last = 0; bool released = false; };
@@ -166,7 +166,7 @@ void ApplyFightScript(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& order
if (!c || enemy->GetEntry() == fight->boss || !IsBoss(c, plan.rules))
continue;
LateBoss& lb = g_lateBoss[enemy->GetGUID().GetCounter()];
// Its clock starts where it can be fought: not while it flies in, untouchable. chris's pull 2026-11-14 15:40: Nefarian was engaged
// Its clock starts where it can be fought: not while it flies in, untouchable. Karrz's pull 2026-11-14 15:40: Nefarian was engaged
// (victim Roland) from his take-off at 15:40:23, the hold "released after 6405 ms (a tank holds it)" at 15:40:29, and he landed
// only at 15:40:35: the raid walked in under him as he came down, and his first swings and Shadow Flame took three of it.
bool const fightable = !enemy->IsFlying() && !enemy->HasUnitFlag(UNIT_FLAG_NON_ATTACKABLE) && !enemy->IsUninteractible() &&
+1 -1
View File
@@ -1,7 +1,7 @@
// RaidVoice - a 40-man raid that talks like a crowd of players: not 39 bots at once, and not a silent room.
//
// Up to 0.1.36 a group over 15 was silent for all of the bots' own chatter (the quiet-raid rule: forty bots talking at once is
// spam), so in Blackwing Lair only the callouts and the leader's word on a mistake were ever said (chris, 2026-11-13: "a wee bit
// spam), so in Blackwing Lair only the callouts and the leader's word on a mistake were ever said (Karrz, 2026-11-13: "a wee bit
// more chatty"). This is the raid's shared voice instead:
// * the bots' own chatter (loot, a death, a ready check, a new zone) is back, with one line for the whole raid per gap;
// * after a kill a few bots say gg / grats, after a wipe a few talk on the run back and the leader calls the rebuff;
@@ -831,7 +831,7 @@ namespace TE = ::Playerbot::V2::TownErrand;
// Quest work in reach keeps a bot from the town's errands and shows, so the quest rules can do it. A bot in its town time (profession
// mode: every bot the spawner places in a capital, Playerbot.World.TownPct) has those rules switched off (quest accept, hub walk, goal
// pursuit, far travel), so for it the quest work never comes and nothing else may run either: it stood where it was placed, by the
// bank or the auction house, until the idle watch walked it to the next bank or auction house (chris, test realm 0.1.36: a heap of
// bank or the auction house, until the idle watch walked it to the next bank or auction house (Karrz, test realm 0.1.36: a heap of
// idle bots and their pets in the Stormwind Trade District and in Ironforge). Nearly every world bot in a city has quest work by this
// test (a quest giver in scan range, or the leveling zone it is to travel to). A turn-in still comes first for it: idle:quest_turnin
// runs far above the town rules and is not held by profession mode.
@@ -664,7 +664,7 @@ bool FightCloakGate(BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const
ai.set_fight_cloak(true);
// The raid is still in there: a bot that died, released and came back alive at the graveyard outside (or is a ghost on its way back)
// keeps the copy on. It runs back into a fight in progress, where nobody can change armour, so the swap back would never happen.
// chris's Nefarian kill 2026-11-14 15:10-15:20: 11 bots put their own cloak back at 15:16:22-15:17:45 after the phase 3 death wave, ran
// Karrz's Nefarian kill 2026-11-14 15:10-15:20: 11 bots put their own cloak back at 15:16:22-15:17:45 after the phase 3 death wave, ran
// back in and died 13 times to the Shadow Flame burn 22682; every one of them wore the copy again only after the kill (15:20:46).
if (!want && worn && ai.fight_cloak() && s.in_group() && s.is_in_raid())
if (auto const* members = g.members())
@@ -1234,7 +1234,7 @@ void RegisterCoreFlowRules(IdleRuleRegistry& r)
rule.name = "idle:guild_invite_accept";
// 997 (was 853): above the owner orders (960-994). A bot following its player on an owner Follow order fires
// idle:owner_following (990) every tick, which consumed the tick, so a /ginvite from that player was never answered
// (chris 2026-11-16: party bot Kathleen never joined). Accepting moves nothing, so it may run before them; it
// (Karrz 2026-11-16: party bot Kathleen never joined). Accepting moves nothing, so it may run before them; it
// only fires while an invite is open, once per invite.
rule.priority = 997;
rule.gate = &GuildInviteAcceptGate;
@@ -138,7 +138,7 @@ static bool PullManaGate(BotSnapshotView const& s, BotAI const& ai, GroupSnapsho
return true;
}
// "Tank leads" in a raid (chris, 2026-11-14: "Can it be done for RAIDs as well?"): the main tank leads the trash pack by pack, but a
// "Tank leads" in a raid (Karrz, 2026-11-14: "Can it be done for RAIDs as well?"): the main tank leads the trash pack by pack, but a
// boss is the player's to pull. Called by every out-of-combat boss pull of the autopilot right before it would start the fight: while
// the lead is on in a raid and the player has not said "go" for this boss, the tank stays where it would have pulled from, says once
// that the boss is next, and pulls nothing. The player pulls himself (the raid joins the fight as any boss fight), or says "go"
@@ -1177,7 +1177,7 @@ bool BotPopulationManager::SetOwnerGearMode(uint32 account_id, uint8 requested_m
reply = std::string("gear mode ") + Gear::Owned::ModeName(mode) +
(Gear::Owned::IsCapMode(mode) ? " (this applies at level " + std::to_string(MaxPlayerLevel()) + "; below that: match)" : "");
// With hired bots on (Playerbot.Hire.Mode) a player who must hire gets each bot's grade gear, whatever mode is chosen
// (HireMgr::GearModeOverride): the choice is kept for when the rule is off, but say so instead of a plain "set" (chris 11-15,
// (HireMgr::GearModeOverride): the choice is kept for when the rule is off, but say so instead of a plain "set" (Karrz 11-15,
// Naxx: T3 chosen and Regear pressed, the bots stayed in match gear and nothing said why).
bool const must_hire = requester ? HireMgr::Instance().MustHire(requester) : HireMgr::Instance().MustHireAccount(account_id);
if (must_hire && mode != GearMode::Match)
@@ -1288,7 +1288,7 @@ bool WorldBotSpawner::PlaceNear(Player* bot, Player* anchor)
}
Spot const& h = *pick;
// A capital's meeting places are few (a bank's or an auction house's worth of NPCs: the Trade District has two) and every
// spot took bots up to the area cap, so the whole city crowd stood in one heap by the auction house (chris, test realm
// spot took bots up to the area cap, so the whole city crowd stood in one heap by the auction house (Karrz, test realm
// 0.1.36, Stormwind and Ironforge). Town.HubCap bots at most around one; past it this try takes a spot on the ring instead,
// and the town errands spread the residents over the city from there.
if (in_town && cfg_.town_hub_cap && crowd_at(h) >= cfg_.town_hub_cap)
+1 -1
View File
@@ -117,7 +117,7 @@ TEST_CASE("A raid of a player and bots that fits a party goes back to one", "[Cl
TEST_CASE("A companion following its player still answers the player's guild invite", "[ClassicBotGroupRules]")
{
// chris 2026-11-16: Chaelanna (grouped with her player) had the invite pending and never accepted: "idle:guild_" errands
// Karrz 2026-11-16: Chaelanna (grouped with her player) had the invite pending and never accepted: "idle:guild_" errands
// are skipped for a bot led by a player, and the accept rule matched that prefix.
CHECK_FALSE(Playerbot::IsWorldErrand("idle:guild_invite_accept"));
// the guild errands that do take a bot about the world stay errands
+1 -1
View File
@@ -319,7 +319,7 @@ TEST_CASE("BotTrade: supplies the bot uses itself, from its owner, are a gift, n
{
View v;
v.gift_partner = true;
Line oil = L(20748, 5, 1000); // Brilliant Mana Oil handed to a healer (chris 11-16: "i'll give you 10s for that")
Line oil = L(20748, 5, 1000); // Brilliant Mana Oil handed to a healer (Karrz 11-16: "i'll give you 10s for that")
oil.supply = true;
v.his = { oil };
v.bot_gold = 100000;