Skip to content

Commit

Permalink
tmp condition script stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Hop311 committed Jan 6, 2025
1 parent 757c0a1 commit a3bd3eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions extension/src/openvic-extension/singletons/PopulationMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ Error MenuSingleton::_population_menu_update_filtered_pops() {

population_menu.workforce_distribution[pop->get_type()] += pop_size;
population_menu.religion_distribution[&pop->get_religion()] += pop_size;
population_menu.ideology_distribution += pop->get_ideology_distribution() * pop_size;
population_menu.ideology_distribution += pop->get_ideology_distribution();
population_menu.culture_distribution[&pop->get_culture()] += pop_size;
population_menu.issue_distribution += pop->get_issue_distribution() * pop_size;
population_menu.vote_distribution += pop->get_vote_distribution() * pop_size;
population_menu.issue_distribution += pop->get_issue_distribution();
population_menu.vote_distribution += pop->get_vote_distribution();
}

normalise_fixed_point_map(population_menu.workforce_distribution);
Expand Down Expand Up @@ -453,6 +453,7 @@ MenuSingleton::sort_func_t MenuSingleton::_get_population_menu_sort_func(PopSort
return [](Pop const* a, Pop const* b) -> bool {
return a->get_consciousness() < b->get_consciousness();
};
// TODO - scale by pop size when sorting by ideology, issues and votes!!!
case SORT_IDEOLOGY:
return [](Pop const* a, Pop const* b) -> bool {
return sorted_indexed_map_less_than(a->get_ideology_distribution(), b->get_ideology_distribution());
Expand Down
2 changes: 1 addition & 1 deletion game/src/Game/MusicConductor/MusicConductor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func toggle_play_pause() -> void:

func start_current_song() -> void:
_audio_stream_player.stream = _available_songs[_selected_track].song_stream
_audio_stream_player.play()
# _audio_stream_player.play()
song_started.emit(_selected_track)

# REQUIREMENTS
Expand Down

0 comments on commit a3bd3eb

Please sign in to comment.