summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-01-02 14:16:36 -0300
committerJesusaves <cpntb1@ymail.com>2022-01-02 14:16:36 -0300
commitb0f9f17c84125184799612c9d16cf01c56a80c6c (patch)
tree53f44ec9c748e87f4ece3649463745105e106d38
parent6f7020fa2da4a536f5ec0eefe0effe7157571028 (diff)
downloadclient-b0f9f17c84125184799612c9d16cf01c56a80c6c.tar.gz
client-b0f9f17c84125184799612c9d16cf01c56a80c6c.tar.bz2
client-b0f9f17c84125184799612c9d16cf01c56a80c6c.tar.xz
client-b0f9f17c84125184799612c9d16cf01c56a80c6c.zip
Add an internal control for non-info packets send which could be repeated
-rw-r--r--game/03_init.rpy15
1 files 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