From b0f9f17c84125184799612c9d16cf01c56a80c6c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 2 Jan 2022 14:16:36 -0300 Subject: Add an internal control for non-info packets send which could be repeated --- game/03_init.rpy | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/game/03_init.rpy b/game/03_init.rpy index f31540d..8398f78 100644 --- a/game/03_init.rpy +++ b/game/03_init.rpy @@ -31,24 +31,27 @@ init python: def recruitdata(t, a): return """{ "tavern": %d, - "amount": %d - }""" % (t, a) + "amount": %d, + "packet": %d + }""" % (t, a, now()) def questdata(w, q, p): return """{ "world": "%s", "quest_id": %d, - "party_id": %d - }""" % (w, q, p) + "party_id": %d, + "packet": %d + }""" % (w, q, p, now()) def battledata(u, s, a): return """{ "unit": %s, "sphere": %s, - "action": %s - }""" % (json.dumps(u), json.dumps(s), json.dumps(a)) + "action": %s, + "packet": %d + }""" % (json.dumps(u), json.dumps(s), json.dumps(a), now()) def square_composite(cid, path, ei=False): # We need to try to get rarity -- cgit v1.2.3-60-g2f50