feat(city): add player marketplace, mission journal, character customization and presence
- Player-to-player marketplace with listings, buying and selling - Mission system with progress tracking and money rewards - Character appearance customization (skin, hair, face, beard, accessory) - Multiplayer presence feed showing nearby citizens in near-real-time - Admin world dashboard with live platform metrics - Bus and train transportation with temporary ride state - Mobile joystick controls and minimap HUD - Education bonus applied to work salary
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\Building;
|
||||
use App\Models\Character;
|
||||
use App\Models\City;
|
||||
use App\Models\Job;
|
||||
use App\Models\Mission;
|
||||
use App\Models\Store;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
@@ -75,6 +76,73 @@ class CityWorldSeeder extends Seeder
|
||||
],
|
||||
);
|
||||
|
||||
// Civic buildings: school and city hall.
|
||||
Building::updateOrCreate(
|
||||
['city_id' => $city->id, 'type' => 'school'],
|
||||
[
|
||||
'owner_character_id' => null,
|
||||
'name' => 'Escola Municipal',
|
||||
'pos_x' => -20,
|
||||
'pos_z' => 60,
|
||||
'width' => 16,
|
||||
'depth' => 12,
|
||||
'height' => 7,
|
||||
'is_complete' => true,
|
||||
'build_progress' => 100,
|
||||
],
|
||||
);
|
||||
Building::updateOrCreate(
|
||||
['city_id' => $city->id, 'type' => 'city_hall'],
|
||||
[
|
||||
'owner_character_id' => null,
|
||||
'name' => 'Prefeitura',
|
||||
'pos_x' => 20,
|
||||
'pos_z' => 60,
|
||||
'width' => 18,
|
||||
'depth' => 14,
|
||||
'height' => 10,
|
||||
'is_complete' => true,
|
||||
'build_progress' => 100,
|
||||
],
|
||||
);
|
||||
|
||||
Mission::updateOrCreate(
|
||||
['code' => 'exercise-5'],
|
||||
[
|
||||
'city_id' => $city->id,
|
||||
'title' => 'Shape em dia',
|
||||
'description' => 'Complete 5 séries de ginástica nas praças.',
|
||||
'metric' => 'exercise_count',
|
||||
'target' => 5,
|
||||
'reward' => 25,
|
||||
'is_active' => true,
|
||||
],
|
||||
);
|
||||
Mission::updateOrCreate(
|
||||
['code' => 'build-home'],
|
||||
[
|
||||
'city_id' => $city->id,
|
||||
'title' => 'Lar doce lar',
|
||||
'description' => 'Construa a sua primeira casa.',
|
||||
'metric' => 'buildings',
|
||||
'target' => 1,
|
||||
'reward' => 50,
|
||||
'is_active' => true,
|
||||
],
|
||||
);
|
||||
Mission::updateOrCreate(
|
||||
['code' => 'learn-20'],
|
||||
[
|
||||
'city_id' => $city->id,
|
||||
'title' => 'Estudioso',
|
||||
'description' => 'Alcance 20% de educação.',
|
||||
'metric' => 'education',
|
||||
'target' => 20,
|
||||
'reward' => 30,
|
||||
'is_active' => true,
|
||||
],
|
||||
);
|
||||
|
||||
User::query()->where('is_active', true)->where('status', '!=', User::STATUS_ACTIVE)
|
||||
->update(['status' => User::STATUS_ACTIVE]);
|
||||
User::query()->where('is_active', false)->where('status', User::STATUS_PENDING)
|
||||
|
||||
Reference in New Issue
Block a user