forked from SilverStudioGames/WTS
Bug fixes
* Fixed mods enabled persistent set chicken and the egg problem (init) * Fixed gift items referencing old variable
This commit is contained in:
parent
b1d470a1d0
commit
30687923d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -36,6 +36,7 @@ pip-log.txt
|
|||||||
*.rpymc
|
*.rpymc
|
||||||
project.json
|
project.json
|
||||||
.android.json
|
.android.json
|
||||||
|
buildinfo.py
|
||||||
|
|
||||||
# Ren'py data
|
# Ren'py data
|
||||||
game/saves/
|
game/saves/
|
||||||
|
@ -128,7 +128,7 @@ label inventory_menu(xx=150, yy=90):
|
|||||||
elif _choice == "give":
|
elif _choice == "give":
|
||||||
|
|
||||||
if current_item.type == "gift":
|
if current_item.type == "gift":
|
||||||
if getattr(renpy.store, "gave_{}_gift".format(states.active_girl)):
|
if get_character_gifted(states.active_girl):
|
||||||
show screen blktone
|
show screen blktone
|
||||||
with d3
|
with d3
|
||||||
gen "I already gave her a gift today. Don't want to spoil her too much..." ("base", xpos="far_left", ypos="head")
|
gen "I already gave her a gift today. Don't want to spoil her too much..." ("base", xpos="far_left", ypos="head")
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
default persistent.mods_enabled = set()
|
|
||||||
|
|
||||||
init -999:
|
init -999:
|
||||||
python:
|
python:
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
if not getattr(persistent, "mods_enabled"):
|
||||||
|
persistent.mods_enabled = set()
|
||||||
|
|
||||||
mods_list = dict()
|
mods_list = dict()
|
||||||
|
|
||||||
def mods_import():
|
def mods_import():
|
||||||
|
@ -82,6 +82,11 @@ init -1 python:
|
|||||||
raise KeyError("'{}' character is undefined.".format(key))
|
raise KeyError("'{}' character is undefined.".format(key))
|
||||||
return getattr(states, f"{key[:3]}").unlocked
|
return getattr(states, f"{key[:3]}").unlocked
|
||||||
|
|
||||||
|
def get_character_gifted(key):
|
||||||
|
if not key in states.dolls:
|
||||||
|
raise KeyError("'{}' character is undefined.".format(key))
|
||||||
|
return getattr(states, f"{key[:3]}").gifted
|
||||||
|
|
||||||
def get_character_mood(key):
|
def get_character_mood(key):
|
||||||
if not key in states.dolls:
|
if not key in states.dolls:
|
||||||
raise KeyError("'{}' character is undefined.".format(key))
|
raise KeyError("'{}' character is undefined.".format(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user