Browse Source

Merge pull request #60 from JonathanMcCaffrey/temp

Temp
main
Jonathan McCaffrey 3 years ago committed by GitHub
parent
commit
01d8b383e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      IGP/PageLayout.razor
  2. 2
      IGP/wwwroot/generated/Variables.json
  3. 13
      Model/Entity/Data/DATA.cs
  4. 9
      TestAutomation/TestSearchFeatures.cs

3
IGP/PageLayout.razor

@ -45,7 +45,6 @@
</MudHidden> </MudHidden>
<MudSpacer /> <MudSpacer />
<SearchButtonComponent Id="desktop-searchButton" /> <SearchButtonComponent Id="desktop-searchButton" />
<MudIconButton Icon="@Icons.Material.Filled.Settings" Color="Color.Inherit" Edge="Edge.End" />
</MudAppBar> </MudAppBar>
<MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true"> <MudHidden Breakpoint="Breakpoint.SmAndDown" Invert="true">
<MudDrawer @bind-Open="_drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2"> <MudDrawer @bind-Open="_drawerOpen" ClipMode="DrawerClipMode.Always" Elevation="2">
@ -56,8 +55,6 @@
<MudNavLink Href="/database" Icon="fa-solid fa-clipboard-list">Database</MudNavLink> <MudNavLink Href="/database" Icon="fa-solid fa-clipboard-list">Database</MudNavLink>
<MudSpacer /> <MudSpacer />
<MudDivider Class="my-2" /> <MudDivider Class="my-2" />
<MudNavLink Href="/settings" Icon="fa-solid fa-gear">Settings</MudNavLink>
<MudDivider Class="my-2" />
</MudNavMenu> </MudNavMenu>
</MudPaper> </MudPaper>
</MudDrawer> </MudDrawer>

2
IGP/wwwroot/generated/Variables.json

@ -1 +1 @@
[{"Key":"GamePatch","Value":"0.0.6.10097a"},{"Key":"LastUpdated","Value":"August 27, 2022"}] [{"Key":"GamePatch","Value":"0.0.6.10097a"},{"Key":"LastUpdated","Value":"September 03, 2022"}]

13
Model/Entity/Data/DATA.cs

@ -49,7 +49,7 @@ public class DATA
Name = "Teapot", Description = "Basic scout. Every faction has this", Name = "Teapot", Description = "Basic scout. Every faction has this",
Notes = @"Very powerful! So Fast" Notes = @"Very powerful! So Fast"
}) })
.AddPart(new EntityVitalityModel { Health = 70, Armor = ArmorType.Light }) .AddPart(new EntityVitalityModel { Health = 120, Armor = ArmorType.Light })
.AddPart(new EntityMovementModel { Speed = 400 }) .AddPart(new EntityMovementModel { Speed = 400 })
}, },
{ {
@ -63,7 +63,7 @@ public class DATA
.AddPart(new EntityRequirementModel { Id = DataType.TEAPOT_Teapot }) .AddPart(new EntityRequirementModel { Id = DataType.TEAPOT_Teapot })
.AddPart(new EntitySupplyModel { Takes = 1 }) .AddPart(new EntitySupplyModel { Takes = 1 })
.AddPart(new EntityProductionModel { Alloy = 100, Ether = 50 }) .AddPart(new EntityProductionModel { Alloy = 100, Ether = 50 })
.AddPart(new EntityVitalityModel { Health = 100, DefenseLayer = 30, Armor = ArmorType.Light }) .AddPart(new EntityVitalityModel { Health = 120, DefenseLayer = 80, Armor = ArmorType.Light })
.AddPart(new EntityMovementModel { Speed = 280, Movement = MovementType.Air }) .AddPart(new EntityMovementModel { Speed = 280, Movement = MovementType.Air })
.AddPart(new EntityIdPassiveModel { Id = DataType.PASSIVE_Detection }) .AddPart(new EntityIdPassiveModel { Id = DataType.PASSIVE_Detection })
}, },
@ -844,7 +844,7 @@ public class DATA
.AddPart(new EntityMovementModel { Speed = 435, Movement = MovementType.Ground }) .AddPart(new EntityMovementModel { Speed = 435, Movement = MovementType.Ground })
.AddPart(new EntityWeaponModel .AddPart(new EntityWeaponModel
{ {
LightDamage = 24, MediumDamage = 18, Damage = 12, Range = 400, AttacksPerSecond = 0.5f, LightDamage = 30, MediumDamage = 23, Damage = 16, Range = 400, AttacksPerSecond = 0.5f,
Targets = TargetType.Ground Targets = TargetType.Ground
}) })
.AddPart(new EntityIdUpgradeModel { Id = DataType.UPGRADE_SiroccoScript }) .AddPart(new EntityIdUpgradeModel { Id = DataType.UPGRADE_SiroccoScript })
@ -1291,7 +1291,7 @@ public class DATA
.AddPart(new EntityMovementModel { Speed = 424, Movement = MovementType.Ground }) .AddPart(new EntityMovementModel { Speed = 424, Movement = MovementType.Ground })
.AddPart(new EntityWeaponModel .AddPart(new EntityWeaponModel
{ {
Damage = 13, LightDamage = 27, MediumDamage = 20, Range = 500, AttacksPerSecond = 0.7f, Damage = 18, LightDamage = 38, MediumDamage = 28, Range = 500, AttacksPerSecond = 0.7f,
Targets = TargetType.Ground, SecondsBetweenAttacks = 1.429f Targets = TargetType.Ground, SecondsBetweenAttacks = 1.429f
}) })
.AddPart(new EntityIdUpgradeModel { Id = DataType.UPGRADE_DenInstinct }) .AddPart(new EntityIdUpgradeModel { Id = DataType.UPGRADE_DenInstinct })
@ -3187,7 +3187,7 @@ public class DATA
}) })
.AddPart(new EntityWeaponModel .AddPart(new EntityWeaponModel
{ {
Damage = 14, Range = 700, SecondsBetweenAttacks = 1.8f, Targets Damage = 22, Range = 700, SecondsBetweenAttacks = 1.8f, Targets
= TargetType.All = TargetType.All
}) })
.AddPart(new EntityIdPassiveModel { Id = DataType.PASSIVE_HallowedWeapons }) .AddPart(new EntityIdPassiveModel { Id = DataType.PASSIVE_HallowedWeapons })
@ -3493,6 +3493,7 @@ public class DATA
.AddPart(new EntityProductionModel { Alloy = 100, BuildTime = 18, RequiresWorker = true }) .AddPart(new EntityProductionModel { Alloy = 100, BuildTime = 18, RequiresWorker = true })
.AddPart(new EntityVitalityModel .AddPart(new EntityVitalityModel
{ Health = 300, DefenseLayer = 50, Armor = ArmorType.Heavy, IsStructure = true }) { Health = 300, DefenseLayer = 50, Armor = ArmorType.Heavy, IsStructure = true })
.AddPart(new EntityWeaponModel(){ Damage = 24, Range = 700, AttacksPerSecond = 1.639f, Targets = TargetType.Air})
}, },
{ {
DataType.BUPGRADE_Omnivore, DataType.BUPGRADE_Omnivore,
@ -3508,6 +3509,8 @@ public class DATA
.AddPart(new EntityProductionModel { Alloy = 50, BuildTime = 18, RequiresWorker = false }) .AddPart(new EntityProductionModel { Alloy = 50, BuildTime = 18, RequiresWorker = false })
.AddPart(new EntityVitalityModel .AddPart(new EntityVitalityModel
{ Health = 400, DefenseLayer = 50, Armor = ArmorType.Heavy, IsStructure = true }) { Health = 400, DefenseLayer = 50, Armor = ArmorType.Heavy, IsStructure = true })
.AddPart(new EntityWeaponModel(){ Damage = 24, Range = 700, AttacksPerSecond = 1.639f, Targets = TargetType.Air})
.AddPart(new EntityWeaponModel(){ Damage = 12, MediumDamage = 14, HeavyDamage = 16, Range = 700, AttacksPerSecond = 2.439f, Targets = TargetType.Ground})
}, },
{ {
DataType.BUILDING_AmberWomb, DataType.BUILDING_AmberWomb,

9
TestAutomation/TestSearchFeatures.cs

@ -19,18 +19,9 @@ public class TestSearchFeatures : BaseTest
TestReport.ThrowErrors(); TestReport.ThrowErrors();
} }
[Test]
public void JustFail()
{
TestReport.CheckPassed(false,
new TestMessage { Title = "Should Fail", Description = "Failed" });
}
[Test] [Test]
public void DesktopOpenCloseSearchDialog() public void DesktopOpenCloseSearchDialog()
{ {
Website Website
.Goto() .Goto()
.NavigationBar .NavigationBar

Loading…
Cancel
Save