projectile fix

This commit is contained in:
dingo
2026-01-19 11:07:24 -05:00
parent 11628617ae
commit 01a19056bb
7 changed files with 3514 additions and 32 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,60 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class ChangeProjectileFramesToCoordinates : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "ProjectileFrontFrame",
table: "dungeon_item_definitions",
newName: "ProjectileFrontY");
migrationBuilder.RenameColumn(
name: "ProjectileBackFrame",
table: "dungeon_item_definitions",
newName: "ProjectileFrontX");
migrationBuilder.AddColumn<int>(
name: "ProjectileBackX",
table: "dungeon_item_definitions",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "ProjectileBackY",
table: "dungeon_item_definitions",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ProjectileBackX",
table: "dungeon_item_definitions");
migrationBuilder.DropColumn(
name: "ProjectileBackY",
table: "dungeon_item_definitions");
migrationBuilder.RenameColumn(
name: "ProjectileFrontY",
table: "dungeon_item_definitions",
newName: "ProjectileFrontFrame");
migrationBuilder.RenameColumn(
name: "ProjectileFrontX",
table: "dungeon_item_definitions",
newName: "ProjectileBackFrame");
}
}
}
+8 -2
View File
@@ -970,10 +970,16 @@ namespace SystemRevivalServer.Migrations
.HasMaxLength(64)
.HasColumnType("varchar(64)");
b.Property<int>("ProjectileBackFrame")
b.Property<int>("ProjectileBackX")
.HasColumnType("int");
b.Property<int>("ProjectileFrontFrame")
b.Property<int>("ProjectileBackY")
.HasColumnType("int");
b.Property<int>("ProjectileFrontX")
.HasColumnType("int");
b.Property<int>("ProjectileFrontY")
.HasColumnType("int");
b.Property<int>("ProjectileRange")