Make private methods protected
This commit is contained in:
parent
71eedaf080
commit
f7c18dc702
1 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ export class DS4Item extends Item<DS4ItemData> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async rollWeapon(this: this & { readonly isOwned: true }): Promise<void> {
|
protected async rollWeapon(this: this & { readonly isOwned: true }): Promise<void> {
|
||||||
if (!(this.data.type === "weapon")) {
|
if (!(this.data.type === "weapon")) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
game.i18n.format("DS4.ErrorWrongItemType", {
|
game.i18n.format("DS4.ErrorWrongItemType", {
|
||||||
|
@ -91,7 +91,7 @@ export class DS4Item extends Item<DS4ItemData> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private async rollSpell(): Promise<void> {
|
protected async rollSpell(): Promise<void> {
|
||||||
if (!(this.data.type === "spell")) {
|
if (!(this.data.type === "spell")) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
game.i18n.format("DS4.ErrorWrongItemType", {
|
game.i18n.format("DS4.ErrorWrongItemType", {
|
||||||
|
@ -133,7 +133,7 @@ export class DS4Item extends Item<DS4ItemData> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getCombatValueKeyForAttackType(attackType: AttackType): Promise<"meleeAttack" | "rangedAttack"> {
|
protected async getCombatValueKeyForAttackType(attackType: AttackType): Promise<"meleeAttack" | "rangedAttack"> {
|
||||||
if (attackType === "meleeRanged") {
|
if (attackType === "meleeRanged") {
|
||||||
const { melee, ranged } = { ...DS4.i18n.attackTypes };
|
const { melee, ranged } = { ...DS4.i18n.attackTypes };
|
||||||
const identifier = "attack-type-selection";
|
const identifier = "attack-type-selection";
|
||||||
|
|
Loading…
Reference in a new issue