Additional tools for Admin portal, and huge NameSpace Revamp
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using MySqlConnector;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public static class ConnectionStringFactory
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using MySqlConnector;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class DatabaseHealthCheck : IHealthCheck
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using MySqlConnector;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class DatabaseManager : IDatabaseManager, IAsyncDisposable
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class DatabaseOptions
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using Microsoft.EntityFrameworkCore.Design;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<GameDbContext>
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Security.Principal;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Server.Data.Entities;
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class GameDbContext : DbContext
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Central entry for DB access: resilient connections, optional transactions, and utility helpers.
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Diagnostics.HealthChecks;
|
||||
using Server.Data;
|
||||
using DataServer.Data;
|
||||
|
||||
namespace Server;
|
||||
namespace DataServer;
|
||||
|
||||
public static class ServiceCollectionExtensions
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class Account
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data;
|
||||
namespace DungeonCrawler.Data.Entities;
|
||||
using DataServer.Data;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Derived stats calculator - used at runtime
|
||||
@@ -153,34 +153,4 @@ public class Character
|
||||
public virtual ICollection<LearnedSpell> LearnedSpells { get; set; } = new List<LearnedSpell>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Experience required per level (exponential curve)
|
||||
/// </summary>
|
||||
public static class LevelSystem
|
||||
{
|
||||
public static long GetXpForLevel(int level)
|
||||
{
|
||||
// Base 100 XP for level 2, scaling exponentially
|
||||
return (long)(100 * Math.Pow(1.15, level - 1));
|
||||
}
|
||||
|
||||
public static long GetTotalXpForLevel(int level)
|
||||
{
|
||||
long total = 0;
|
||||
for (int i = 1; i < level; i++)
|
||||
total += GetXpForLevel(i);
|
||||
return total;
|
||||
}
|
||||
|
||||
public static int GetLevelForXp(long totalXp)
|
||||
{
|
||||
int level = 1;
|
||||
long xpNeeded = 0;
|
||||
while (xpNeeded <= totalXp)
|
||||
{
|
||||
xpNeeded += GetXpForLevel(level);
|
||||
if (xpNeeded <= totalXp) level++;
|
||||
}
|
||||
return level;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks all client-side files that can be hot-updated from CDN.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// A crafted item with randomly rolled stats
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// A crafting recipe that can produce an item
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Types of crafting skills
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks death chests spawned when loot exceeds player inventory.
|
||||
|
||||
@@ -1,481 +0,0 @@
|
||||
using Server.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Default item definitions - seeded on first startup
|
||||
/// </summary>
|
||||
public static class DefaultDungeonItems
|
||||
{
|
||||
public static List<DungeonItemDefinition> GetDefaultItems()
|
||||
{
|
||||
return new List<DungeonItemDefinition>
|
||||
{
|
||||
// ==================== CRAFTING MATERIALS (1-10) ====================
|
||||
new()
|
||||
{
|
||||
Id = 1,
|
||||
Name = "Bone Fragment",
|
||||
Description = "A fragment of bone from the undead. Used in crafting.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 99,
|
||||
SpriteId = 1
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 2,
|
||||
Name = "Rotted Cloth",
|
||||
Description = "Decayed fabric from the walking dead.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 99,
|
||||
SpriteId = 2
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 3,
|
||||
Name = "Soul Essence",
|
||||
Description = "The captured essence of a departed spirit. Valuable for enchanting.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 50,
|
||||
SpriteId = 3
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 4,
|
||||
Name = "Beast Hide",
|
||||
Description = "Tough hide from a dungeon beast.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 99,
|
||||
SpriteId = 4
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 5,
|
||||
Name = "Beast Fang",
|
||||
Description = "A sharp fang from a predatory creature.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 99,
|
||||
SpriteId = 5
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 6,
|
||||
Name = "Beast Heart",
|
||||
Description = "The still-warm heart of a powerful beast.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 30,
|
||||
SpriteId = 6
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 7,
|
||||
Name = "Demon Essence",
|
||||
Description = "Dark energy condensed from demonic creatures.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 50,
|
||||
SpriteId = 7
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 8,
|
||||
Name = "Infernal Shard",
|
||||
Description = "A crystallized fragment of hellfire.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Rare,
|
||||
Stackable = true,
|
||||
MaxStack = 30,
|
||||
SpriteId = 8
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 9,
|
||||
Name = "Elemental Core",
|
||||
Description = "The magical core of an elemental being.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 50,
|
||||
SpriteId = 9
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 10,
|
||||
Name = "Arcane Dust",
|
||||
Description = "Fine magical particles. Essential for enchanting.",
|
||||
Type = ItemType.Material,
|
||||
Rarity = ItemRarity.Rare,
|
||||
Stackable = true,
|
||||
MaxStack = 99,
|
||||
SpriteId = 10
|
||||
},
|
||||
|
||||
// ==================== CONSUMABLES (11-20) ====================
|
||||
new()
|
||||
{
|
||||
Id = 11,
|
||||
Name = "Minor Health Potion",
|
||||
Description = "Restores a small amount of health.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 20,
|
||||
HealAmount = 30,
|
||||
SpriteId = 11
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 12,
|
||||
Name = "Health Potion",
|
||||
Description = "Restores a moderate amount of health.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 20,
|
||||
HealAmount = 75,
|
||||
SpriteId = 12
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 13,
|
||||
Name = "Greater Health Potion",
|
||||
Description = "Restores a large amount of health.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 10,
|
||||
HealAmount = 150,
|
||||
SpriteId = 13
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 14,
|
||||
Name = "Minor Mana Potion",
|
||||
Description = "Restores a small amount of mana.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 20,
|
||||
ManaRestore = 25,
|
||||
SpriteId = 14
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 15,
|
||||
Name = "Mana Potion",
|
||||
Description = "Restores a moderate amount of mana.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Common,
|
||||
Stackable = true,
|
||||
MaxStack = 20,
|
||||
ManaRestore = 60,
|
||||
SpriteId = 15
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 16,
|
||||
Name = "Scroll of Escape",
|
||||
Description = "Teleports you safely out of the dungeon.",
|
||||
Type = ItemType.Consumable,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
Stackable = true,
|
||||
MaxStack = 5,
|
||||
IsTeleportScroll = true,
|
||||
SpriteId = 16
|
||||
},
|
||||
|
||||
// ==================== WEAPONS (21-30) ====================
|
||||
new()
|
||||
{
|
||||
Id = 21,
|
||||
Name = "Iron Sword",
|
||||
Description = "A sturdy iron blade.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 8,
|
||||
MaxDamage = 14,
|
||||
AttackRange = 40,
|
||||
RequiredLevel = 1,
|
||||
SpriteId = 21
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 22,
|
||||
Name = "Steel Sword",
|
||||
Description = "A well-forged steel blade.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 12,
|
||||
MaxDamage = 20,
|
||||
AttackRange = 40,
|
||||
RequiredLevel = 3,
|
||||
RequiredStrength = 5,
|
||||
SpriteId = 22
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 23,
|
||||
Name = "Wooden Air Staff",
|
||||
Description = "A simple staff channeling magical energy.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 5,
|
||||
MaxDamage = 10,
|
||||
AttackRange = 100,
|
||||
DamageType = DamageType.Wind,
|
||||
BonusMana = 10,
|
||||
RequiredLevel = 1,
|
||||
SpriteId = 23
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 24,
|
||||
Name = "Enchanted Fire Staff",
|
||||
Description = "A staff imbued with arcane power.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 10,
|
||||
MaxDamage = 18,
|
||||
AttackRange = 120,
|
||||
DamageType = DamageType.Fire,
|
||||
BonusMana = 25,
|
||||
BonusIntelligence = 3,
|
||||
RequiredLevel = 4,
|
||||
RequiredIntelligence = 6,
|
||||
SpriteId = 24
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 25,
|
||||
Name = "Hunting Bow",
|
||||
Description = "A reliable ranged weapon.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 6,
|
||||
MaxDamage = 12,
|
||||
AttackRange = 180,
|
||||
DamageType = DamageType.Physical,
|
||||
RequiredLevel = 1,
|
||||
RequiredDexterity = 3,
|
||||
SpriteId = 25
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 26,
|
||||
Name = "Shadow Dagger",
|
||||
Description = "A wickedly sharp blade that strikes from the shadows.",
|
||||
Type = ItemType.Weapon,
|
||||
Rarity = ItemRarity.Rare,
|
||||
EquipSlot = DungeonEquipmentSlot.MainHand,
|
||||
MinDamage = 15,
|
||||
MaxDamage = 25,
|
||||
AttackRange = 35,
|
||||
DamageType = DamageType.Physical,
|
||||
BonusDexterity = 5,
|
||||
RequiredLevel = 6,
|
||||
RequiredDexterity = 10,
|
||||
SpriteId = 26
|
||||
},
|
||||
|
||||
// ==================== ARMOR - CHEST (31-35) ====================
|
||||
new()
|
||||
{
|
||||
Id = 31,
|
||||
Name = "Leather Armor",
|
||||
Description = "Basic leather protection.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.Chest,
|
||||
Armor = 5,
|
||||
RequiredLevel = 1,
|
||||
SpriteId = 31
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 32,
|
||||
Name = "Chainmail",
|
||||
Description = "Interlocking metal rings provide solid defense.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Chest,
|
||||
Armor = 12,
|
||||
BonusEndurance = 2,
|
||||
RequiredLevel = 4,
|
||||
RequiredStrength = 5,
|
||||
SpriteId = 32
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 33,
|
||||
Name = "Mage Robes",
|
||||
Description = "Enchanted robes that enhance magical abilities.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Chest,
|
||||
Armor = 3,
|
||||
MagicResist = 10,
|
||||
BonusMana = 30,
|
||||
BonusIntelligence = 3,
|
||||
RequiredLevel = 3,
|
||||
RequiredIntelligence = 5,
|
||||
SpriteId = 33
|
||||
},
|
||||
|
||||
// ==================== ARMOR - HEAD (36-38) ====================
|
||||
new()
|
||||
{
|
||||
Id = 36,
|
||||
Name = "Leather Cap",
|
||||
Description = "A simple leather head covering.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.Head,
|
||||
Armor = 2,
|
||||
RequiredLevel = 1,
|
||||
SpriteId = 36
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 37,
|
||||
Name = "Iron Helm",
|
||||
Description = "A sturdy metal helmet.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Head,
|
||||
Armor = 6,
|
||||
BonusEndurance = 1,
|
||||
RequiredLevel = 3,
|
||||
RequiredStrength = 3,
|
||||
SpriteId = 37
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 38,
|
||||
Name = "Wizard Hat",
|
||||
Description = "A pointed hat crackling with magical energy.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Head,
|
||||
Armor = 1,
|
||||
MagicResist = 5,
|
||||
BonusMana = 15,
|
||||
BonusWisdom = 2,
|
||||
RequiredLevel = 3,
|
||||
RequiredIntelligence = 3,
|
||||
SpriteId = 38
|
||||
},
|
||||
|
||||
// ==================== ARMOR - OFFHAND (41-43) ====================
|
||||
new()
|
||||
{
|
||||
Id = 41,
|
||||
Name = "Wooden Shield",
|
||||
Description = "A basic wooden shield.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.OffHand,
|
||||
Armor = 4,
|
||||
RequiredLevel = 1,
|
||||
SpriteId = 41
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 42,
|
||||
Name = "Iron Shield",
|
||||
Description = "A solid iron shield.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.OffHand,
|
||||
Armor = 10,
|
||||
BonusEndurance = 2,
|
||||
RequiredLevel = 4,
|
||||
RequiredStrength = 6,
|
||||
SpriteId = 42
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 43,
|
||||
Name = "Tome of Knowledge",
|
||||
Description = "An ancient tome that enhances magical power.",
|
||||
Type = ItemType.Armor,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.OffHand,
|
||||
MagicResist = 5,
|
||||
BonusMana = 20,
|
||||
BonusIntelligence = 2,
|
||||
RequiredLevel = 3,
|
||||
RequiredIntelligence = 4,
|
||||
SpriteId = 43
|
||||
},
|
||||
|
||||
// ==================== ACCESSORIES (51-55) ====================
|
||||
new()
|
||||
{
|
||||
Id = 51,
|
||||
Name = "Ring of Health",
|
||||
Description = "A simple ring that bolsters vitality.",
|
||||
Type = ItemType.Accessory,
|
||||
Rarity = ItemRarity.Common,
|
||||
EquipSlot = DungeonEquipmentSlot.Accessory1,
|
||||
BonusHealth = 25,
|
||||
RequiredLevel = 2,
|
||||
SpriteId = 51
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 52,
|
||||
Name = "Ring of Power",
|
||||
Description = "A ring pulsing with physical might.",
|
||||
Type = ItemType.Accessory,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Accessory1,
|
||||
BonusStrength = 3,
|
||||
RequiredLevel = 3,
|
||||
SpriteId = 52
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 53,
|
||||
Name = "Amulet of Wisdom",
|
||||
Description = "An amulet that sharpens the mind.",
|
||||
Type = ItemType.Accessory,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Accessory2,
|
||||
BonusWisdom = 3,
|
||||
BonusMana = 15,
|
||||
RequiredLevel = 3,
|
||||
SpriteId = 53
|
||||
},
|
||||
new()
|
||||
{
|
||||
Id = 54,
|
||||
Name = "Pendant of Swiftness",
|
||||
Description = "A pendant that enhances agility.",
|
||||
Type = ItemType.Accessory,
|
||||
Rarity = ItemRarity.Uncommon,
|
||||
EquipSlot = DungeonEquipmentSlot.Accessory2,
|
||||
BonusDexterity = 4,
|
||||
RequiredLevel = 3,
|
||||
SpriteId = 54
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,228 +0,0 @@
|
||||
using Server.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Default mob templates for seeding the database
|
||||
/// </summary>
|
||||
public static class DefaultDungeonMobs
|
||||
{
|
||||
public static List<DungeonMobDefinition> GetDefaultMobs() => new()
|
||||
{
|
||||
// Tier 1 - Basic enemies
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 1,
|
||||
Name = "Skeleton",
|
||||
Description = "A reanimated pile of bones",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Undead,
|
||||
MinTier = 1,
|
||||
BaseHealth = 40,
|
||||
BasePhysicalDamage = 5,
|
||||
BaseArmor = 5,
|
||||
MoveSpeed = 55f,
|
||||
AttackRange = 40f,
|
||||
AttackSpeed = 0.8f,
|
||||
AggroRange = 120f,
|
||||
BaseXp = 15,
|
||||
ResistancesJson = """{"poison": 1.0, "holy": -0.5}""",
|
||||
//SpriteSheet = "mobs/skeleton.png"
|
||||
},
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 2,
|
||||
Name = "Zombie",
|
||||
Description = "A shambling corpse",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Undead,
|
||||
MinTier = 1,
|
||||
BaseHealth = 60,
|
||||
BasePhysicalDamage = 8,
|
||||
BaseArmor = 0,
|
||||
MoveSpeed = 35f,
|
||||
AttackRange = 35f,
|
||||
AttackSpeed = 0.5f,
|
||||
AggroRange = 100f,
|
||||
BaseXp = 12,
|
||||
ResistancesJson = """{"poison": 1.0, "fire": -0.25, "holy": -0.5}""",
|
||||
//SpriteSheet = "mobs/zombie.png"
|
||||
},
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 3,
|
||||
Name = "Giant Rat",
|
||||
Description = "An oversized rodent",
|
||||
Type = MobType.Swarm,
|
||||
Category = MobCategory.Beast,
|
||||
MinTier = 1,
|
||||
BaseHealth = 20,
|
||||
BasePhysicalDamage = 3,
|
||||
BaseArmor = 0,
|
||||
MoveSpeed = 80f,
|
||||
AttackRange = 30f,
|
||||
AttackSpeed = 1.5f,
|
||||
AggroRange = 80f,
|
||||
BaseXp = 5,
|
||||
ResistancesJson = """{"poison": 0.5}""",
|
||||
//SpriteSheet = "mobs/rat.png"
|
||||
},
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 4,
|
||||
Name = "Giant Spider",
|
||||
Description = "A venomous arachnid",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Beast,
|
||||
MinTier = 1,
|
||||
BaseHealth = 35,
|
||||
BasePhysicalDamage = 4,
|
||||
BaseMagicDamage = 3, // Poison
|
||||
BaseArmor = 2,
|
||||
MoveSpeed = 70f,
|
||||
AttackRange = 35f,
|
||||
AttackSpeed = 1.2f,
|
||||
AggroRange = 130f,
|
||||
BaseXp = 18,
|
||||
ResistancesJson = """{"poison": 1.0}""",
|
||||
AbilitiesJson = """{"poisonOnHit": true, "poisonDamage": 2, "poisonDuration": 3}""",
|
||||
//SpriteSheet = "mobs/spider.png"
|
||||
},
|
||||
|
||||
// Tier 1 Elite
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 10,
|
||||
Name = "Skeleton Knight",
|
||||
Description = "An armored skeleton warrior",
|
||||
Type = MobType.Elite,
|
||||
Category = MobCategory.Undead,
|
||||
MinTier = 1,
|
||||
BaseHealth = 120,
|
||||
BasePhysicalDamage = 12,
|
||||
BaseArmor = 20,
|
||||
MoveSpeed = 50f,
|
||||
AttackRange = 45f,
|
||||
AttackSpeed = 0.7f,
|
||||
AggroRange = 150f,
|
||||
BaseXp = 50,
|
||||
ResistancesJson = """{"poison": 1.0, "holy": -0.5, "physical": 0.1}""",
|
||||
//SpriteSheet = "mobs/skeleton_knight.png"
|
||||
},
|
||||
|
||||
// Tier 1 Boss
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 100,
|
||||
Name = "The Bone Lord",
|
||||
Description = "A massive skeleton wielding dark magic",
|
||||
Type = MobType.Boss,
|
||||
Category = MobCategory.Undead,
|
||||
MinTier = 1,
|
||||
MaxTier = 2,
|
||||
BaseHealth = 500,
|
||||
BaseMana = 100,
|
||||
BasePhysicalDamage = 20,
|
||||
BaseMagicDamage = 15,
|
||||
BaseArmor = 30,
|
||||
BaseMagicResist = 20,
|
||||
MoveSpeed = 40f,
|
||||
AttackRange = 50f,
|
||||
AttackSpeed = 0.6f,
|
||||
AggroRange = 300f,
|
||||
LeashRange = 800f,
|
||||
BaseXp = 500,
|
||||
ResistancesJson = """{"poison": 1.0, "dark": 0.5, "holy": -0.75}""",
|
||||
AbilitiesJson = """{"summonSkeletons": true, "summonCount": 3, "summonCooldown": 15}""",
|
||||
//SpriteSheet = "mobs/bone_lord.png",
|
||||
//SpriteWidth = 64,
|
||||
//SpriteHeight = 64
|
||||
},
|
||||
|
||||
// Tier 2 - Intermediate enemies
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 20,
|
||||
Name = "Imp",
|
||||
Description = "A small demonic creature",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Demon,
|
||||
MinTier = 2,
|
||||
BaseHealth = 45,
|
||||
BaseMagicDamage = 8,
|
||||
BaseMagicResist = 15,
|
||||
MoveSpeed = 75f,
|
||||
AttackRange = 100f, // Ranged
|
||||
AttackSpeed = 1.0f,
|
||||
AggroRange = 180f,
|
||||
BaseXp = 25,
|
||||
ResistancesJson = """{"fire": 0.75, "holy": -0.5}""",
|
||||
//SpriteSheet = "mobs/imp.png"
|
||||
},
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 21,
|
||||
Name = "Cultist",
|
||||
Description = "A dark magic practitioner",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Humanoid,
|
||||
MinTier = 2,
|
||||
BaseHealth = 50,
|
||||
BaseMagicDamage = 10,
|
||||
BaseArmor = 5,
|
||||
BaseMagicResist = 10,
|
||||
MoveSpeed = 55f,
|
||||
AttackRange = 120f, // Ranged
|
||||
AttackSpeed = 0.8f,
|
||||
AggroRange = 200f,
|
||||
BaseXp = 30,
|
||||
ResistancesJson = """{"dark": 0.25, "holy": -0.25}""",
|
||||
//SpriteSheet = "mobs/cultist.png"
|
||||
},
|
||||
|
||||
// Tier 3 - Advanced enemies
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 30,
|
||||
Name = "Stone Golem",
|
||||
Description = "An animated statue",
|
||||
Type = MobType.Elite,
|
||||
Category = MobCategory.Construct,
|
||||
MinTier = 3,
|
||||
BaseHealth = 300,
|
||||
BasePhysicalDamage = 25,
|
||||
BaseArmor = 50,
|
||||
BaseMagicResist = 30,
|
||||
MoveSpeed = 30f,
|
||||
AttackRange = 50f,
|
||||
AttackSpeed = 0.4f,
|
||||
AggroRange = 100f,
|
||||
BaseXp = 100,
|
||||
ResistancesJson = """{"poison": 1.0, "physical": 0.3, "lightning": -0.25}""",
|
||||
//SpriteSheet = "mobs/golem.png",
|
||||
//SpriteWidth = 48,
|
||||
//SpriteHeight = 48
|
||||
},
|
||||
new DungeonMobDefinition
|
||||
{
|
||||
Id = 31,
|
||||
Name = "Fire Elemental",
|
||||
Description = "A living flame",
|
||||
Type = MobType.Normal,
|
||||
Category = MobCategory.Elemental,
|
||||
MinTier = 3,
|
||||
BaseHealth = 80,
|
||||
BaseMagicDamage = 18,
|
||||
BaseMagicResist = 25,
|
||||
MoveSpeed = 65f,
|
||||
AttackRange = 80f,
|
||||
AttackSpeed = 1.2f,
|
||||
AggroRange = 160f,
|
||||
BaseXp = 45,
|
||||
ResistancesJson = """{"fire": 1.0, "ice": -0.75, "physical": 0.5}""",
|
||||
AbilitiesJson = """{"burnOnHit": true, "burnDamage": 5, "burnDuration": 4}""",
|
||||
//SpriteSheet = "mobs/fire_elemental.png",
|
||||
TintColor = "#ff6600"
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DungeonCrawler.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Active dungeon instance (persists until cleared)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Hotbar/belt item slot assignment for quick item access
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Persistent player character with stats and equipment for dungeon crawler
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
public class DungeonCharacterCombatStats
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
/// <summary>
|
||||
/// Actual item instance owned by a character (inventory or equipped)
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Derived stats calculator - used at runtime
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Item template/definition - what an item IS
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Spells a character has learned
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Entities;
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Data.Entities
|
||||
namespace DataServer.Data.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// A single entry in a loot table - one possible drop
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Runtime combat stats for a mob instance
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Monster/NPC template definition stored in database
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Entities;
|
||||
using DataServer.Data.Entities;
|
||||
|
||||
namespace Server.Data.Entities
|
||||
namespace DataServer.Data.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Maps mobs to their loot tables (many-to-many)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Persisted dungeon data for dungeons that become inactive but remain "open"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Spell definition - learnable abilities
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Items stored in character's stash (safe storage in hub)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class EquipmentSlot
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Database-backed item definition for Void Scavengers
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Database-backed crafting recipe for Void Scavengers
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class InventoryItem
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class ItemTemplate
|
||||
{
|
||||
|
||||
+2
-53
@@ -1,7 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace DungeonCrawler.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Item template/definition - what an item IS
|
||||
@@ -179,58 +180,6 @@ public class LearnedSpell
|
||||
public virtual SpellDefinition? Definition { get; set; }
|
||||
}
|
||||
|
||||
// Enums
|
||||
|
||||
public enum ItemType
|
||||
{
|
||||
Weapon,
|
||||
Armor,
|
||||
Accessory,
|
||||
Consumable,
|
||||
SpellTome,
|
||||
Material,
|
||||
Key,
|
||||
TeleportScroll
|
||||
}
|
||||
|
||||
public enum ItemRarity
|
||||
{
|
||||
Common = 0,
|
||||
Uncommon = 1,
|
||||
Rare = 2,
|
||||
Epic = 3,
|
||||
Legendary = 4
|
||||
}
|
||||
|
||||
public enum EquipmentSlot
|
||||
{
|
||||
Weapon,
|
||||
Offhand,
|
||||
Head,
|
||||
Chest,
|
||||
Legs,
|
||||
Boots,
|
||||
Gloves,
|
||||
Accessory
|
||||
}
|
||||
|
||||
public enum DamageType
|
||||
{
|
||||
Physical,
|
||||
Fire,
|
||||
Ice,
|
||||
Lightning,
|
||||
Poison,
|
||||
Holy,
|
||||
Dark
|
||||
}
|
||||
|
||||
public enum SpellType
|
||||
{
|
||||
Damage,
|
||||
Healing,
|
||||
Buff,
|
||||
Debuff,
|
||||
Utility,
|
||||
Summon
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Experience required per level (exponential curve)
|
||||
@@ -10,7 +10,7 @@ public static class LevelSystem
|
||||
// Base 100 XP for level 2, scaling exponentially
|
||||
return (long)(100 * Math.Pow(1.15, level - 1));
|
||||
}
|
||||
|
||||
|
||||
public static long GetTotalXpForLevel(int level)
|
||||
{
|
||||
long total = 0;
|
||||
@@ -18,7 +18,7 @@ public static class LevelSystem
|
||||
total += GetXpForLevel(i);
|
||||
return total;
|
||||
}
|
||||
|
||||
|
||||
public static int GetLevelForXp(long totalXp)
|
||||
{
|
||||
int level = 1;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Server.Data.Enums;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace Server.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// A loot table defines a collection of possible item drops
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Records individual match results for Void Scavengers
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json;
|
||||
using DataServer.Data.Enums;
|
||||
|
||||
namespace DungeonCrawler.Data.Entities;
|
||||
namespace DataServer.Data.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Monster/NPC template definition stored in database
|
||||
@@ -189,26 +190,9 @@ public class MobCombatStats
|
||||
}
|
||||
}
|
||||
|
||||
public enum MobType
|
||||
{
|
||||
Normal, // Standard enemy
|
||||
Elite, // Stronger, better loot
|
||||
Miniboss, // Mini-boss, guaranteed drop
|
||||
Boss, // Floor boss, best loot
|
||||
Swarm // Weak but spawns in groups
|
||||
}
|
||||
|
||||
public enum MobCategory
|
||||
{
|
||||
Undead, // Skeletons, zombies, ghosts
|
||||
Beast, // Wolves, spiders, bats
|
||||
Demon, // Imps, demons
|
||||
Humanoid, // Bandits, cultists
|
||||
Elemental, // Fire/ice/lightning elementals
|
||||
Construct, // Golems, animated armor
|
||||
Dragon, // Dragons, drakes
|
||||
Aberration // Slimes, mimics, eldritch
|
||||
}
|
||||
|
||||
|
||||
|
||||
// DamageType enum is defined in Items.cs
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class Old_Character
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks player statistics for Void Scavengers
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class Session
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Server.Data;
|
||||
namespace DataServer.Data;
|
||||
|
||||
public sealed class Zone
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum DamageType
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum DungeonEquipmentSlot
|
||||
{
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace ServerData.Data.Enums
|
||||
{
|
||||
public enum EquipmentSlot
|
||||
{
|
||||
Weapon,
|
||||
Offhand,
|
||||
Head,
|
||||
Chest,
|
||||
Legs,
|
||||
Boots,
|
||||
Gloves,
|
||||
Accessory
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum ItemRarity
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum ItemType
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum MobCategory
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum MobType
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum PlayerState
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Server.Data.Enums;
|
||||
namespace DataServer.Data.Enums;
|
||||
|
||||
public enum SpellType
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user