229 lines
7.2 KiB
C#
229 lines
7.2 KiB
C#
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"
|
|
}
|
|
};
|
|
}
|