diff --git a/CHANGELOG.md b/CHANGELOG.md index 430d70224d..a52ec830c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 extra ghost slider cursor when set above the limit (instead of snapping back to the limit). Limits on the view distance by the server no longer affect the settings saved on the client. - HQX upscaling shader for people playing on low internal resolutions +- Pets can now be traded with. ### Changed - Use fluent for translations @@ -54,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Moderators and admins are no longer blocked from logging in when there are too many players. - FXAA now behaves correctly at non-1.0x internal resolutions - Pets no longer aggro on pet owners after being healed +- Pets no longer lose their intrinsic weapons/armour when loaded on login. ## [0.13.0] - 2022-07-23 diff --git a/server/src/persistence/character.rs b/server/src/persistence/character.rs index 508f8bed60..bde05d00c7 100644 --- a/server/src/persistence/character.rs +++ b/server/src/persistence/character.rs @@ -349,7 +349,7 @@ pub fn load_character_list(player_uuid_: &str, connection: &Connection) -> Chara Ok(CharacterItem { character: char, body: char_body, - inventory: Inventory::with_loadout_humanoid(loadout), + inventory: Inventory::with_loadout(loadout, char_body), }) }) .collect() diff --git a/server/src/state_ext.rs b/server/src/state_ext.rs index b4d5891139..7444cc3d86 100644 --- a/server/src/state_ext.rs +++ b/server/src/state_ext.rs @@ -26,7 +26,7 @@ use common::{ resources::{Time, TimeOfDay}, slowjob::SlowJobPool, uid::{Uid, UidAllocator}, - ViewDistances, + LoadoutBuilder, ViewDistances, }; use common_net::{ msg::{CharacterInfo, PlayerListUpdate, PresenceKind, ServerGeneral}, @@ -651,7 +651,10 @@ impl StateExt for State { comp::SkillSet::default(), Some(comp::Health::new(body, DEFAULT_PET_HEALTH_LEVEL)), Poise::new(body), - Inventory::with_empty(), + Inventory::with_loadout( + LoadoutBuilder::from_default(&body).build(), + body, + ), body, ) .with(comp::Scale(1.0))