Update Healer Man server
This commit is contained in:
1 parent
4fb7a0b9c8
commit
4c768fbec6
24 files changed
+654
-22
No files matched your search
@@ -21,6 +21,7 @@ import {
|
||||
type DamageSchool,
|
||||
type ItemStats,
|
||||
} from "./itemStats";
|
||||
import { WOW335_GLYPH_OF_SWIFTMEND_ID } from "./wow335GlyphCatalog";
|
||||
import {
|
||||
damageAfterEquipmentMitigation,
|
||||
deriveCharacterStats,
|
||||
@@ -87,6 +88,8 @@ export interface PartyMember {
|
||||
readonly talentTreeId: string;
|
||||
readonly talentProfileId: string | null;
|
||||
readonly talentRanks: TalentRanks;
|
||||
/** Explicitly configured WoW glyphs; generated companions have none by default. */
|
||||
readonly glyphIds?: readonly string[];
|
||||
readonly role: PartyRole;
|
||||
readonly level: number;
|
||||
readonly health: number;
|
||||
@@ -134,6 +137,7 @@ export interface ConfiguredPartyMemberSeed {
|
||||
readonly talentTreeId?: string;
|
||||
readonly talentProfileId?: string | null;
|
||||
readonly talentRanks?: TalentRanks;
|
||||
readonly glyphIds?: readonly string[];
|
||||
readonly role: PartyRole;
|
||||
}
|
||||
|
||||
@@ -438,6 +442,9 @@ export function createConfiguredPartyMember(
|
||||
...member,
|
||||
specializationId: configuration.specializationId ?? member.specializationId,
|
||||
talentRanks: configuration.talentRanks ?? member.talentRanks,
|
||||
glyphIds: configuration.classId === "druid"
|
||||
? [...new Set((configuration.glyphIds ?? []).filter((glyphId) => glyphId === WOW335_GLYPH_OF_SWIFTMEND_ID))]
|
||||
: [],
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user