Skip to content

Commit

Permalink
suppress the output of the sprite_change message (#3910)
Browse files Browse the repository at this point in the history
We don't know what type 7 and 13 are. Type 7 looks like body palette or body color. Type 13 looks like body2
  • Loading branch information
ya4ept authored Dec 22, 2024
1 parent d1ee649 commit ac5dd5f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Network/Receive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4533,7 +4533,7 @@ sub sprite_change {
} elsif ($type == 5) {
message TF("%s changed Middle headgear to %s (%d)\n", $player, headgearName($value1), $value1), "parseMsg_statuslook";
$player->{headgear}{mid} = $value1;
} elsif ($args->{part} == 6) {
} elsif ($type == 6) {
message TF("%s changed Hair color to: %s (%d)\n", $player, $haircolors{$value1}, $value1), "parseMsg_statuslook";
$player->{hair_color} = $value1;
} elsif ($type == 9) {
Expand All @@ -4542,7 +4542,10 @@ sub sprite_change {
}
$player->{shoes} = $value1;
} elsif ($type == 12) {
message TF("%s changed Robe to: SPRITE_ROBE_ID=%d\n", $player, $value1, $value1), "parseMsg_statuslook";
message TF("%s changed Robe to: SPRITE_ROBE_ID=%d\n", $player, $value1, $value1), "parseMsg_statuslook", 2;
} elsif ($type== 7 || $type == 13) {
# Type 7 looks like body palette or body color. Type 13 looks like body2
debug sprintf("%s changed type= %d. value1=%d, value2=%d\n", $player, $type, $value1, $value2);
} else {
error TF("%s changed unknown sprite type (%d), write about it to OpenKore developer\n", $player, $type), "parseMsg_statuslook";
}
Expand Down

0 comments on commit ac5dd5f

Please sign in to comment.