Projectile handling

This commit is contained in:
dingo
2026-01-19 10:46:37 -05:00
parent f5a5d54ae4
commit 11628617ae
8 changed files with 3347 additions and 9 deletions
@@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class AddLinearProjectileProperties : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsLinearProjectile",
table: "dungeon_item_definitions",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "ProjectileBackFrame",
table: "dungeon_item_definitions",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "ProjectileFrontFrame",
table: "dungeon_item_definitions",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsLinearProjectile",
table: "dungeon_item_definitions");
migrationBuilder.DropColumn(
name: "ProjectileBackFrame",
table: "dungeon_item_definitions");
migrationBuilder.DropColumn(
name: "ProjectileFrontFrame",
table: "dungeon_item_definitions");
}
}
}