fix NPC last-hit EXP

This commit is contained in:
Martin Michelsen
2024-03-04 21:48:36 -08:00
parent 7e4bc52d99
commit b0b3bb6140
4 changed files with 11 additions and 21 deletions
+3 -6
View File
@@ -663,19 +663,16 @@ Map::Enemy::Enemy(uint16_t enemy_id, size_t source_index, size_t set_index, uint
game_flags(0),
type(type),
floor(floor),
state_flags(0),
last_hit_by_client_id(0) {
}
state_flags(0) {}
string Map::Enemy::str() const {
return string_printf("[Map::Enemy E-%hX source %zX %s%s floor=%02hhX flags=%02hhX last_hit_by_client_id=%hu]",
return string_printf("[Map::Enemy E-%hX source %zX %s%s floor=%02hhX flags=%02hhX]",
this->enemy_id,
this->source_index,
name_for_enum(this->type),
enemy_type_is_rare(this->type) ? " RARE" : "",
this->floor,
this->state_flags,
this->last_hit_by_client_id);
this->state_flags);
}
string Map::Object::str() const {