Add NPC system scaffold, loot-table gold drops, and remove stash VIP gate
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<div class="p-4 border-b border-gray-700">
|
||||
<h2 class="text-lg font-semibold text-white">Drop Settings</h2>
|
||||
</div>
|
||||
<div class="p-6 grid grid-cols-2 md:grid-cols-5 gap-4">
|
||||
<div class="p-6 grid grid-cols-2 md:grid-cols-4 lg:grid-cols-8 gap-4">
|
||||
<div>
|
||||
<label class="label">Min Tier</label>
|
||||
<input type="number" name="LootTable.MinTier" value="@Model.LootTable.MinTier" class="input" min="1" />
|
||||
@@ -84,6 +84,18 @@
|
||||
<label class="label">Drop Chance Mult</label>
|
||||
<input type="number" name="LootTable.DropChanceMultiplier" value="@Model.LootTable.DropChanceMultiplier" class="input" min="0" step="0.1" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="label">Gold Chance</label>
|
||||
<input type="number" name="LootTable.GoldDropChance" value="@Model.LootTable.GoldDropChance" class="input" min="0" max="1" step="0.01" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="label">Min Gold</label>
|
||||
<input type="number" name="LootTable.MinGold" value="@Model.LootTable.MinGold" class="input" min="0" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="label">Max Gold</label>
|
||||
<input type="number" name="LootTable.MaxGold" value="@Model.LootTable.MaxGold" class="input" min="0" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -60,6 +60,9 @@ public class EditModel : AdminPageModel
|
||||
LootTable.MinDrops = 1;
|
||||
LootTable.MaxDrops = 3;
|
||||
LootTable.DropChanceMultiplier = 1.0f;
|
||||
LootTable.GoldDropChance = 0f;
|
||||
LootTable.MinGold = 0;
|
||||
LootTable.MaxGold = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,6 +114,9 @@ public class EditModel : AdminPageModel
|
||||
existing.MaxDrops = LootTable.MaxDrops;
|
||||
existing.DropChanceMultiplier = LootTable.DropChanceMultiplier;
|
||||
existing.GuaranteedDrop = LootTable.GuaranteedDrop;
|
||||
existing.GoldDropChance = LootTable.GoldDropChance;
|
||||
existing.MinGold = LootTable.MinGold;
|
||||
existing.MaxGold = LootTable.MaxGold;
|
||||
existing.IsEnabled = LootTable.IsEnabled;
|
||||
|
||||
await _db.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user