Skip to content

Commit

Permalink
Merge pull request #70938 from Ramza13/fix-monster-player-aggro
Browse files Browse the repository at this point in the history
Fix monster player aggro
  • Loading branch information
Ramza13 authored and Procyonae committed May 20, 2024
1 parent e8f7249 commit 768b460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,7 @@ void monster::load( const JsonObject &data )
data.read( "anger", anger );
data.read( "morale", morale );
data.read( "hallucination", hallucination );
data.read( "aggro_character", aggro_character );
data.read( "fish_population", fish_population );
//for older saves convert summon time limit to lifespan end
std::optional<time_duration> summon_time_limit;
Expand Down Expand Up @@ -2623,6 +2624,7 @@ void monster::store( JsonOut &json ) const
json.member( "anger", anger );
json.member( "morale", morale );
json.member( "hallucination", hallucination );
json.member( "aggro_character", aggro_character );
if( tied_item ) {
json.member( "tied_item", *tied_item );
}
Expand Down

0 comments on commit 768b460

Please sign in to comment.