mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-24 07:33:12 +09:00
Added ranking json log
This commit is contained in:
1 parent
d67be147f0
commit
b9913d8756
1 file changed
+11
@@ -159,6 +159,17 @@ function Ranking.give_rank(player,rank,by_player,tick)
|
|||||||
['Reason:']='No Reason'
|
['Reason:']='No Reason'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
game.write_file('ranking.json',
|
||||||
|
table.json({
|
||||||
|
tick=tick,
|
||||||
|
play_time=player.online_time,
|
||||||
|
player_name=player.name,
|
||||||
|
by_player_name=by_player_name,
|
||||||
|
new_rank=rank.name,
|
||||||
|
old_rank=old_rank.name,
|
||||||
|
power_increase=(old_rank.power-rank.power)
|
||||||
|
})..'\n'
|
||||||
|
, true, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Revert the last change to a players rank
|
--- Revert the last change to a players rank
|
||||||
|
|||||||
Reference in new issue
Block a user