diff --git a/IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor b/IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor index b5d7cf2..930d05d 100644 --- a/IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor +++ b/IGP/Pages/Database/Entity/Parts/EntityWeaponsComponent.razor @@ -2,7 +2,6 @@ @using Services.Website @implements IDisposable - @if (Entity!.Weapons().Count > 0) { @if (StyleType.Equals("Plain")) diff --git a/Model/Entity/Data/DATA.cs b/Model/Entity/Data/DATA.cs index 63a5a29..f7a4398 100644 --- a/Model/Entity/Data/DATA.cs +++ b/Model/Entity/Data/DATA.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using Model.Entity.Parts; +using Model.Entity.Types; using Model.Types; using Newtonsoft.Json; @@ -1285,7 +1286,7 @@ public class DATA .AddPart(new EntityHotkeyModel { Hotkey = "R", HotkeyGroup = "Z" }) .AddPart(new EntityFactionModel { Faction = DataType.FACTION_Aru }) .AddPart(new EntityProductionModel - { Alloy = 95, Ether = 20, BuildTime = 30, ProducedBy = DataType.BUILDING_AmberWomb }) + { Alloy = 100, Ether = 0, BuildTime = 30, ProducedBy = DataType.BUILDING_AmberWomb }) .AddPart(new EntitySupplyModel { Takes = 4 }) .AddPart(new EntityVitalityModel { Health = 100, DefenseLayer = 40, Armor = ArmorType.Medium }) .AddPart(new EntityMovementModel { Speed = 382, Movement = MovementType.Ground }) @@ -1401,7 +1402,7 @@ public class DATA .AddPart(new EntityHotkeyModel { Hotkey = "W", HoldSpace = true, HotkeyGroup = "Z" }) .AddPart(new EntityFactionModel { Faction = DataType.FACTION_Aru }) .AddPart(new EntityProductionModel - { Alloy = 80, Ether = 30, BuildTime = 30, ProducedBy = DataType.BUILDING_AmberWomb }) + { Alloy = 80, Ether = 40, BuildTime = 30, ProducedBy = DataType.BUILDING_AmberWomb }) .AddPart(new EntitySupplyModel { Takes = 3 }) .AddPart(new EntityVitalityModel { Health = 120, DefenseLayer = 45, Armor = ArmorType.Medium }) .AddPart(new EntityMovementModel { Speed = 350, Movement = MovementType.Ground }) @@ -1415,7 +1416,10 @@ public class DATA { DataType.UNIT_Behemoth, new EntityModel(DataType.UNIT_Behemoth, EntityType.Army) - .AddPart(new EntityInfoModel { Name = "Behemoth", Descriptive = DescriptiveType.Skirmisher }) + .AddPart(new EntityInfoModel + { + Name = "Behemoth", Descriptive = DescriptiveType.Skirmisher + }) .AddPart(new EntityTierModel { Tier = 3.5f }) .AddPart(new EntityRequirementModel { @@ -1436,7 +1440,9 @@ public class DATA .AddPart(new EntityMovementModel { Speed = 210, Movement = MovementType.Air }) .AddPart(new EntityWeaponModel { - Damage = 0, Range = 600, AttacksPerSecond = 0.588f, SecondsBetweenAttacks = 1.7f, + Damage = 21, + Range = 600, AttacksPerSecond = 0.588f, SecondsBetweenAttacks = 1.7f, + Cooldown = 6, Charges = 1, Targets = TargetType.Ground }) .AddPart(new EntityIdUpgradeModel { Id = DataType.UPGRADE_BehemothCapacity }) @@ -1449,8 +1455,9 @@ public class DATA new EntityModel(DataType.SUMMON_Quitl, EntityType.Army) .AddPart(new EntityInfoModel { Name = "Quitl", Descriptive = DescriptiveType.Summon }) .AddPart(new EntityFactionModel { Faction = DataType.FACTION_Aru }) - .AddPart(new EntityVitalityModel { Health = 65, Armor = ArmorType.Light }) + .AddPart(new EntityVitalityModel { Health = 65, Armor = ArmorType.Light, Lasts = 8}) .AddPart(new EntityMovementModel { Speed = 168, Movement = MovementType.Ground }) + .AddPart(new EntityWeaponModel { Damage = 10, Range = 300, AttacksPerSecond = 1.124f, Targets = TargetType.Ground}) .AddPart(new EntityIdPassiveModel { Id = DataType.PASSIVE_Temporary }) }, // Upgrades @@ -2434,7 +2441,9 @@ public class DATA .AddPart(new EntityInfoModel { Name = "Spawn Quitl", Descriptive = DescriptiveType.Ability, - Description = @"Unit spawns Quitl on attack." + Description = @"Unit spawns Quitl on attack.", + Notes = "Quitl deals 99 damage over it's life span of 8 seconds." + }) .AddPart(new EntityFactionModel { Faction = DataType.FACTION_Aru }) }, diff --git a/Model/Entity/Parts/EntityWeaponModel.cs b/Model/Entity/Parts/EntityWeaponModel.cs index 9a02682..94f7e4f 100644 --- a/Model/Entity/Parts/EntityWeaponModel.cs +++ b/Model/Entity/Parts/EntityWeaponModel.cs @@ -1,4 +1,5 @@ -using Model.Types; +using Model.Entity.Types; +using Model.Types; namespace Model.Entity.Parts; @@ -12,8 +13,12 @@ public class EntityWeaponModel : IEntityPartInterface public float AttacksPerSecond { get; set; } = 0; public float SecondsBetweenAttacks { get; set; } = 0; + public float Cooldown { get; set; } = 0; + public float Charges { get; set; } = 0; public int Damage { get; set; } = 0; + + public string ComplexDamage { get; set; } = "deals 126 over 6 seconds"; public bool HasSplash { get; set; } @@ -26,4 +31,5 @@ public class EntityWeaponModel : IEntityPartInterface public int StructureDamageBonus { get; set; } = 0; public int EthericDamageBonus { get; set; } = 0; public string Targets { get; set; } = TargetType.All; + public string Attack { get; set; } = AttackType.DPS; } \ No newline at end of file diff --git a/Model/Entity/Types/AttackType.cs b/Model/Entity/Types/AttackType.cs new file mode 100644 index 0000000..7b00964 --- /dev/null +++ b/Model/Entity/Types/AttackType.cs @@ -0,0 +1,7 @@ +namespace Model.Entity.Types; + +public static class AttackType +{ + public static string DPS = "DPS"; + public static string Charges = "Charges"; +} \ No newline at end of file diff --git a/Model/Entity/Types/TargetType.cs b/Model/Entity/Types/TargetType.cs index 8ac1fbe..24a124b 100644 --- a/Model/Entity/Types/TargetType.cs +++ b/Model/Entity/Types/TargetType.cs @@ -1,4 +1,4 @@ -namespace Model.Types; +namespace Model.Entity.Types; public static class TargetType {