Skip to content

Commit

Permalink
exploring systems
Browse files Browse the repository at this point in the history
fixes for when you actually encounter systems
  • Loading branch information
joonicks committed Oct 1, 2021
1 parent c1e7ef3 commit 4f9e72b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions data/modules/ExplorerClub/ExplorerClub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,22 @@ local onLeaveSystem = function(ship)
end

local onSystemExplored = function(system)
ExplorerData.systemsExplored = ExplorerData.systemsExplored + 1
if ExplorerData.systemsExplored then
ExplorerData.systemsExplored = ExplorerData.systemsExplored + 1
else
ExplorerData.systemsExplored = 1
end

if ExplorerData.systemsExplored >= 10 and ExplorerData.explorerInvite == 0 then
ExplorerData.explorerInvite = 1
end

if ExplorerData.explorerInvite == 2 and Game.player:GetEquipCountOccupied('explorer_device') > 0 then
Comms.ImportantMessage(string.interp(l.DATACOLLECTED, {longdevice=l.EXPLORER_DEVICE}), l.EXPLORERS_CLUB)
table.insert(ExplorerData.bountylist, system.path)
if ExplorerData.bountylist == nil then
ExplorerData.bountylist = {}
end
ExplorerData.bountylist[system.path] = { when = Game.time, processed = false }
end
end

Expand All @@ -224,7 +231,8 @@ local onCreateBB = function(station)
local rand = Rand.New(ad.station.seed + -2017)

-- Explorers club listed only on some stations
if (station.isHomeworld == 1 or 15 > rand:Integer(100)) then
if (true) then -- for debug
--if (station.isHomeworld == 1 or 15 > rand:Integer(100)) then
local text = l.BBS_EXPLORERS_LOCAL_CONTACT
if (station.isHomeworld == 1) then
text = l.BBS_EXPLORERS_HQ_CONTACT
Expand Down

0 comments on commit 4f9e72b

Please sign in to comment.