diff --git a/modules/ExpGamingCore/Role/control.lua b/modules/ExpGamingCore/Role/control.lua index 783c6a96..644ea30d 100644 --- a/modules/ExpGamingCore/Role/control.lua +++ b/modules/ExpGamingCore/Role/control.lua @@ -390,6 +390,7 @@ function Role._prototype:add_player(player,by_player,batch) if not global.roles[self.name] then global.roles[self.name] = {} end if not global.players[player.index] then global.players[player.index] = {} end local highest = Role.get_highest(player) or Role.meta.default + for _,player_index in pairs(global.roles[self.name]) do if player_index == player.index then return end end table.insert(global.roles[self.name],player.index) table.insert(global.players[player.index],self.name) script.raise_event(role_change_event_id,{ diff --git a/modules/ExpGamingInfo/Science/control.lua b/modules/ExpGamingInfo/Science/control.lua index 411b3f17..0fa25bdc 100644 --- a/modules/ExpGamingInfo/Science/control.lua +++ b/modules/ExpGamingInfo/Science/control.lua @@ -44,14 +44,10 @@ ThisModule.Gui = Gui.left{ tooltip={'ExpGamingInfo-Science.tooltip'}, draw=function(frame) local player = Game.get_player(frame.player_index) - log(serpent.line(global)) - log(serpent.line(global[player.force.name])) if not global[player.force.name] then verbose('Added Science Global for: '..player.force.name) global[player.force.name] = table.deepcopy(global._base) end - log(serpent.line(global)) - log(serpent.line(global[player.force.name])) force_data = global[player.force.name] frame.caption = {'ExpGamingInfo-Science.name'} frame.add{