Skip to content

Commit

Permalink
icons not random
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemrav committed Nov 20, 2024
1 parent a30813e commit 29155d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ PackedInt32Array MapItemSingleton::get_rgo_icons(){
ProvinceDefinition const* prov = &prov_inst->get_province_definition();
if(prov->is_water()) continue; //billboards dont appear over water, skip

icons.push_back(prov_inst->get_rgo_good()->get_index());
icons.push_back(prov_inst->get_rgo_good()->get_index()+1);
}

return icons;
Expand Down
6 changes: 2 additions & 4 deletions game/src/Game/GameSession/BillboardManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,10 @@ func set_province_billboards(display:String = ""):
elif display == "Focus":
image_index = 6
#TODO: either empty check the icons array and/or fill this out

print(icons)
for i in capitals_begin_index-1:
var im = image_index
multimesh.set_instance_custom_data(i,Color(
#image_index,r(frames[im]),visibility,0
image_index,frames[icons[i]],visibility,0
image_index,icons[i],visibility,0
))

func to_map_coords(positions:PackedVector2Array) -> PackedVector3Array:
Expand Down

0 comments on commit 29155d2

Please sign in to comment.