summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-07-18 22:35:22 -0300
committerJesusaves <cpntb1@ymail.com>2023-07-18 22:35:22 -0300
commitd38a53c55abae9d574a3a17adee57ff08fc8ace9 (patch)
tree8edf7138f00202fb6d0b57432cce13b54df02f1b
parent9545d544f26a6086c1449fa153275efdb055bf7d (diff)
downloadrenpy-d38a53c55abae9d574a3a17adee57ff08fc8ace9.tar.gz
renpy-d38a53c55abae9d574a3a17adee57ff08fc8ace9.tar.bz2
renpy-d38a53c55abae9d574a3a17adee57ff08fc8ace9.tar.xz
renpy-d38a53c55abae9d574a3a17adee57ff08fc8ace9.zip
Disable 'link account' button on the homeworld (API rejects it)
-rw-r--r--game/soul.rpy12
1 files 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: