Never worked with lua before, first try.

File in question data_2.pack

script\campaign\wh2_encounters_at_sea.lua

What I think vanilla version did:

Every explored treasure site got assigned...