Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 800146768e | |||
| 3064703b7c | |||
| 404ad03d0d |
@@ -0,0 +1,51 @@
|
|||||||
|
@page "/gear"
|
||||||
|
@inject DocsService DocsService
|
||||||
|
|
||||||
|
<PageTitle>Gear & Equipment</PageTitle>
|
||||||
|
|
||||||
|
<div class="section-header d-flex align-items-center mb-4">
|
||||||
|
<h1 class="mb-0">Gear & Equipment</h1>
|
||||||
|
<div class="ms-3 flex-grow-1 border-bottom opacity-25"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@if (gearNotes == null)
|
||||||
|
{
|
||||||
|
<div class="d-flex justify-content-center py-5">
|
||||||
|
<div class="spinner-border text-success" role="status">
|
||||||
|
<span class="visually-hidden">Loading...</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<div class="grid-container">
|
||||||
|
<TelerikGrid Data="@gearNotes" Pageable="true" PageSize="50" Sortable="true" FilterMode="@GridFilterMode.FilterRow"
|
||||||
|
Height="calc(100vh - 250px)">
|
||||||
|
<GridColumns>
|
||||||
|
<GridColumn Field="@(nameof(NoteInfo.Title))" Title="Item Name" Width="200px">
|
||||||
|
<Template>
|
||||||
|
<NavLink href="@($"docs/{(context as NoteInfo)!.Slug}")" class="fw-bold">@((context as NoteInfo)!.Title)</NavLink>
|
||||||
|
</Template>
|
||||||
|
</GridColumn>
|
||||||
|
<GridColumn Field="@(nameof(NoteInfo.Cost))" Title="Cost" Width="90px" />
|
||||||
|
<GridColumn Field="@(nameof(NoteInfo.GearCategory))" Title="Category" Width="140px"/>
|
||||||
|
<GridColumn Field="@(nameof(NoteInfo.Effect))" Title="Effect"/>
|
||||||
|
<GridColumn Field="@(nameof(NoteInfo.Location))" Title="Acquisition" Width="150px"/>
|
||||||
|
</GridColumns>
|
||||||
|
</TelerikGrid>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
@code {
|
||||||
|
private List<NoteInfo>? gearNotes;
|
||||||
|
|
||||||
|
protected override async Task OnInitializedAsync()
|
||||||
|
{
|
||||||
|
var index = await DocsService.GetIndexAsync();
|
||||||
|
gearNotes = index.Notes
|
||||||
|
.Where(n => string.Equals(n.Category, "Gear", StringComparison.OrdinalIgnoreCase))
|
||||||
|
.OrderBy(n => n.Title)
|
||||||
|
.ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
+1
-1
@@ -11,6 +11,6 @@ builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.
|
|||||||
builder.Services.AddScoped<DocsService>();
|
builder.Services.AddScoped<DocsService>();
|
||||||
builder.Services.AddSingleton<GameSimulationService>();
|
builder.Services.AddSingleton<GameSimulationService>();
|
||||||
|
|
||||||
//builder.Services.AddTelerikBlazor();
|
builder.Services.AddTelerikBlazor();
|
||||||
|
|
||||||
await builder.Build().RunAsync();
|
await builder.Build().RunAsync();
|
||||||
+5
-4
@@ -8,13 +8,14 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Markdig" Version="0.40.0"/>
|
<PackageReference Include="Markdig" Version="0.40.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9"/>
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.9" PrivateAssets="all"/>
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.9" PrivateAssets="all" />
|
||||||
|
<PackageReference Include="Telerik.UI.for.Blazor" Version="14.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="SyncDocsNotes" BeforeTargets="BeforeBuild">
|
<Target Name="SyncDocsNotes" BeforeTargets="BeforeBuild">
|
||||||
<Exec Command="dotnet run --project "$(MSBuildProjectDirectory)\..\Console\Console.csproj""/>
|
<Exec Command="dotnet run --project "$(MSBuildProjectDirectory)\..\Console\Console.csproj"" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -9,4 +9,6 @@
|
|||||||
@using Web
|
@using Web
|
||||||
@using Web.Layout
|
@using Web.Layout
|
||||||
@using Web.Models
|
@using Web.Models
|
||||||
|
@using Telerik.Blazor
|
||||||
|
@using Telerik.Blazor.Components
|
||||||
@using Web.Services
|
@using Web.Services
|
||||||
@@ -222,6 +222,10 @@
|
|||||||
"slug": "injury-cards",
|
"slug": "injury-cards",
|
||||||
"title": "Injury Cards"
|
"title": "Injury Cards"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"slug": "level-up",
|
||||||
|
"title": "Level Up"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"slug": "losing-the-game",
|
"slug": "losing-the-game",
|
||||||
"title": "Losing the Game"
|
"title": "Losing the Game"
|
||||||
@@ -255,6 +259,11 @@
|
|||||||
"title": "Mountain 5",
|
"title": "Mountain 5",
|
||||||
"category": "Region"
|
"category": "Region"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"slug": "mountain-regions",
|
||||||
|
"title": "Mountain Regions",
|
||||||
|
"category": "Region Type"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"slug": "mountain",
|
"slug": "mountain",
|
||||||
"title": "Mountain",
|
"title": "Mountain",
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Spend exp up to current amount in a stat + 1 to get an extra stat in it.
|
||||||
|
|
||||||
|
Spend 4 exp to go veteran (probably)
|
||||||
|
|
||||||
|
Can store a max of 4 exp.
|
||||||
|
|
||||||
Vendored
+11
-11
@@ -13,12 +13,12 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Notes/Region Types.md",
|
"file": "Notes/Level Up.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "Region Types"
|
"title": "Level Up"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -183,12 +183,18 @@
|
|||||||
"bases:Create new base": false
|
"bases:Create new base": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "e8ba8e9287dfab25",
|
"active": "a4348c23136fecb0",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Notes/Mountain Regions.md",
|
||||||
|
"Notes/Level Up.md",
|
||||||
|
"Tasks/Add Crisis Logic.md",
|
||||||
|
"Overview.md",
|
||||||
|
"Tasks/Sub out all the starter Event Cards.md",
|
||||||
|
"Tasks/Stub out all the starter Terrain Cards.md",
|
||||||
|
"Tasks/_Tasks.base",
|
||||||
|
"Notes/Region Types.md",
|
||||||
"Tasks/Simulate the game state.md",
|
"Tasks/Simulate the game state.md",
|
||||||
"Notes/Terrain Deck.md",
|
"Notes/Terrain Deck.md",
|
||||||
"Notes/Region Types.md",
|
|
||||||
"Mountain Regions.md",
|
|
||||||
"Notes/Activate Prey Ecology.md",
|
"Notes/Activate Prey Ecology.md",
|
||||||
"Notes/Activate Flora Ecology.md",
|
"Notes/Activate Flora Ecology.md",
|
||||||
"Notes/End Turn.md",
|
"Notes/End Turn.md",
|
||||||
@@ -197,11 +203,9 @@
|
|||||||
"Notes/Water Regions.md",
|
"Notes/Water Regions.md",
|
||||||
"Rules.md",
|
"Rules.md",
|
||||||
"Notes/Grass Regions.md",
|
"Notes/Grass Regions.md",
|
||||||
"Tasks/_Tasks.base",
|
|
||||||
"Untitled",
|
"Untitled",
|
||||||
"Notes/Supply.md",
|
"Notes/Supply.md",
|
||||||
"Images/Pasted image 20260609163414.png",
|
"Images/Pasted image 20260609163414.png",
|
||||||
"Overview.md",
|
|
||||||
"Tasks/Generate overview page.md",
|
"Tasks/Generate overview page.md",
|
||||||
"Notes/Event Type.md",
|
"Notes/Event Type.md",
|
||||||
"Notes/Turn Start.md",
|
"Notes/Turn Start.md",
|
||||||
@@ -211,8 +215,6 @@
|
|||||||
"Notes/Companion Cards.md",
|
"Notes/Companion Cards.md",
|
||||||
"Notes/Sun.md",
|
"Notes/Sun.md",
|
||||||
"Notes/Mountain.md",
|
"Notes/Mountain.md",
|
||||||
"Notes/Crest.md",
|
|
||||||
"Notes/Terrain Cards.md",
|
|
||||||
"Images/Pasted image 20260609163839.png",
|
"Images/Pasted image 20260609163839.png",
|
||||||
"Images/Pasted image 20260609163625.png",
|
"Images/Pasted image 20260609163625.png",
|
||||||
"Images/Pasted image 20260609211711.png",
|
"Images/Pasted image 20260609211711.png",
|
||||||
@@ -220,12 +222,10 @@
|
|||||||
"Images/Pasted image 20260609170252.png",
|
"Images/Pasted image 20260609170252.png",
|
||||||
"Images/Pasted image 20260609170321.png",
|
"Images/Pasted image 20260609170321.png",
|
||||||
"Images/Market Example.png",
|
"Images/Market Example.png",
|
||||||
"Notes/Trader.md",
|
|
||||||
"Bases/_Roles.base",
|
"Bases/_Roles.base",
|
||||||
"Bases/Regions.base",
|
"Bases/Regions.base",
|
||||||
"Images/Map.png",
|
"Images/Map.png",
|
||||||
"_Tasks.base",
|
"_Tasks.base",
|
||||||
"_Overview.md",
|
|
||||||
"Bases/_Gear.base",
|
"Bases/_Gear.base",
|
||||||
"Tasks",
|
"Tasks",
|
||||||
"Bases/Terrain.base",
|
"Bases/Terrain.base",
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Spend exp up to current amount in a stat + 1 to get an extra stat in it.
|
||||||
|
|
||||||
|
Spend 4 exp to go veteran (probably)
|
||||||
|
|
||||||
|
Can store a max of 4 exp.
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
category: Region Type
|
||||||
|
---
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
category: Task
|
||||||
|
status: TODO
|
||||||
|
---
|
||||||
|
Would be funny to simulate a game state where all the crisis occur, and there is no players to help stop them
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
category: Task
|
category: Task
|
||||||
status:
|
status: Done
|
||||||
---
|
---
|
||||||
At the start of a game, we have 1 flora added to each region, except [[Grass 1]], [[Grass 2]], and [[Wasteland 1]]. Let's also assume we exclude [[Mountain 1]], [[Mountain 2]], [[Mountain 3]], [[Mountain 4]], [[Mountain 5]].
|
At the start of a game, we have 1 flora added to each region, except [[Grass 1]], [[Grass 2]], and [[Wasteland 1]]. Let's also assume we exclude [[Mountain 1]], [[Mountain 2]], [[Mountain 3]], [[Mountain 4]], [[Mountain 5]].
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
category: Task
|
||||||
|
status: Working On
|
||||||
|
---
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
category: Task
|
||||||
|
status: Working On
|
||||||
|
---
|
||||||
@@ -132,17 +132,21 @@ views:
|
|||||||
- TODO
|
- TODO
|
||||||
- Working On
|
- Working On
|
||||||
- Done
|
- Done
|
||||||
- Uncategorized
|
|
||||||
cardOrders:
|
cardOrders:
|
||||||
file.file: {}
|
file.file: {}
|
||||||
note.status:
|
note.status:
|
||||||
Working On: []
|
Working On:
|
||||||
|
- Stub out all the starter Terrain Cards.md
|
||||||
|
- Sub out all the starter Event Cards.md
|
||||||
Done:
|
Done:
|
||||||
- Tasks/Generate a Markdown Website.md
|
- Tasks/Generate a Markdown Website.md
|
||||||
- Tasks/Generate a map of regions and how they connect.md
|
- Tasks/Generate a map of regions and how they connect.md
|
||||||
- Tasks/Generate a csharp script to do what you did.md
|
- Tasks/Generate a csharp script to do what you did.md
|
||||||
- Tasks/Generate overview page.md
|
- Tasks/Generate overview page.md
|
||||||
|
- Tasks/Simulate the game state.md
|
||||||
Uncategorized: []
|
Uncategorized: []
|
||||||
|
TODO:
|
||||||
|
- Add Crisis Logic.md
|
||||||
columnColors:
|
columnColors:
|
||||||
file.file: {}
|
file.file: {}
|
||||||
note.status: {}
|
note.status: {}
|
||||||
|
|||||||
Reference in New Issue
Block a user