mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Fixed Doc Issues
This commit is contained in:
@@ -5,11 +5,11 @@ local e = defines.events -- order as per lua api as it was easier just to go dow
|
|||||||
return {
|
return {
|
||||||
Playtime = true, --- @setting Playtime If playtime is tracked for a player, play time measured in minutes
|
Playtime = true, --- @setting Playtime If playtime is tracked for a player, play time measured in minutes
|
||||||
AfkTime = true, --- @setting AfkTime If afk time is tracked for a player, play time measured in minutes, afk is once a player does nothing for 5 minutes
|
AfkTime = true, --- @setting AfkTime If afk time is tracked for a player, play time measured in minutes, afk is once a player does nothing for 5 minutes
|
||||||
DistanceTraveled = true, --- @settings DistanceTraveled If distance traveled is checked, only counts if not afk
|
DistanceTraveled = true, --- @setting DistanceTraveled If distance traveled is checked, only counts if not afk
|
||||||
MachinesRemoved = true, --- @setting MachinesRemoved If removed machines are tracked, includes marked for decon and player mined entity
|
MachinesRemoved = true, --- @setting MachinesRemoved If removed machines are tracked, includes marked for decon and player mined entity
|
||||||
OreMined = true, --- @settings OreMined If ore mined is tracked for a player, includes player mined entity but only ore,
|
OreMined = true, --- @setting OreMined If ore mined is tracked for a player, includes player mined entity but only ore,
|
||||||
DamageDealt = true, --- @settings DamageDealt If damage dealt is tracked for a player, includes any damage to entities not on the same force or neutral
|
DamageDealt = true, --- @setting DamageDealt If damage dealt is tracked for a player, includes any damage to entities not on the same force or neutral
|
||||||
Kills = true, --- @settings Kills If kills are tracked for a player, includes all kills not on same force or neutral
|
Kills = true, --- @setting Kills If kills are tracked for a player, includes all kills not on same force or neutral
|
||||||
counters = { --- @setting counters Simple statistics that just go up by one each time an event happens
|
counters = { --- @setting counters Simple statistics that just go up by one each time an event happens
|
||||||
MachinesBuilt = e.on_built_entity,
|
MachinesBuilt = e.on_built_entity,
|
||||||
MapTagsMade = e.on_chart_tag_added,
|
MapTagsMade = e.on_chart_tag_added,
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ end)
|
|||||||
|
|
||||||
--- When player data loads tell the player if the load had failed previously
|
--- When player data loads tell the player if the load had failed previously
|
||||||
PlayerData:on_load(function(player_name, player_data)
|
PlayerData:on_load(function(player_name, player_data)
|
||||||
if not player_data or not player_data.valid then return end
|
if not player_data or player_data.valid == false then return end
|
||||||
local existing_data = PlayerData:get(player_name)
|
local existing_data = PlayerData:get(player_name)
|
||||||
if existing_data and existing_data.valid == false then
|
if existing_data and existing_data.valid == false then
|
||||||
game.players[player_name].print{'expcore-data.data-restore'}
|
game.players[player_name].print{'expcore-data.data-restore'}
|
||||||
|
|||||||
Reference in New Issue
Block a user