Commit Graph

105 Commits

Author SHA1 Message Date
1672b2381a Replace show screen with call screen 2023-11-17 03:13:17 +01:00
e242c0e43a Factorize pos 2023-11-17 03:08:51 +01:00
d7c8e39b08 Factorize pos 2023-11-17 03:07:16 +01:00
313849696c Avoid single-use function 2023-11-17 03:05:12 +01:00
9a7a1d4686 Fix 32cf1de
the call is useless anyway, always has been
2023-11-17 02:59:23 +01:00
2e80d3a8d8 nitpicks 2023-11-17 02:53:09 +01:00
38787bdc4c Add safe return
otherwise the implicit return is at the end of the file, which means if we add another label down the file, it will be executed after give_gift
2023-11-17 02:49:44 +01:00
aefa88e4d2 Add data privacy when computing house points
the dynamic variables are needed for the show screen call
2023-11-17 02:47:17 +01:00
ebcfa4b78d Use hide instead of single-use function 2023-11-17 02:39:35 +01:00
b2196d3ca5 Fix abe5d55 2023-11-17 02:34:05 +01:00
a7ad9fafc7 Simplify position and parameters 2023-11-17 02:31:46 +01:00
6216b62ef9 Turn two actions into functions
technically not as correct, but works all the same and is relatively faster (but it will be replaced with better actions in the future anyway)
the pickle lock, if any, for removing them in the future, becomes easier to solve
2023-11-17 02:15:31 +01:00
abe5d551fc Roll most local actions out 2023-11-17 02:12:26 +01:00
87a77163de Probable typo 2023-11-17 02:07:57 +01:00
38a94e774b Some big work on the inventory system
turn the show into a call screen
replace all return actions with specific local actions (WIP, more changes to come)
make the global variables at least dynamic
make the mode parameter a parameter of the label (so, a dynamic variable too, as a result)
replace the bigger actions with local labels
tweak text entries, comparisons, iterations... details
2023-11-17 01:48:07 +01:00
25f375c88b Better and faster iteration, using foreach 2023-11-17 01:48:05 +01:00
c1ab7f7b85 Use a grid for the inventory 2023-11-17 01:48:03 +01:00
837d6b378e Use the correct operator(s) for None 2023-11-17 01:48:01 +01:00
14607f2eb1 Better text interpolation in screens 2023-11-17 01:47:59 +01:00
def10a09ac Simplify crop_image_zoom calls 2023-11-17 01:47:57 +01:00
3278b1f4af Remove get_zoom and use builtin fit feature
using renpy.render, wtf
2023-11-17 01:47:55 +01:00
87ce17df8b Use inplace sort and generator expressions 2023-11-16 02:17:25 +01:00
070d14a685 Remove unused xalign 2023-11-16 01:55:20 +01:00
a36c0ba222 Separate xalign and yalign 2023-11-16 01:54:22 +01:00
fbe8035c43 Refactor states.menu_pos and remove reset_menu_position 2023-11-16 01:51:18 +01:00
c3f753a460 Use statement instead of equivalent 2023-11-16 01:43:47 +01:00
db30cd66d3 Avoid circular reference 2023-11-16 01:38:39 +01:00
4b8371e292 Make the rotate animation subpixel 2023-11-16 01:36:36 +01:00
48c4c4ecad Fix and simplify the map
in addition to benigh simplification, this actually fixes a bug : setting pos and align in the same line is a bug, it's always been unspecified, you should have been setting *anchor* instead. xycenter does that now.
2023-11-16 01:34:38 +01:00
b222860bec Remove unnecessary screen variable 2023-11-16 01:11:38 +01:00
c64635aace Save calling update_character_map_locations several times 2023-11-16 00:49:14 +01:00
9a3fe1df65 Reform random map locations
the locations of the different characters aren't independant, but they weren't in the first place
2023-11-16 00:13:42 +01:00
77e40301c9 Use statements instead of equivalents 2023-11-15 23:47:24 +01:00
42f690f966 Avoid circular reference
it clogs pickling and garbage-collecting
2023-11-15 23:46:46 +01:00
884c264f04 No it doesn't 2023-11-15 23:41:29 +01:00
23a264c8f4 Better text in screens 2023-11-15 23:24:55 +01:00
32cf1de3a0 Auto-cleanup public variables
I chose not to add them directly in the screen, to keep it readable
but even though they're still global variables, now they are dynamic and cleaned as soon as we exit the menu
2023-11-15 23:06:04 +01:00
c493a4b9aa Clean most stats variables from the global store 2023-11-15 22:51:38 +01:00
bbc1df1ea6 Use define for constants 2023-11-15 21:34:14 +01:00
ca64492beb Further clean junk variable 2023-11-15 21:26:57 +01:00
3d62c8b818 Add style, clean junk variables 2023-11-15 21:25:10 +01:00
bb2edc9a7b Simplify function 2023-11-15 21:24:47 +01:00
a9dc195379 Upgrade other uses of image manipulators 2023-11-15 20:43:28 +01:00
4ec94d28f5 Convert ball_hint to a screen variable
no leak
2023-11-15 20:43:10 +01:00
15c998cd5a Weird variable setting 2023-11-15 20:42:52 +01:00
3e86094b0b Fix misuse of variable
- don't use a reserved name (starting with an underscore)
- use a file-local mangled name (starting with two underscores
- use renpy.dynamx to cleanup the variable automatically
2023-11-15 20:42:50 +01:00
13608b6cfa Bug fixes
* Fixed missing 'whore collar' unlock method call
* Fixed gallery not working correctly by extending call_replay funcionality by adding support for nested stores
2023-10-28 18:49:42 +01:00
316aea6a5a Bug fixes and autosaves
* Added autosave toggle
* Fixed achievements being granted in replay scope
2023-07-25 17:54:33 +01:00
6e93d8628f Bug fixes and improvements
* Added dev skip for cardgame for testing purposes (I swear!)
* Fixed missing achievement triggers for 'Mad Hatter' and 'Poster Boy'
* Fixed cardgame twins challenge being inaccessible
* Fixed colour picker invoking non-existing image outside wardrobe scope
* Disabled cardgame easter egg (broken, requires refactoring)
* Improved cardgame hints
* Improved cardgame event handling
* Fixed grammar
2023-07-08 21:44:47 +01:00
b08e0d0071 Astoria spell training and improvements
* Converted Astoria's spell training into the new system, and cleaned up the code.
* Improved Astoria's menu layout
* Replaced -hidden- menu feature names with actual the actual feature names
* Refactored Astoria's file structure and naming convention
* Temporarily disabled spell training stats
2023-07-02 17:39:28 +01:00