From d38a53c55abae9d574a3a17adee57ff08fc8ace9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 18 Jul 2023 22:35:22 -0300 Subject: Disable 'link account' button on the homeworld (API rejects it) --- game/soul.rpy | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/game/soul.rpy b/game/soul.rpy index b2be1bf..ab12e46 100644 --- a/game/soul.rpy +++ b/game/soul.rpy @@ -261,15 +261,17 @@ screen accountdata(): textbutton _("Link Account"): background Frame("gui/frame.png", 0, 0) xysize (200, 40) - ## Maybe disable the button if it is the home world? - ## That would be a soft-fix, as API may or may not - ## accept such change. Similar to how M+ deals with col - action Return(["link", srv]) + ## You cannot *link* a new homeworld (exploit) + ## Contact staff if you need to. + if mySoul["home"] == srv["Name"]: + action None + else: + action Return(["link", srv]) tooltip _("Links an external account to Vault") textbutton _("Unlink"): background Frame("gui/frame.png", 0, 0) xysize (200, 40) - ## FIXME: Omit this option for tmwAthena? + ## FIXME: Omit this option for tmwAthena? Homeworld? if srv["Type"] != "tmwathena" or True: action Return(["unlink", srv]) else: -- cgit v1.2.3-60-g2f50