Skip to content

Commit 04d0a9d

Browse files
committed
add temp function for outfit elements to unlock and reaction code update
1 parent 4fce36c commit 04d0a9d

2 files changed

Lines changed: 30 additions & 3 deletions

File tree

‎Monika After Story/game/script-holidays.rpy‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,18 +1185,25 @@ init 5 python:
11851185
)
11861186

11871187
label greeting_o31_hatana_tracen_uniform:
1188-
# NOTE: TODO
1189-
m "TODO still WIP"
1190-
#black screen
1188+
#scene black
1189+
#pause 2.0
1190+
1191+
# NOTE: do scne eblack above if we have sfx
1192+
call spaceroom(hide_monika=True, scene_change=True, dissolve_all=True)
1193+
11911194
m "Okay, I think everything's in place."
11921195
m "All lined up at the starting gate...{w=0.3}and ready to run!"
11931196

1197+
# NOTE: rm this and do gate open sfx if available
1198+
call mas_transition_from_emptydesk("monika 2hubla")
1199+
11941200
m 2hubla "Ahaha~ What do you think, [player]?"
11951201
m "I think the ears are the perfect addition, don't you?"
11961202
m 1hua "Now that I have it on, it actually does sort of make me want to go for a jog. Ehehe~"
11971203
m 1kua "Can you imagine me zooming around the course, [mas_get_player_nickname()]?"
11981204
m 1hksdlb "Ahaha! I'm definitely letting myself get carried away now."
11991205

1206+
$ store.mas_sprites_hatana._unlock_all()
12001207
call greeting_o31_deco
12011208
call greeting_o31_cleanup
12021209
return

‎Monika After Story/game/zz_reactions.rpy‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2883,6 +2883,25 @@ label mas_reaction_gift_noudeck_have_played:
28832883
persistent._seen_ever["monika_explain_nou_rules"] = True
28842884
return
28852885

2886+
init 10 python in mas_sprites_hatana:
2887+
# TODO delete this block when #10631
2888+
import store
2889+
from store.mas_selspr import json_sprite_unlock
2890+
from store.mas_sprites import get_sprite, SP_CLOTHES
2891+
2892+
def _unlock_all():
2893+
uniform = get_sprite(SP_CLOTHES, "hatana_tracen_uniform")
2894+
json_sprite_unlock(uniform)
2895+
_unlock_outfit_extras(uniform)
2896+
2897+
def _unlock_outfit_extras(sp_obj):
2898+
# assumed sp_obj is the hatana tracen uniform
2899+
json_sprite_unlock(sp_obj.outfit_hair)
2900+
2901+
for acs in sp_obj.outfit_acs.values():
2902+
json_sprite_unlock(acs)
2903+
2904+
28862905
label mas_reaction_gift_clothes_hatana_tracen_uniform:
28872906
python:
28882907
sprite_data = mas_getSpriteObjInfo(
@@ -2899,6 +2918,7 @@ label mas_reaction_gift_clothes_hatana_tracen_uniform:
28992918
extend 3tua "I've never tried coding something like this, but I might have an idea for this costume."
29002919

29012920
$ mas_finishSpriteObjInfo(sprite_data)
2921+
$ store.mas_sprites_hatana._unlock_outfit_extras(sprite_object)
29022922
if giftname is not None:
29032923
$ store.mas_filereacts.delete_file(giftname)
29042924
return

0 commit comments

Comments
 (0)