change: Rename Sash as Acce to mirror official, Support for pendant, Support for extended item proto.
parent
c74891af87
commit
7cd2260d04
|
|
@ -8,7 +8,7 @@ enum CostumeSubTypesEnum: int
|
|||
case COSTUME_HAIR = 1;
|
||||
case COSTUME_MOUNT = 2;
|
||||
case COSTUME_WEAPON = 3;
|
||||
case COSTUME_SASH = 4;
|
||||
case COSTUME_ACCE = 4;
|
||||
case COSTUME_NUM_TYPES = 5;
|
||||
|
||||
public function getLabel(): string
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ use Illuminate\Database\Eloquent\Relations\HasOne;
|
|||
* @property int $part_main
|
||||
* @property int $part_base
|
||||
* @property int $part_hair
|
||||
* @property int $part_sash
|
||||
* @property int $part_acce
|
||||
* @property int $skill_group
|
||||
* @property string|null $skill_level
|
||||
* @property int $alignment
|
||||
|
|
@ -62,6 +62,7 @@ use Illuminate\Database\Eloquent\Relations\HasOne;
|
|||
* @property-read Account $account
|
||||
* @property-read HighscoreCache|null $highscore
|
||||
* @property-read \App\Models\Game\Player\PlayerIndex $index
|
||||
*
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player query()
|
||||
|
|
@ -97,7 +98,7 @@ use Illuminate\Database\Eloquent\Relations\HasOne;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePartBase($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePartHair($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePartMain($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePartSash($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePartAcce($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player wherePlaytime($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player whereQuickslot($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player whereRandomHp($value)
|
||||
|
|
@ -114,6 +115,7 @@ use Illuminate\Database\Eloquent\Relations\HasOne;
|
|||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player whereX($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player whereY($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|Player whereZ($value)
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class Player extends Model
|
||||
|
|
|
|||
|
|
@ -41,12 +41,18 @@ return new class extends Migration
|
|||
$table->integer('applyvalue1')->nullable()->default(0);
|
||||
$table->tinyInteger('applytype2')->nullable()->default(0);
|
||||
$table->integer('applyvalue2')->nullable()->default(0);
|
||||
$table->tinyInteger('applytype3')->nullable()->default(0);
|
||||
$table->integer('applyvalue3')->nullable()->default(0);
|
||||
$table->integer('value0')->nullable()->default(0);
|
||||
$table->integer('value1')->nullable()->default(0);
|
||||
$table->integer('value2')->nullable()->default(0);
|
||||
$table->integer('value3')->nullable()->default(0);
|
||||
$table->integer('value4')->nullable()->default(0);
|
||||
$table->integer('value5')->nullable()->default(0);
|
||||
$table->integer('value6')->nullable()->default(0);
|
||||
$table->integer('value7')->nullable()->default(0);
|
||||
$table->integer('value8')->nullable()->default(0);
|
||||
$table->integer('value9')->nullable()->default(0);
|
||||
$table->tinyInteger('socket0')->nullable()->default(-1);
|
||||
$table->tinyInteger('socket1')->nullable()->default(-1);
|
||||
$table->tinyInteger('socket2')->nullable()->default(-1);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ return new class extends Migration
|
|||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('sash', function (Blueprint $table) {
|
||||
Schema::create('acce', function (Blueprint $table) {
|
||||
$table->unsignedInteger('pid');
|
||||
$table->timestamp('time')->useCurrent();
|
||||
$table->tinyInteger('x');
|
||||
|
|
@ -26,11 +26,11 @@ return new class extends Migration
|
|||
});
|
||||
|
||||
Schema::table('player', function (Blueprint $table) {
|
||||
$table->unsignedSmallInteger('part_sash')->default(0)->after('part_hair');
|
||||
$table->unsignedSmallInteger('part_acce')->default(0)->after('part_hair');
|
||||
});
|
||||
|
||||
Schema::table('player_deleted', function (Blueprint $table) {
|
||||
$table->unsignedSmallInteger('part_sash')->default(0)->after('part_hair');
|
||||
$table->unsignedSmallInteger('part_acce')->default(0)->after('part_hair');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -39,14 +39,14 @@ return new class extends Migration
|
|||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sash');
|
||||
Schema::dropIfExists('acce');
|
||||
|
||||
Schema::table('player', function (Blueprint $table) {
|
||||
$table->dropColumn('part_sash');
|
||||
$table->dropColumn('part_acce');
|
||||
});
|
||||
|
||||
Schema::table('player_deleted', function (Blueprint $table) {
|
||||
$table->dropColumn('part_sash');
|
||||
$table->dropColumn('part_acce');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('item_attr', function (Blueprint $table) {
|
||||
$table->string('pendant', 100)->after('ear');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('item_attr', function (Blueprint $table) {
|
||||
$table->dropColumn('pendant');
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue