- Add building page

- Rework weapon ui (hide to spoiler and adapt to mobile)
- Add additional weapon params (throw force, min radius, damage radius etc)
- Add squad start/max sise, unit mass, souls and faith to cost
This commit is contained in:
Anibus
2025-04-18 14:06:26 +03:00
parent 3e78fa3807
commit 5751cec4de
15 changed files with 576 additions and 211 deletions
+28
View File
@@ -0,0 +1,28 @@
import {Irace} from "./Irace";
import {IArmorType} from "./IArmorType";
import {WeaponHardpoint} from "./IUnit";
export interface IBuilding {
id: number
race: Irace
armorType: IArmorType
armorType2?: IArmorType
name: string
filename: string
description: string
buildCostRequisition: number
buildCostPower: number
buildCostPopulation: number
buildCostFaith: number
buildCostSouls: number
buildCostTime: number
health: number
healthRegeneration: number
sightRadius: number
detectRadius: number
repairMax: number
icon: string
modId: number
weapons: WeaponHardpoint[]
}
+14
View File
@@ -0,0 +1,14 @@
import {Irace} from "./Irace";
export interface IRaceBuildings {
race: Irace
buildings: IBuildingShort[]
}
export interface IBuildingShort {
name: string
icon: string
id: number
canDetect: boolean
armourTypeName: string
}
+6 -2
View File
@@ -40,6 +40,7 @@ export interface IUnit {
reinforceCostPower?: number
reinforceCostPopulation ?: number
reinforceCostFaith ?: number
reinforceCostSouls ?: number
reinforceTime?: number
icon: string
modId: number
@@ -90,22 +91,25 @@ export interface IWeapon {
reloadTime: number
setupTime: number
accuracyReductionMoving: number
minRange: number
maxRange: number
minDamage: number
maxDamage: number
minDamageValue: number
moraleDamage: number
damageRadius: number
throwForceMin: number
throwForceMax: number
isMeleeWeapon: boolean
canAttackAir: boolean
canAttackGround: boolean
haveEquipButton: boolean
icon: string
modId: number
weaponPiercings: IWeaponPiercing[]
weaponArmorPiercing: IWeaponPiercing[]
}
export interface IWeaponPiercing {
id: number
armorType: IArmorType
piercingValue: number
}