Resistances + Dmg Types

This commit is contained in:
dingo
2025-12-26 11:07:56 -05:00
parent fd056692df
commit 724dd5b7c5
9 changed files with 2394 additions and 52 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,55 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class ResistancedmgType : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "DamageTypeKey",
table: "dungeon_mob_definitions",
type: "varchar(32)",
maxLength: 32,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<int>(
name: "BuffDuration",
table: "dungeon_item_definitions",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "BuffResistancesJson",
table: "dungeon_item_definitions",
type: "varchar(1024)",
maxLength: 1024,
nullable: false,
defaultValue: "")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DamageTypeKey",
table: "dungeon_mob_definitions");
migrationBuilder.DropColumn(
name: "BuffDuration",
table: "dungeon_item_definitions");
migrationBuilder.DropColumn(
name: "BuffResistancesJson",
table: "dungeon_item_definitions");
}
}
}
+13
View File
@@ -737,6 +737,14 @@ namespace SystemRevivalServer.Migrations
b.Property<int>("BonusWisdom")
.HasColumnType("int");
b.Property<int>("BuffDuration")
.HasColumnType("int");
b.Property<string>("BuffResistancesJson")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)");
b.Property<int>("DamageType")
.HasColumnType("int");
@@ -1003,6 +1011,11 @@ namespace SystemRevivalServer.Migrations
b.Property<float>("DamagePerTier")
.HasColumnType("float");
b.Property<string>("DamageTypeKey")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("varchar(32)");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(256)