feat(equipment): remove the requiredLevel equipment gate - owned items are always equippable

This commit is contained in:
Bastian Wagner
2026-08-21 13:34:10 +02:00
parent 83eef5d9e5
commit 413fafd574
3 changed files with 8 additions and 24 deletions

View File

@@ -12,7 +12,6 @@ import {
characterInCombat,
characterItemNotFound,
characterNotFound,
itemLevelRequirementNotMet,
itemNotEquippable,
itemNotOwned,
} from './equipment.errors';
@@ -102,9 +101,6 @@ export class EquipmentService {
if (!definition.equipmentSlot) {
throw itemNotEquippable();
}
if (definition.requiredLevel > character.level) {
throw itemLevelRequirementNotMet();
}
const existing = await equipmentRepo.findOne({
where: { characterId, slot: definition.equipmentSlot },