More direct comments

This commit is contained in:
juliancoffee 2024-02-04 18:37:15 +02:00
parent 0d69a258b1
commit 7b5d9e1eac
3 changed files with 3 additions and 3 deletions

View File

@ -522,7 +522,7 @@ pub fn handle_possess(server: &mut Server, possessor_uid: Uid, possessee_uid: Ui
character: ecs.read_storage::<comp::Stats>().get(possessee).map(|s| {
msg::CharacterInfo {
name: s.name.clone(),
// NOTE: hack, read docs for humanoid_gender() for more
// NOTE: hack, read docs on body::Gender for more
gender: s.original_body.humanoid_gender(),
}
}),

View File

@ -724,7 +724,7 @@ impl StateExt for State {
self.notify_players(ServerGeneral::PlayerListUpdate(
PlayerListUpdate::SelectedCharacter(player_uid, CharacterInfo {
name: String::from(&stats.name),
// NOTE: hack, read docs for humanoid_gender() for more
// NOTE: hack, read docs on body::Gender for more
gender: stats.original_body.humanoid_gender(),
}),
));

View File

@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys {
player_alias: player.alias.clone(),
character: stats.map(|stats| CharacterInfo {
name: stats.name.clone(),
// NOTE: hack, read docs for humanoid_gender()
// NOTE: hack, read docs for body::Gender for more
gender: stats.original_body.humanoid_gender(),
}),
uuid: player.uuid(),