Compare commits
6 Commits
2566ef665f
...
908beae5d3
Author | SHA1 | Date | |
---|---|---|---|
908beae5d3 | |||
d8751d73b9 | |||
224194754f | |||
e3c5fb609d | |||
e04fd221dd | |||
ef97c273db |
@ -1,5 +1,14 @@
|
|||||||
python early hide:
|
python early hide:
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
|
try:
|
||||||
|
from renpy.lint import python_builtins, renpy_builtins
|
||||||
|
except ImportError:
|
||||||
|
import builtins
|
||||||
|
python_builtins = set(dir(builtins))
|
||||||
|
del builtins
|
||||||
|
renpy_builtins = set()
|
||||||
|
|
||||||
__register_params = frozenset(inspect.signature(renpy.register_statement).parameters).difference({"name", "parse"})
|
__register_params = frozenset(inspect.signature(renpy.register_statement).parameters).difference({"name", "parse"})
|
||||||
def register_decorator(cls):
|
def register_decorator(cls):
|
||||||
"""
|
"""
|
||||||
@ -54,6 +63,12 @@ python early hide:
|
|||||||
evaled = {n: eval(e) for n, e in self.items()}
|
evaled = {n: eval(e) for n, e in self.items()}
|
||||||
renpy.dynamic(**evaled)
|
renpy.dynamic(**evaled)
|
||||||
|
|
||||||
|
def lint(self):
|
||||||
|
for domain, st in (("Python", python_builtins), ("Ren'Py", renpy_builtins)):
|
||||||
|
inter = st.intersection(self)
|
||||||
|
if inter:
|
||||||
|
renpy.error(f"Dynamic statement redefines one or several {domain} builtins: {', '.join(map(repr, inter))}")
|
||||||
|
|
||||||
@register_decorator
|
@register_decorator
|
||||||
class chibi:
|
class chibi:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -95,6 +95,7 @@ label update_lun_tier:
|
|||||||
# T5 NOT AVAILABLE
|
# T5 NOT AVAILABLE
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# unreachable
|
||||||
# Requirement: Tier 4 - Blow me T4 E3
|
# Requirement: Tier 4 - Blow me T4 E3
|
||||||
$ lun_level_up = 4
|
$ lun_level_up = 4
|
||||||
return
|
return
|
||||||
|
@ -145,6 +145,7 @@ label day_start:
|
|||||||
# Start Quests
|
# Start Quests
|
||||||
jump quests
|
jump quests
|
||||||
|
|
||||||
|
# unreachable
|
||||||
$ renpy.choice_for_skipping()
|
$ renpy.choice_for_skipping()
|
||||||
|
|
||||||
call screen room_menu
|
call screen room_menu
|
||||||
@ -239,6 +240,7 @@ label night_start:
|
|||||||
# Start Quests
|
# Start Quests
|
||||||
jump quests
|
jump quests
|
||||||
|
|
||||||
|
# unreachable
|
||||||
$ renpy.choice_for_skipping()
|
$ renpy.choice_for_skipping()
|
||||||
|
|
||||||
call screen room_menu
|
call screen room_menu
|
||||||
|
@ -142,18 +142,24 @@ label teleport(position=None,effect=True,poof_label=None):
|
|||||||
with d1
|
with d1
|
||||||
|
|
||||||
hide screen blkfade
|
hide screen blkfade
|
||||||
show screen heal_animation
|
show heal_ani onlayer screens zorder teleport_zorder:
|
||||||
|
anchor (0.5, 1.0)
|
||||||
|
pos teleport_pos
|
||||||
|
zoom 0.5
|
||||||
with d3
|
with d3
|
||||||
|
|
||||||
#stop music fadeout 1
|
#stop music fadeout 1
|
||||||
|
|
||||||
hide screen heal_animation
|
hide heal_animation onlayer screens
|
||||||
if poof_label is not None:
|
if poof_label is not None:
|
||||||
$ renpy.call(poof_label)
|
call expression poof_label
|
||||||
show screen teleport_animation
|
show teleport_ani onlayer screens zorder teleport_zorder:
|
||||||
|
anchor (0.5, 0.7)
|
||||||
|
pos teleport_pos
|
||||||
|
zoom 0.5
|
||||||
with d5
|
with d5
|
||||||
|
|
||||||
hide screen teleport_animation
|
hide teleport_animation onlayer screens
|
||||||
with d5
|
with d5
|
||||||
|
|
||||||
if effect == True:
|
if effect == True:
|
||||||
@ -161,17 +167,9 @@ label teleport(position=None,effect=True,poof_label=None):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
screen teleport_animation():
|
|
||||||
add "teleport_ani" anchor (0.5, 0.7) xpos teleport_xpos ypos teleport_ypos zoom 0.5
|
|
||||||
zorder teleport_zorder
|
|
||||||
|
|
||||||
screen heal_animation():
|
|
||||||
add "heal_ani" anchor (0.5, 1.0) xpos teleport_xpos ypos teleport_ypos zoom 0.5
|
|
||||||
zorder teleport_zorder
|
|
||||||
|
|
||||||
# Dummy labels. To prevent crashes. # TODO: Remove later.
|
# Dummy labels. To prevent crashes. # TODO: Remove later.
|
||||||
default hermione_action = None
|
default hermione_action = None
|
||||||
|
|
||||||
label set_her_action(action=None, update=None):
|
label set_her_action(action=None, update=None):
|
||||||
$ hermione_action = action
|
$ hermione_action = action
|
||||||
return
|
return
|
@ -156,8 +156,8 @@ init -1 python:
|
|||||||
|
|
||||||
if config.developer:
|
if config.developer:
|
||||||
def __setattr__(self, attr, value):
|
def __setattr__(self, attr, value):
|
||||||
if hasattr(self, attr) and getattr(self, attr) != value:
|
if getattr(self, attr, not value) != value:
|
||||||
id = getattr(self, "id")
|
id = self.id
|
||||||
rollback = f"{stdcol.UNDERLINE}(Rollback){stdcol.END} " if renpy.in_rollback() else ""
|
rollback = f"{stdcol.UNDERLINE}(Rollback){stdcol.END} " if renpy.in_rollback() else ""
|
||||||
caller_id = renpy.get_filename_line()
|
caller_id = renpy.get_filename_line()
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ init -999:
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
if not getattr(persistent, "mods_enabled"):
|
if not persistent.mods_enabled:
|
||||||
persistent.mods_enabled = _set()
|
persistent.mods_enabled = _set()
|
||||||
|
|
||||||
mods_list = _dict()
|
mods_list = _dict()
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user