diff --git a/Game/Dungeon/DungeonHandler.cs b/Game/Dungeon/DungeonHandler.cs
index 571ce41..9ebc7ce 100644
--- a/Game/Dungeon/DungeonHandler.cs
+++ b/Game/Dungeon/DungeonHandler.cs
@@ -89,6 +89,7 @@ public sealed partial class DungeonHandler : IClientMessageHandler
DungeonOpCodes.DUNGEON_INPUT_PICKUP,
DungeonOpCodes.DUNGEON_INPUT_CHEST,
DungeonOpCodes.DUNGEON_INPUT_PORTAL,
+ DungeonOpCodes.DUNGEON_INPUT_FIRE_PROJECTILE,
DungeonOpCodes.INVENTORY_REQUEST,
DungeonOpCodes.EQUIP_ITEM,
DungeonOpCodes.UNEQUIP_ITEM,
@@ -327,6 +328,10 @@ public sealed partial class DungeonHandler : IClientMessageHandler
await HandlePortalUse(connection, session, payload, ct);
break;
+ case DungeonOpCodes.DUNGEON_INPUT_FIRE_PROJECTILE:
+ await HandleFireProjectile(connection, session, payload, ct);
+ break;
+
case DungeonOpCodes.INVENTORY_REQUEST:
await HandleInventoryRequest(connection, session, ct);
break;
@@ -997,6 +1002,236 @@ public sealed partial class DungeonHandler : IClientMessageHandler
}
}
+ ///
+ /// Handle projectile firing - validates weapon, consumes ammunition, creates projectile
+ ///
+ private async Task HandleFireProjectile(IConnection connection, DungeonPlayerSession session, ReadOnlyMemory payload, CancellationToken ct)
+ {
+ if (session.PlayerInstance == null) return;
+ if (session.State != PlayerState.InDungeon || !session.CurrentDungeonId.HasValue) return;
+ if (!_dungeons.TryGetValue(session.CurrentDungeonId.Value, out var dungeon)) return;
+
+ var input = _ser.Deserialize(payload);
+ var player = session.PlayerInstance;
+
+ // Normalize direction vector
+ float magnitude = MathF.Sqrt(input.DirectionX * input.DirectionX + input.DirectionY * input.DirectionY);
+ if (magnitude < 0.01f) return; // Invalid direction
+
+ float dirX = input.DirectionX / magnitude;
+ float dirY = input.DirectionY / magnitude;
+
+ using var scope = _scopeFactory.CreateScope();
+ var db = scope.ServiceProvider.GetRequiredService();
+
+ // Get equipped weapon
+ var weaponItemId = session.Character.EquippedWeapon;
+ if (!weaponItemId.HasValue) return;
+
+ var weaponItem = await db.DungeonCharacterItems
+ .Include(i => i.ItemDefinition)
+ .FirstOrDefaultAsync(i => i.Id == weaponItemId.Value, ct);
+
+ if (weaponItem?.ItemDefinition == null) return;
+ var weapon = weaponItem.ItemDefinition;
+
+ // Handle throwable weapons (consume from inventory)
+ if (weapon.IsThrowable)
+ {
+ await HandleThrowableProjectile(session, dungeon, weapon, dirX, dirY, ct);
+ return;
+ }
+
+ // Handle ranged weapons (require ammunition)
+ if (!weapon.RequiresAmmunition || weapon.ProjectileSpeed <= 0) return;
+
+ // Get ammunition from quiver
+ var ammo = await ConsumeAmmunitionFromQuiver(session, weapon.AmmunitionType, db, ct);
+ if (ammo == null)
+ {
+ // No ammo available - could send error message to client
+ _log.LogDebug("Player {Name} tried to fire {Weapon} but has no {AmmoType} ammunition",
+ session.Character.Name, weapon.Name, weapon.AmmunitionType);
+ return;
+ }
+
+ // Calculate damage (STR 30% + DEX 70%)
+ int weaponDamage = Random.Shared.Next(weapon.MinDamage, weapon.MaxDamage + 1);
+ int ammoDamage = Random.Shared.Next(ammo.MinDamage, ammo.MaxDamage + 1);
+ int baseDamage = weaponDamage + ammoDamage;
+
+ float statModifier = (session.Character.Strength * 0.3f + session.Character.Dexterity * 0.7f);
+ float statBonus = baseDamage * (statModifier / 100f);
+ int totalDamage = (int)(baseDamage + statBonus);
+
+ // Create projectile
+ var projectile = new ProjectileInstance
+ {
+ Id = dungeon.Simulation.GetNextProjectileId(),
+ SourceType = ProjectileSource.Player,
+ SourcePlayerId = session.CharacterId,
+ X = player.X,
+ Y = player.Y,
+ VelocityX = dirX * weapon.ProjectileSpeed,
+ VelocityY = dirY * weapon.ProjectileSpeed,
+ Speed = weapon.ProjectileSpeed,
+ Damage = totalDamage,
+ DamageTypeKey = weapon.DamageTypeKey,
+ MaxRange = weapon.ProjectileRange,
+ DistanceTraveled = 0,
+ AmmunitionItemDefinitionId = ammo.Id,
+ RecoveryChance = ammo.ArrowRecoveryChance,
+ CanHitMobs = true,
+ CanHitPlayers = false, // TODO: PvP support
+ SpriteKey = ammo.SpritePath ?? "projectile_arrow"
+ };
+
+ dungeon.Simulation.Projectiles.TryAdd(projectile.Id, projectile);
+
+ // Broadcast projectile spawned
+ foreach (var dungeonPlayer in dungeon.Simulation.Players.Values)
+ {
+ var playerSession = _playerSessions.Values.FirstOrDefault(p => p.CharacterId == dungeonPlayer.CharacterId);
+ if (playerSession != null)
+ {
+ _ = SendAsync(playerSession.Connection, DungeonOpCodes.EVENT_PROJECTILE_SPAWNED, new
+ {
+ id = projectile.Id,
+ sourceType = "player",
+ sourceId = session.CharacterId,
+ x = projectile.X,
+ y = projectile.Y,
+ vx = projectile.VelocityX,
+ vy = projectile.VelocityY,
+ sprite = projectile.SpriteKey
+ }, CancellationToken.None);
+ }
+ }
+
+ _log.LogDebug("Player {Name} fired projectile with {Weapon} using {Ammo} for {Damage} damage",
+ session.Character.Name, weapon.Name, ammo.Name, totalDamage);
+ }
+
+ private async Task HandleThrowableProjectile(DungeonPlayerSession session, DungeonInstance dungeon, DungeonItemDefinition weapon, float dirX, float dirY, CancellationToken ct)
+ {
+ // Throwables consume from inventory
+ using var scope = _scopeFactory.CreateScope();
+ var db = scope.ServiceProvider.GetRequiredService();
+
+ var throwableStack = await db.DungeonCharacterItems
+ .FirstOrDefaultAsync(i => i.CharacterId == session.CharacterId &&
+ i.ItemDefinitionId == weapon.Id &&
+ i.Quantity > 0, ct);
+
+ if (throwableStack == null) return;
+
+ // Consume one
+ throwableStack.Quantity--;
+ if (throwableStack.Quantity <= 0)
+ {
+ db.DungeonCharacterItems.Remove(throwableStack);
+ }
+ await db.SaveChangesAsync(ct);
+
+ // Calculate damage
+ int baseDamage = Random.Shared.Next(weapon.MinDamage, weapon.MaxDamage + 1);
+ float statModifier = (session.Character.Strength * 0.3f + session.Character.Dexterity * 0.7f);
+ float statBonus = baseDamage * (statModifier / 100f);
+ int totalDamage = (int)(baseDamage + statBonus);
+
+ // Create projectile
+ var projectile = new ProjectileInstance
+ {
+ Id = dungeon.Simulation.GetNextProjectileId(),
+ SourceType = ProjectileSource.Player,
+ SourcePlayerId = session.CharacterId,
+ X = session.PlayerInstance!.X,
+ Y = session.PlayerInstance.Y,
+ VelocityX = dirX * weapon.ProjectileSpeed,
+ VelocityY = dirY * weapon.ProjectileSpeed,
+ Speed = weapon.ProjectileSpeed,
+ Damage = totalDamage,
+ DamageTypeKey = weapon.DamageTypeKey,
+ MaxRange = weapon.ProjectileRange,
+ DistanceTraveled = 0,
+ AmmunitionItemDefinitionId = weapon.Id,
+ RecoveryChance = weapon.ArrowRecoveryChance,
+ CanHitMobs = true,
+ CanHitPlayers = false,
+ SpriteKey = weapon.SpritePath ?? "projectile_knife"
+ };
+
+ dungeon.Simulation.Projectiles.TryAdd(projectile.Id, projectile);
+
+ foreach (var dungeonPlayer in dungeon.Simulation.Players.Values)
+ {
+ var playerSession = _playerSessions.Values.FirstOrDefault(p => p.CharacterId == dungeonPlayer.CharacterId);
+ if (playerSession != null)
+ {
+ _ = SendAsync(playerSession.Connection, DungeonOpCodes.EVENT_PROJECTILE_SPAWNED, new
+ {
+ id = projectile.Id,
+ sourceType = "player",
+ sourceId = session.CharacterId,
+ x = projectile.X,
+ y = projectile.Y,
+ vx = projectile.VelocityX,
+ vy = projectile.VelocityY,
+ sprite = projectile.SpriteKey
+ }, CancellationToken.None);
+ }
+ }
+ }
+
+ private async Task ConsumeAmmunitionFromQuiver(DungeonPlayerSession session, string? ammoType, GameDbContext db, CancellationToken ct)
+ {
+ if (string.IsNullOrEmpty(ammoType)) return null;
+
+ var quiverItemId = session.Character.EquippedQuiver;
+ if (!quiverItemId.HasValue) return null;
+
+ var quiverItem = await db.DungeonCharacterItems
+ .Include(i => i.ItemDefinition)
+ .FirstOrDefaultAsync(i => i.Id == quiverItemId.Value, ct);
+
+ if (quiverItem?.ItemDefinition == null) return null;
+
+ // Check if it's a quiver container
+ if (quiverItem.ItemDefinition.QuiverCapacity > 0)
+ {
+ // Quiver container - find ammunition in slots
+ var ammoSlot = await db.DungeonQuiverAmmoSlots
+ .Include(s => s.ItemDefinition)
+ .Where(s => s.QuiverCharacterItemId == quiverItemId.Value && s.Quantity > 0)
+ .OrderBy(s => s.SlotIndex)
+ .FirstOrDefaultAsync(ct);
+
+ if (ammoSlot?.ItemDefinition == null) return null;
+
+ // Consume one
+ ammoSlot.Quantity--;
+ await db.SaveChangesAsync(ct);
+
+ return ammoSlot.ItemDefinition;
+ }
+ else
+ {
+ // Direct ammo equip (stack of arrows in quiver slot)
+ if (quiverItem.Quantity <= 0) return null;
+
+ quiverItem.Quantity--;
+ if (quiverItem.Quantity <= 0)
+ {
+ // Unequip when empty
+ session.Character.EquippedQuiver = null;
+ db.DungeonCharacterItems.Remove(quiverItem);
+ }
+ await db.SaveChangesAsync(ct);
+
+ return quiverItem.ItemDefinition;
+ }
+ }
+
///
/// Handle portal use - instant extraction when player clicks/walks into portal
///
@@ -2965,8 +3200,10 @@ public sealed partial class DungeonHandler : IClientMessageHandler
DungeonEquipmentSlot.Legs => "legs",
DungeonEquipmentSlot.Boots => "boots",
DungeonEquipmentSlot.Gloves => "gloves",
- DungeonEquipmentSlot.Accessory1 => "ring1",
- DungeonEquipmentSlot.Accessory2 => "ring2",
+ DungeonEquipmentSlot.Necklace => "necklace",
+ DungeonEquipmentSlot.Ring1 => "ring1",
+ DungeonEquipmentSlot.Ring2 => "ring2",
+ DungeonEquipmentSlot.Quiver => "quiver",
_ => "unknown"
};
@@ -3126,8 +3363,10 @@ public sealed partial class DungeonHandler : IClientMessageHandler
"legs" => DungeonEquipmentSlot.Legs,
"boots" => DungeonEquipmentSlot.Boots,
"gloves" => DungeonEquipmentSlot.Gloves,
- "ring1" => DungeonEquipmentSlot.Accessory1,
- "ring2" => DungeonEquipmentSlot.Accessory2,
+ "necklace" => DungeonEquipmentSlot.Necklace,
+ "ring1" => DungeonEquipmentSlot.Ring1,
+ "ring2" => DungeonEquipmentSlot.Ring2,
+ "quiver" => DungeonEquipmentSlot.Quiver,
_ => (DungeonEquipmentSlot?)null
};
@@ -3265,7 +3504,7 @@ public sealed partial class DungeonHandler : IClientMessageHandler
{
ItemType.Weapon => item.EquipSlot ?? DungeonEquipmentSlot.MainHand,
ItemType.Armor => item.EquipSlot ?? DungeonEquipmentSlot.Chest,
- ItemType.Accessory => DungeonEquipmentSlot.Accessory1,
+ ItemType.Accessory => DungeonEquipmentSlot.Ring1, // Default to Ring1, but check if already equipped
_ => null
};
}
@@ -4295,4 +4534,10 @@ public class StashWithdrawRequest
public int Quantity { get; set; } = 1;
}
+public class FireProjectileInput
+{
+ public float DirectionX { get; set; }
+ public float DirectionY { get; set; }
+}
+
#endregion
diff --git a/Game/Dungeon/DungeonSimulation.cs b/Game/Dungeon/DungeonSimulation.cs
index 66ddc1d..70fda2a 100644
--- a/Game/Dungeon/DungeonSimulation.cs
+++ b/Game/Dungeon/DungeonSimulation.cs
@@ -488,6 +488,7 @@ public partial class DungeonSimulation
var projectile = new ProjectileInstance
{
Id = GetNextProjectileId(),
+ SourceType = ProjectileSource.Mob,
SourceMobId = mob.Id,
AbilityId = ability.Id,
X = mob.X,
@@ -498,9 +499,11 @@ public partial class DungeonSimulation
Damage = ability.BaseDamage,
DamageTypeKey = ability.DamageTypeKey,
AoeRadius = ability.AoeRadius,
- SpriteKey = ability.ProjectileSprite ?? "projectile_default"
+ SpriteKey = ability.ProjectileSprite ?? "projectile_default",
+ CanHitPlayers = true,
+ CanHitMobs = false
};
-
+
// Calculate direction
float dx = target.X - mob.X;
float dy = target.Y - mob.Y;
@@ -510,56 +513,135 @@ public partial class DungeonSimulation
projectile.VelocityX = (dx / dist) * ability.ProjectileSpeed;
projectile.VelocityY = (dy / dist) * ability.ProjectileSpeed;
}
-
+
Projectiles[projectile.Id] = projectile;
}
private void UpdateProjectiles()
{
var toRemove = new List();
-
+
foreach (var projectile in Projectiles.Values)
{
// Move projectile
projectile.X += projectile.VelocityX * TickDelta;
projectile.Y += projectile.VelocityY * TickDelta;
projectile.DistanceTraveled += MathF.Sqrt(
- projectile.VelocityX * projectile.VelocityX +
+ projectile.VelocityX * projectile.VelocityX +
projectile.VelocityY * projectile.VelocityY) * TickDelta;
-
+
// Check max range
- if (projectile.DistanceTraveled > 500)
+ if (projectile.MaxRange > 0 && projectile.DistanceTraveled > projectile.MaxRange)
{
toRemove.Add(projectile.Id);
continue;
}
-
- // Check collision with players
- foreach (var player in Players.Values.Where(p => p.IsAlive))
+
+ // Handle player projectiles hitting mobs
+ if (projectile.SourceType == ProjectileSource.Player && projectile.CanHitMobs)
{
- if (Distance(projectile.X, projectile.Y, player.X, player.Y) < 20)
+ foreach (var mob in Mobs.Values.Where(m => m.IsAlive))
{
- // Hit!
- if (projectile.AoeRadius > 0)
+ if (Distance(projectile.X, projectile.Y, mob.X, mob.Y) < 20)
{
- // AOE explosion
- ProcessAoeAbilityAtLocation(projectile, projectile.X, projectile.Y);
- }
- else
- {
- // Single target
- if (Mobs.TryGetValue(projectile.SourceMobId, out var sourceMob))
+ // Get player instance for damage calculation
+ PlayerInstance? sourcePlayer = null;
+ if (Players.TryGetValue(projectile.SourcePlayerId, out var playerInst))
{
- var result = CombatCalculator.CalculateMobToPlayerDamage(
- sourceMob, player, projectile.DamageTypeKey, projectile.Damage, player.Resistances);
- ApplyDamageToPlayer(sourceMob, player, result.FinalDamage, projectile.DamageTypeKey, result.WasResisted, result.WasWeakness);
+ sourcePlayer = playerInst;
}
+
+ // Apply damage with resistances
+ int finalDamage = projectile.Damage;
+ if (sourcePlayer != null)
+ {
+ var result = CombatCalculator.CalculatePlayerToMobDamage(
+ sourcePlayer, mob, projectile.DamageTypeKey, projectile.Damage);
+ finalDamage = result.FinalDamage;
+
+ _pendingDamageEvents.Add(new DamageEvent
+ {
+ SourceType = EntityType.Player,
+ SourceId = (int)sourcePlayer.CharacterId,
+ TargetType = EntityType.Mob,
+ TargetId = mob.Id,
+ Damage = result.FinalDamage,
+ DamageTypeKey = projectile.DamageTypeKey,
+ WasResisted = result.WasResisted,
+ WasWeakness = result.WasWeakness
+ });
+ }
+ else
+ {
+ // Fallback if player not found (they disconnected)
+ _pendingDamageEvents.Add(new DamageEvent
+ {
+ SourceType = EntityType.Player,
+ SourceId = (int)projectile.SourcePlayerId,
+ TargetType = EntityType.Mob,
+ TargetId = mob.Id,
+ Damage = projectile.Damage,
+ DamageTypeKey = projectile.DamageTypeKey
+ });
+ }
+
+ mob.Health -= finalDamage;
+
+ // Try to recover ammunition
+ // TODO: Implement arrow recovery - add to LootService or mob's carried items
+ // For now, skip recovery - will implement in loot system integration
+
+ // Check if mob died
+ if (mob.Health <= 0 && mob.IsAlive)
+ {
+ mob.IsAlive = false;
+ _pendingDeathEvents.Add(new DeathEvent
+ {
+ EntityType = EntityType.Mob,
+ EntityId = mob.Id,
+ EntityName = mob.Name,
+ KillerType = EntityType.Player,
+ KillerId = (int)projectile.SourcePlayerId,
+ KillerName = sourcePlayer?.CharacterName ?? "Unknown",
+ XpReward = 0 // Will be calculated in handler
+ });
+ }
+
+ toRemove.Add(projectile.Id);
+ break;
}
- toRemove.Add(projectile.Id);
- break;
}
}
-
+
+ // Handle mob projectiles hitting players
+ if (projectile.SourceType == ProjectileSource.Mob && projectile.CanHitPlayers)
+ {
+ foreach (var player in Players.Values.Where(p => p.IsAlive))
+ {
+ if (Distance(projectile.X, projectile.Y, player.X, player.Y) < 20)
+ {
+ // Hit!
+ if (projectile.AoeRadius > 0)
+ {
+ // AOE explosion
+ ProcessAoeAbilityAtLocation(projectile, projectile.X, projectile.Y);
+ }
+ else
+ {
+ // Single target
+ if (Mobs.TryGetValue(projectile.SourceMobId, out var sourceMob))
+ {
+ var result = CombatCalculator.CalculateMobToPlayerDamage(
+ sourceMob, player, projectile.DamageTypeKey, projectile.Damage, player.Resistances);
+ ApplyDamageToPlayer(sourceMob, player, result.FinalDamage, projectile.DamageTypeKey, result.WasResisted, result.WasWeakness);
+ }
+ }
+ toRemove.Add(projectile.Id);
+ break;
+ }
+ }
+ }
+
// Check wall collision
if (!CanMoveTo(projectile.X, projectile.Y))
{
@@ -570,7 +652,7 @@ public partial class DungeonSimulation
toRemove.Add(projectile.Id);
}
}
-
+
foreach (var id in toRemove)
{
Projectiles.TryRemove(id, out _);
diff --git a/Game/Dungeon/ProjectileInstance.cs b/Game/Dungeon/ProjectileInstance.cs
index 0dd32ae..00be656 100644
--- a/Game/Dungeon/ProjectileInstance.cs
+++ b/Game/Dungeon/ProjectileInstance.cs
@@ -1,31 +1,63 @@
namespace GameServer.Dungeon;
+public enum ProjectileSource
+{
+ Mob,
+ Player
+}
+
///
/// A projectile in flight
///
public class ProjectileInstance
{
public int Id { get; set; }
- public int SourceMobId { get; set; }
- public int AbilityId { get; set; }
-
+
+ // Source tracking
+ public ProjectileSource SourceType { get; set; }
+ public int SourceMobId { get; set; } // Used when SourceType = Mob
+ public ulong SourcePlayerId { get; set; } // Used when SourceType = Player
+ public int AbilityId { get; set; } // For mob abilities
+
public float X { get; set; }
public float Y { get; set; }
public float VelocityX { get; set; }
public float VelocityY { get; set; }
public float Speed { get; set; }
-
+
public float TargetX { get; set; }
public float TargetY { get; set; }
-
+
public int Damage { get; set; }
public string DamageTypeKey { get; set; } = "physical";
public float AoeRadius { get; set; }
-
+
public float DistanceTraveled { get; set; }
public float MaxRange { get; set; } = 500f;
-
+
public string SpriteKey { get; set; } = "projectile_default";
+
+ // Player projectile properties
+ ///
+ /// Item definition ID of the ammunition used (for recovery)
+ /// Null if not recoverable (mob projectiles, throwables that don't recover)
+ ///
+ public int? AmmunitionItemDefinitionId { get; set; }
+
+ ///
+ /// Recovery chance (0.0 to 1.0) for this specific projectile
+ ///
+ public float RecoveryChance { get; set; } = 0.05f;
+
+ ///
+ /// Whether this projectile can hit players (for PvP)
+ ///
+ public bool CanHitPlayers { get; set; } = false;
+
+ ///
+ /// Whether this projectile can hit mobs
+ ///
+ public bool CanHitMobs { get; set; } = true;
}
///
diff --git a/Migrations/20260118024550_ProjectileSystemAndEquipmentSlots.Designer.cs b/Migrations/20260118024550_ProjectileSystemAndEquipmentSlots.Designer.cs
new file mode 100644
index 0000000..6bfa606
--- /dev/null
+++ b/Migrations/20260118024550_ProjectileSystemAndEquipmentSlots.Designer.cs
@@ -0,0 +1,3177 @@
+//
+using System;
+using DataServer.Data;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+
+#nullable disable
+
+namespace SystemRevivalServer.Migrations
+{
+ [DbContext(typeof(GameDbContext))]
+ [Migration("20260118024550_ProjectileSystemAndEquipmentSlots")]
+ partial class ProjectileSystemAndEquipmentSlots
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "9.0.10")
+ .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
+ MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
+
+ modelBuilder.Entity("DataServer.Data.Account", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("BannedUntil")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CreatedAt")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("datetime(6)")
+ .HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
+
+ b.Property("Email")
+ .HasMaxLength(255)
+ .HasColumnType("varchar(255)");
+
+ b.Property("IsBanned")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("PasswordHash")
+ .IsRequired()
+ .HasColumnType("varbinary(64)");
+
+ b.Property("PasswordSalt")
+ .IsRequired()
+ .HasColumnType("varbinary(32)");
+
+ b.Property("Role")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int")
+ .HasDefaultValue(0);
+
+ b.Property("UpdatedAt")
+ .ValueGeneratedOnAddOrUpdate()
+ .HasColumnType("datetime(6)")
+ .HasDefaultValueSql("CURRENT_TIMESTAMP(6)");
+
+ MySqlPropertyBuilderExtensions.UseMySqlComputedColumn(b.Property("UpdatedAt"));
+
+ b.Property("Username")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("Email")
+ .IsUnique();
+
+ b.HasIndex("Username")
+ .IsUnique();
+
+ b.ToTable("accounts", (string)null);
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.BuilderRoomTemplate", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("AllowMirror")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("AllowRotation")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Biome")
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("ConnectionPointsJson")
+ .HasColumnType("json");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("ExitPortalX")
+ .HasColumnType("int");
+
+ b.Property("ExitPortalY")
+ .HasColumnType("int");
+
+ b.Property("Height")
+ .HasColumnType("int");
+
+ b.Property("IsEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ItemSpawnsJson")
+ .HasColumnType("json");
+
+ b.Property("MaxConnections")
+ .HasColumnType("int");
+
+ b.Property("MaxTier")
+ .HasColumnType("int");
+
+ b.Property("MinConnections")
+ .HasColumnType("int");
+
+ b.Property("MinTier")
+ .HasColumnType("int");
+
+ b.Property("MobSpawnsJson")
+ .HasColumnType("json");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("ObjectPlacementsJson")
+ .HasColumnType("json");
+
+ b.Property("PlayerSpawnX")
+ .HasColumnType("int");
+
+ b.Property("PlayerSpawnY")
+ .HasColumnType("int");
+
+ b.Property("Tags")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("TileGridJson")
+ .HasColumnType("json");
+
+ b.Property("TilePlacementsJson")
+ .HasColumnType("json");
+
+ b.Property("Type")
+ .HasColumnType("int");
+
+ b.Property("UpdatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Weight")
+ .HasColumnType("int");
+
+ b.Property("Width")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("builder_room_templates");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.ClientAsset", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("AssetType")
+ .HasColumnType("int");
+
+ b.Property("CdnPath")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("FileHash")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("FilePath")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("FileSize")
+ .HasColumnType("bigint");
+
+ b.Property("IsEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsRequired")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("MinClientVersion")
+ .HasMaxLength(16)
+ .HasColumnType("varchar(16)");
+
+ b.Property("UpdatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("client_assets");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DamageResistanceType", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("Color")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("varchar(16)");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Description")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("DisplayName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("IconPath")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("IsEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Key")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("SortOrder")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.ToTable("damage_resistance_types");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DeathChest", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("DungeonInstanceId")
+ .HasColumnType("char(36)");
+
+ b.Property("EmptiedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("GoldAmount")
+ .HasColumnType("bigint");
+
+ b.Property("IsEmpty")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("OwnerCharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("VictimCharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("VictimMobDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("X")
+ .HasColumnType("float");
+
+ b.Property("Y")
+ .HasColumnType("float");
+
+ b.HasKey("Id");
+
+ b.HasIndex("OwnerCharacterId");
+
+ b.HasIndex("VictimCharacterId");
+
+ b.ToTable("dungeon_death_chests");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DeathChestItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("DeathChestId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("IsTaken")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("Quantity")
+ .HasColumnType("int");
+
+ b.Property("SlotIndex")
+ .HasColumnType("int");
+
+ b.Property("TakenAt")
+ .HasColumnType("datetime(6)");
+
+ b.HasKey("Id");
+
+ b.HasIndex("DeathChestId");
+
+ b.HasIndex("ItemDefinitionId");
+
+ b.ToTable("dungeon_death_chest_items");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonBeltItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("CharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("InventorySlotIndex")
+ .HasColumnType("int");
+
+ b.Property("SlotIndex")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CharacterId");
+
+ b.ToTable("dungeon_belt_items");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacter", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("AccountId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("BossesKilled")
+ .HasColumnType("int");
+
+ b.Property("CreatedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CurrentHealth")
+ .HasColumnType("int");
+
+ b.Property("CurrentMana")
+ .HasColumnType("int");
+
+ b.Property("Dexterity")
+ .HasColumnType("int");
+
+ b.Property("DungeonsCompleted")
+ .HasColumnType("int");
+
+ b.Property("Endurance")
+ .HasColumnType("int");
+
+ b.Property("EquippedBoots")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedChest")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedGloves")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedHead")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedLegs")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedNecklace")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedOffhand")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedQuiver")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedRing1")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedRing2")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquippedWeapon")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("Experience")
+ .HasColumnType("bigint");
+
+ b.Property("Gold")
+ .HasColumnType("bigint");
+
+ b.Property("Intelligence")
+ .HasColumnType("int");
+
+ b.Property("IsDeleted")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("LastPlayedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("Level")
+ .HasColumnType("int");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("PlayersKilled")
+ .HasColumnType("int");
+
+ b.Property("ResistancesJson")
+ .IsRequired()
+ .HasMaxLength(1024)
+ .HasColumnType("varchar(1024)");
+
+ b.Property("Strength")
+ .HasColumnType("int");
+
+ b.Property("TotalDeaths")
+ .HasColumnType("int");
+
+ b.Property("TotalKills")
+ .HasColumnType("int");
+
+ b.Property("UnspentStatPoints")
+ .HasColumnType("int");
+
+ b.Property("Wisdom")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AccountId");
+
+ b.ToTable("dungeon_characters");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterCraftingSkill", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("CharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("Experience")
+ .HasColumnType("bigint");
+
+ b.Property("Level")
+ .HasColumnType("int");
+
+ b.Property("SkillType")
+ .HasColumnType("int");
+
+ b.Property("TotalItemsCrafted")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CharacterId");
+
+ b.ToTable("dungeon_character_crafting_skills");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("AcquiredAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("CraftedItemId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("EquipSlot")
+ .HasColumnType("int");
+
+ b.Property("IsEquipped")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("Quantity")
+ .HasColumnType("int");
+
+ b.Property("SlotIndex")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CharacterId");
+
+ b.HasIndex("CraftedItemId");
+
+ b.HasIndex("ItemDefinitionId");
+
+ b.ToTable("dungeon_character_items");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterItemCraftedLink", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("CharacterItemId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("CraftedItemId")
+ .HasColumnType("bigint unsigned");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CharacterItemId");
+
+ b.HasIndex("CraftedItemId");
+
+ b.ToTable("dungeon_character_item_crafted_link");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCharacterKnownRecipe", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("CharacterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("DiscoveredAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("RecipeId")
+ .HasColumnType("int");
+
+ b.Property("TimesCrafted")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CharacterId");
+
+ b.HasIndex("RecipeId");
+
+ b.ToTable("dungeon_character_known_recipes");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftedItem", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint unsigned");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("BaseItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("CraftedAt")
+ .HasColumnType("datetime(6)");
+
+ b.Property("CrafterId")
+ .HasColumnType("bigint unsigned");
+
+ b.Property("CrafterName")
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("CraftingLevelAtCreation")
+ .HasColumnType("int");
+
+ b.Property("CustomName")
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("QualityRating")
+ .HasColumnType("int");
+
+ b.Property("RecipeId")
+ .HasColumnType("int");
+
+ b.Property("RollHistoryJson")
+ .HasMaxLength(1024)
+ .HasColumnType("varchar(1024)");
+
+ b.Property("RolledBonusArmor")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusDexterity")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusEndurance")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusHealAmount")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusHealth")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusIntelligence")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusMagicResist")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusMana")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusManaRestore")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusMaxDamage")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusMinDamage")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusStrength")
+ .HasColumnType("int");
+
+ b.Property("RolledBonusWisdom")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("BaseItemDefinitionId");
+
+ b.HasIndex("CrafterId");
+
+ b.HasIndex("RecipeId");
+
+ b.ToTable("dungeon_crafted_items");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipe", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("BaseXp")
+ .HasColumnType("int");
+
+ b.Property("BonusOutputChanceAtMinLevel")
+ .HasColumnType("float");
+
+ b.Property("BonusOutputItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("BonusOutputMaxLevel")
+ .HasColumnType("int");
+
+ b.Property("BonusOutputMinLevel")
+ .HasColumnType("int");
+
+ b.Property("BonusOutputQuantity")
+ .HasColumnType("int");
+
+ b.Property("Description")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("HasStatRolls")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsBaseRecipe")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property("OutputItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("OutputQuantity")
+ .HasColumnType("int");
+
+ b.Property("PossibleStatsJson")
+ .HasMaxLength(1024)
+ .HasColumnType("varchar(1024)");
+
+ b.Property("RequiredLevel")
+ .HasColumnType("int");
+
+ b.Property("SkillType")
+ .HasColumnType("int");
+
+ b.Property("Tier")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("OutputItemDefinitionId");
+
+ b.ToTable("dungeon_crafting_recipes");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonCraftingRecipeIngredient", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("ItemDefinitionId")
+ .HasColumnType("int");
+
+ b.Property("Quantity")
+ .HasColumnType("int");
+
+ b.Property("RecipeId")
+ .HasColumnType("int");
+
+ b.Property("SlotOrder")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("ItemDefinitionId");
+
+ b.HasIndex("RecipeId");
+
+ b.ToTable("dungeon_crafting_recipe_ingredients");
+ });
+
+ modelBuilder.Entity("DataServer.Data.Entities.DungeonItemDefinition", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("int");
+
+ MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property("Id"));
+
+ b.Property("AmmunitionType")
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("Armor")
+ .HasColumnType("int");
+
+ b.Property("ArrowRecoveryChance")
+ .HasColumnType("float");
+
+ b.Property("AttackRange")
+ .HasColumnType("float");
+
+ b.Property("BonusDexterity")
+ .HasColumnType("int");
+
+ b.Property("BonusEndurance")
+ .HasColumnType("int");
+
+ b.Property("BonusHealth")
+ .HasColumnType("int");
+
+ b.Property("BonusIntelligence")
+ .HasColumnType("int");
+
+ b.Property("BonusMana")
+ .HasColumnType("int");
+
+ b.Property("BonusStrength")
+ .HasColumnType("int");
+
+ b.Property("BonusWisdom")
+ .HasColumnType("int");
+
+ b.Property("BuffDuration")
+ .HasColumnType("int");
+
+ b.Property("BuffResistancesJson")
+ .IsRequired()
+ .HasMaxLength(1024)
+ .HasColumnType("varchar(1024)");
+
+ b.Property("DamageTypeKey")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("varchar(32)");
+
+ b.Property("Description")
+ .IsRequired()
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)");
+
+ b.Property("EquipSlot")
+ .HasColumnType("int");
+
+ b.Property("HealAmount")
+ .HasColumnType("int");
+
+ b.Property("IsEnabled")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsTeleportScroll")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("IsThrowable")
+ .HasColumnType("tinyint(1)");
+
+ b.Property("ManaRestore")
+ .HasColumnType("int");
+
+ b.Property("MaxArmor")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusDexterity")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusEndurance")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusHealth")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusIntelligence")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusMana")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusStrength")
+ .HasColumnType("int");
+
+ b.Property("MaxBonusWisdom")
+ .HasColumnType("int");
+
+ b.Property("MaxDamage")
+ .HasColumnType("int");
+
+ b.Property("MaxMaxDamage")
+ .HasColumnType("int");
+
+ b.Property("MaxMinDamage")
+ .HasColumnType("int");
+
+ b.Property("MaxStack")
+ .HasColumnType("int");
+
+ b.Property("MinArmor")
+ .HasColumnType("int");
+
+ b.Property("MinBonusDexterity")
+ .HasColumnType("int");
+
+ b.Property("MinBonusEndurance")
+ .HasColumnType("int");
+
+ b.Property("MinBonusHealth")
+ .HasColumnType("int");
+
+ b.Property("MinBonusIntelligence")
+ .HasColumnType("int");
+
+ b.Property("MinBonusMana")
+ .HasColumnType("int");
+
+ b.Property("MinBonusStrength")
+ .HasColumnType("int");
+
+ b.Property("MinBonusWisdom")
+ .HasColumnType("int");
+
+ b.Property("MinDamage")
+ .HasColumnType("int");
+
+ b.Property("MinMaxDamage")
+ .HasColumnType("int");
+
+ b.Property("MinMinDamage")
+ .HasColumnType("int");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("varchar(64)");
+
+ b.Property