fix(api): sweep every remaining test fixture off level/experience/requiredLevel/experienceReward
This commit is contained in:
@@ -257,11 +257,10 @@ function itemDefinition(
|
|||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Abgenutztes Kurzschwert',
|
||||||
description: '',
|
description: '',
|
||||||
type: ItemType.WEAPON,
|
type: ItemType.EQUIPMENT,
|
||||||
equipmentSlot: EquipmentSlot.WEAPON,
|
equipmentSlot: EquipmentSlot.WEAPON,
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
tier: 1,
|
tier: 1,
|
||||||
requiredLevel: 1,
|
|
||||||
weaponDamage: 8,
|
weaponDamage: 8,
|
||||||
bonusHp: 0,
|
bonusHp: 0,
|
||||||
bonusAttack: 0,
|
bonusAttack: 0,
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ function itemDefinition(
|
|||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Abgenutztes Kurzschwert',
|
||||||
description: '',
|
description: '',
|
||||||
type: ItemType.WEAPON,
|
type: ItemType.EQUIPMENT,
|
||||||
equipmentSlot: EquipmentSlot.WEAPON,
|
equipmentSlot: EquipmentSlot.WEAPON,
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
tier: 1,
|
tier: 1,
|
||||||
@@ -365,7 +365,7 @@ describe('EquipmentService', () => {
|
|||||||
const material = itemDefinition({
|
const material = itemDefinition({
|
||||||
id: 'def-ash-pelt',
|
id: 'def-ash-pelt',
|
||||||
key: 'ash-pelt',
|
key: 'ash-pelt',
|
||||||
type: ItemType.MATERIAL,
|
type: ItemType.TRADE_GOOD,
|
||||||
equipmentSlot: null,
|
equipmentSlot: null,
|
||||||
});
|
});
|
||||||
const { service } = createHarness({
|
const { service } = createHarness({
|
||||||
|
|||||||
@@ -233,8 +233,7 @@ function character(currentLocation: LocationDefinition): Character {
|
|||||||
return {
|
return {
|
||||||
id: CHARACTER_ID,
|
id: CHARACTER_ID,
|
||||||
name: 'Aric Duskwalker',
|
name: 'Aric Duskwalker',
|
||||||
level: 1,
|
renown: 1,
|
||||||
experience: 0,
|
|
||||||
silver: 0,
|
silver: 0,
|
||||||
baseHp: 100,
|
baseHp: 100,
|
||||||
baseAttack: 6,
|
baseAttack: 6,
|
||||||
|
|||||||
@@ -20,9 +20,8 @@ function characterItem(overrides: Partial<CharacterItem> = {}): CharacterItem {
|
|||||||
key: 'worn-short-sword',
|
key: 'worn-short-sword',
|
||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Abgenutztes Kurzschwert',
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
type: ItemType.WEAPON,
|
type: ItemType.EQUIPMENT,
|
||||||
equipmentSlot: EquipmentSlot.WEAPON,
|
equipmentSlot: EquipmentSlot.WEAPON,
|
||||||
requiredLevel: 1,
|
|
||||||
weaponDamage: 8,
|
weaponDamage: 8,
|
||||||
bonusAttack: 0,
|
bonusAttack: 0,
|
||||||
bonusHp: 0,
|
bonusHp: 0,
|
||||||
@@ -69,7 +68,6 @@ describe('InventoryService', () => {
|
|||||||
name: 'Abgenutztes Kurzschwert',
|
name: 'Abgenutztes Kurzschwert',
|
||||||
rarity: 'COMMON',
|
rarity: 'COMMON',
|
||||||
equipmentSlot: 'WEAPON',
|
equipmentSlot: 'WEAPON',
|
||||||
requiredLevel: 1,
|
|
||||||
weaponDamage: 8,
|
weaponDamage: 8,
|
||||||
bonusAttack: 0,
|
bonusAttack: 0,
|
||||||
bonusHp: 0,
|
bonusHp: 0,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export interface InventoryItemDto {
|
|||||||
name: string;
|
name: string;
|
||||||
rarity: ItemRarity;
|
rarity: ItemRarity;
|
||||||
equipmentSlot: EquipmentSlot | null;
|
equipmentSlot: EquipmentSlot | null;
|
||||||
requiredLevel: number;
|
|
||||||
weaponDamage: number;
|
weaponDamage: number;
|
||||||
bonusAttack: number;
|
bonusAttack: number;
|
||||||
bonusHp: number;
|
bonusHp: number;
|
||||||
@@ -58,7 +57,6 @@ export class InventoryService {
|
|||||||
name: characterItem.itemDefinition.name,
|
name: characterItem.itemDefinition.name,
|
||||||
rarity: characterItem.itemDefinition.rarity,
|
rarity: characterItem.itemDefinition.rarity,
|
||||||
equipmentSlot: characterItem.itemDefinition.equipmentSlot,
|
equipmentSlot: characterItem.itemDefinition.equipmentSlot,
|
||||||
requiredLevel: characterItem.itemDefinition.requiredLevel,
|
|
||||||
weaponDamage: characterItem.itemDefinition.weaponDamage,
|
weaponDamage: characterItem.itemDefinition.weaponDamage,
|
||||||
bonusAttack: characterItem.itemDefinition.bonusAttack,
|
bonusAttack: characterItem.itemDefinition.bonusAttack,
|
||||||
bonusHp: characterItem.itemDefinition.bonusHp,
|
bonusHp: characterItem.itemDefinition.bonusHp,
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ function createState(overrides: Partial<State> = {}): State {
|
|||||||
id: BANDIT_BLADE,
|
id: BANDIT_BLADE,
|
||||||
key: 'bandit-blade',
|
key: 'bandit-blade',
|
||||||
name: 'Räuberklinge',
|
name: 'Räuberklinge',
|
||||||
type: ItemType.WEAPON,
|
type: ItemType.EQUIPMENT,
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
iconPath: '/images/items/bandit-blade.png',
|
iconPath: '/images/items/bandit-blade.png',
|
||||||
} as ItemDefinition,
|
} as ItemDefinition,
|
||||||
@@ -437,7 +437,7 @@ describe('CombatRewardService', () => {
|
|||||||
id: BANDIT_BLADE,
|
id: BANDIT_BLADE,
|
||||||
key: 'bandit-blade',
|
key: 'bandit-blade',
|
||||||
name: 'Räuberklinge',
|
name: 'Räuberklinge',
|
||||||
type: ItemType.WEAPON,
|
type: ItemType.EQUIPMENT,
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
iconPath: '/images/items/bandit-blade.png',
|
iconPath: '/images/items/bandit-blade.png',
|
||||||
} as ItemDefinition,
|
} as ItemDefinition,
|
||||||
@@ -445,7 +445,7 @@ describe('CombatRewardService', () => {
|
|||||||
id: BANDIT_HOOD,
|
id: BANDIT_HOOD,
|
||||||
key: 'bandit-hood',
|
key: 'bandit-hood',
|
||||||
name: 'Räuberkapuze',
|
name: 'Räuberkapuze',
|
||||||
type: ItemType.ARMOR,
|
type: ItemType.EQUIPMENT,
|
||||||
rarity: ItemRarity.COMMON,
|
rarity: ItemRarity.COMMON,
|
||||||
iconPath: '/images/items/bandit-hood.png',
|
iconPath: '/images/items/bandit-hood.png',
|
||||||
} as ItemDefinition,
|
} as ItemDefinition,
|
||||||
|
|||||||
@@ -177,8 +177,7 @@ function createState(): FakeState {
|
|||||||
const character: Character = {
|
const character: Character = {
|
||||||
id: CHARACTER_ID,
|
id: CHARACTER_ID,
|
||||||
name: 'Aric Duskwalker',
|
name: 'Aric Duskwalker',
|
||||||
level: 1,
|
renown: 1,
|
||||||
experience: 0,
|
|
||||||
silver: 0,
|
silver: 0,
|
||||||
baseHp: 100,
|
baseHp: 100,
|
||||||
baseAttack: 6,
|
baseAttack: 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user