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.AddSingleton<GameSimulationService>();
|
||||
|
||||
//builder.Services.AddTelerikBlazor();
|
||||
builder.Services.AddTelerikBlazor();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
+5
-4
@@ -8,13 +8,14 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Markdig" Version="0.40.0"/>
|
||||
<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="Markdig" Version="0.40.0" />
|
||||
<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="Telerik.UI.for.Blazor" Version="14.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="SyncDocsNotes" BeforeTargets="BeforeBuild">
|
||||
<Exec Command="dotnet run --project "$(MSBuildProjectDirectory)\..\Console\Console.csproj""/>
|
||||
<Exec Command="dotnet run --project "$(MSBuildProjectDirectory)\..\Console\Console.csproj"" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -9,4 +9,6 @@
|
||||
@using Web
|
||||
@using Web.Layout
|
||||
@using Web.Models
|
||||
@using Telerik.Blazor
|
||||
@using Telerik.Blazor.Components
|
||||
@using Web.Services
|
||||
@@ -222,6 +222,10 @@
|
||||
"slug": "injury-cards",
|
||||
"title": "Injury Cards"
|
||||
},
|
||||
{
|
||||
"slug": "level-up",
|
||||
"title": "Level Up"
|
||||
},
|
||||
{
|
||||
"slug": "losing-the-game",
|
||||
"title": "Losing the Game"
|
||||
@@ -255,6 +259,11 @@
|
||||
"title": "Mountain 5",
|
||||
"category": "Region"
|
||||
},
|
||||
{
|
||||
"slug": "mountain-regions",
|
||||
"title": "Mountain Regions",
|
||||
"category": "Region Type"
|
||||
},
|
||||
{
|
||||
"slug": "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": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Notes/Region Types.md",
|
||||
"file": "Notes/Level Up.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Region Types"
|
||||
"title": "Level Up"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -183,12 +183,18 @@
|
||||
"bases:Create new base": false
|
||||
}
|
||||
},
|
||||
"active": "e8ba8e9287dfab25",
|
||||
"active": "a4348c23136fecb0",
|
||||
"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",
|
||||
"Notes/Terrain Deck.md",
|
||||
"Notes/Region Types.md",
|
||||
"Mountain Regions.md",
|
||||
"Notes/Activate Prey Ecology.md",
|
||||
"Notes/Activate Flora Ecology.md",
|
||||
"Notes/End Turn.md",
|
||||
@@ -197,11 +203,9 @@
|
||||
"Notes/Water Regions.md",
|
||||
"Rules.md",
|
||||
"Notes/Grass Regions.md",
|
||||
"Tasks/_Tasks.base",
|
||||
"Untitled",
|
||||
"Notes/Supply.md",
|
||||
"Images/Pasted image 20260609163414.png",
|
||||
"Overview.md",
|
||||
"Tasks/Generate overview page.md",
|
||||
"Notes/Event Type.md",
|
||||
"Notes/Turn Start.md",
|
||||
@@ -211,8 +215,6 @@
|
||||
"Notes/Companion Cards.md",
|
||||
"Notes/Sun.md",
|
||||
"Notes/Mountain.md",
|
||||
"Notes/Crest.md",
|
||||
"Notes/Terrain Cards.md",
|
||||
"Images/Pasted image 20260609163839.png",
|
||||
"Images/Pasted image 20260609163625.png",
|
||||
"Images/Pasted image 20260609211711.png",
|
||||
@@ -220,12 +222,10 @@
|
||||
"Images/Pasted image 20260609170252.png",
|
||||
"Images/Pasted image 20260609170321.png",
|
||||
"Images/Market Example.png",
|
||||
"Notes/Trader.md",
|
||||
"Bases/_Roles.base",
|
||||
"Bases/Regions.base",
|
||||
"Images/Map.png",
|
||||
"_Tasks.base",
|
||||
"_Overview.md",
|
||||
"Bases/_Gear.base",
|
||||
"Tasks",
|
||||
"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
|
||||
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]].
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: Task
|
||||
status: Working On
|
||||
---
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: Task
|
||||
status: Working On
|
||||
---
|
||||
@@ -132,17 +132,21 @@ views:
|
||||
- TODO
|
||||
- Working On
|
||||
- Done
|
||||
- Uncategorized
|
||||
cardOrders:
|
||||
file.file: {}
|
||||
note.status:
|
||||
Working On: []
|
||||
Working On:
|
||||
- Stub out all the starter Terrain Cards.md
|
||||
- Sub out all the starter Event Cards.md
|
||||
Done:
|
||||
- Tasks/Generate a Markdown Website.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 overview page.md
|
||||
- Tasks/Simulate the game state.md
|
||||
Uncategorized: []
|
||||
TODO:
|
||||
- Add Crisis Logic.md
|
||||
columnColors:
|
||||
file.file: {}
|
||||
note.status: {}
|
||||
|
||||
Reference in New Issue
Block a user