Verify battle scenario data integrity
This commit is contained in:
@@ -15774,6 +15774,12 @@ const thirtyFirstBattleAllyPositions: Record<string, { x: number; y: number }> =
|
||||
'wu-yi': { x: 12, y: 38 }
|
||||
};
|
||||
|
||||
const scenarioUnitPositionOverrides: Record<string, { x: number; y: number }> = {
|
||||
'jing-defense-wei-archer-b': { x: 69, y: 22 },
|
||||
'yiling-fire-ambusher-e': { x: 27, y: 50 },
|
||||
'northern-second-scout-a': { x: 47, y: 72 }
|
||||
};
|
||||
|
||||
const createThirtyFirstEnemyUnit = (
|
||||
id: string,
|
||||
name: string,
|
||||
@@ -15785,6 +15791,7 @@ const createThirtyFirstEnemyUnit = (
|
||||
x: number,
|
||||
y: number
|
||||
): UnitData => {
|
||||
const positionOverride = scenarioUnitPositionOverrides[id];
|
||||
const equipmentByClass: Record<UnitClassKey, UnitData['equipment']> = {
|
||||
lord: {
|
||||
weapon: { itemId: 'twin-oath-blades', level: 5, exp: 70 },
|
||||
@@ -15882,8 +15889,8 @@ const createThirtyFirstEnemyUnit = (
|
||||
luck: 90 + Math.floor(statLift / 2)
|
||||
},
|
||||
equipment: equipmentByClass[classKey],
|
||||
x,
|
||||
y
|
||||
x: positionOverride?.x ?? x,
|
||||
y: positionOverride?.y ?? y
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user