Bug fixes
* Fixed 'decorator' achievement being unreachable * Fixed character face initialization in the case character image was never called before with facial values * Fixed saybox disappearing for anonymous narrator calls * Fixed inner thought fade not working with text tags
This commit is contained in:
parent
129b9256e1
commit
3762ba8fb1
@ -63,6 +63,7 @@ define qcr = Character("Quidditch Crowd")
|
||||
|
||||
# Special
|
||||
define nar = Character("", what_prefix=">", show_icon="narrator", callback=narrator_fade)
|
||||
define narrator = nar # Note: Without this definition, anonymous narrator style will be overridden by Renpy.
|
||||
define anon = Character("???")
|
||||
|
||||
# Dumbledore
|
||||
|
@ -14,4 +14,6 @@ init python:
|
||||
outfit_last = outfit = get_character_outfit(c, type="last")
|
||||
outfit_last.save()
|
||||
|
||||
char.set_face(mouth="base", eyes="base", eyebrows="base", pupils="mid")
|
||||
|
||||
config.start_callbacks.append(wardrobe_init)
|
||||
|
@ -20,6 +20,11 @@ screen nvl(dialogue, items=None):
|
||||
#
|
||||
# https://www.renpy.org/doc/html/screen_special.html#say
|
||||
|
||||
init python:
|
||||
import re
|
||||
def text_inner_thought(string, pattern=re.compile(r"\(([^)]+)\)")):
|
||||
return re.findall(pattern, string)
|
||||
|
||||
screen say(who, what, side_image=None, icon=None):
|
||||
zorder 31
|
||||
|
||||
@ -35,7 +40,8 @@ screen say(who, what, side_image=None, icon=None):
|
||||
add SideImage()
|
||||
|
||||
# TODO: While this works, there might be a better way to add effects based on contents of the dialogue.
|
||||
if what.startswith("(") and what.endswith(")") and not renpy.showing("cg"):
|
||||
|
||||
if text_inner_thought(what) and not renpy.showing("cg"):
|
||||
add "fade_gradient"
|
||||
|
||||
window id "window":
|
||||
|
@ -121,6 +121,8 @@ init python:
|
||||
if self.owned == 0:
|
||||
raise Exception("Decoration '{}' owned count is equal to zero.".format(self.name))
|
||||
|
||||
achievements.unlock("decorator")
|
||||
|
||||
target = self.placement
|
||||
|
||||
if not target.decoration is None:
|
||||
|
Loading…
Reference in New Issue
Block a user