Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LR2 Mods
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lab Rats 2 Mods
LR2 Mods
Merge requests
!244
More code improvements
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
More code improvements
wkwk/lr2mods:more_code_fixes
into
develop
Overview
5
Commits
12
Pipelines
0
Changes
93
Merged
wkwk
requested to merge
wkwk/lr2mods:more_code_fixes
into
develop
1 year ago
Overview
5
Commits
12
Pipelines
0
Changes
93
Expand
Updates the deprecated typing imports + more general fixes.
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
47835cd0
12 commits,
1 year ago
93 files
+
453
−
568
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
93
Search (e.g. *.vue) (Ctrl+P)
game/bugfix_additions/ActionMod_ren.py
+
5
−
6
Options
import
renpy
from
typing
import
List
,
Set
from
game.major_game_classes.game_logic.Action_ren
import
Action
,
Limited_Time_Action
from
game.main_character.MainCharacter_ren
import
mc
action_mod_list
:
L
ist
[
'
ActionMod
'
]
=
[]
crisis_list
:
L
ist
[
Action
]
=
[]
morning_crisis_list
:
L
ist
[
Action
]
=
[]
limited_time_event_pool
:
L
ist
[
Limited_Time_Action
]
=
[]
action_mod_list
:
l
ist
[
'
ActionMod
'
]
=
[]
crisis_list
:
l
ist
[
Action
]
=
[]
morning_crisis_list
:
l
ist
[
Action
]
=
[]
limited_time_event_pool
:
l
ist
[
Limited_Time_Action
]
=
[]
# proxy methods for type system
def
init_action_mod_disabled
(
action_mod
:
'
ActionMod
'
):
#pylint: disable=unused-argument
@@ -18,7 +17,7 @@ init -1 python:
"""
class
ActionMod
(
Action
):
_instances
:
S
et
[
'
ActionMod
'
]
=
set
()
_instances
:
s
et
[
'
ActionMod
'
]
=
set
()
# store instances of mod
def
__init__
(
self
,
name
,
requirement
,
effect
,
args
=
None
,
requirement_args
=
None
,
menu_tooltip
=
None
,
priority
=
10
,
event_duration
=
99999
,
is_fast
=
True
,
Loading