projectile fix
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user