12 files changed +271
-69
lines changed Original file line number Diff line number Diff line change
1
+ item . draggable ( "shape" )
Original file line number Diff line number Diff line change
1
+ item . draggable ( "shape" )
Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ place.get('bg_lamp').onClick(() => {
13
13
void game . getSound ( "light_switch" ) . play ( ) ;
14
14
} )
15
15
16
-
17
16
if ( game . state . hadLastDialog ) {
18
17
place . get ( 'books' ) . onClick ( ( ) => {
19
18
window . open ( "https://youtu.be/aXByu2iraEA?si=41pXC-2rTudy681J" , "_blank" ) ;
20
19
} )
21
20
}
22
21
22
+ game . spawnItemOnce ( "croco" , place . get ( "couch_spot" ) ) ;
23
+
23
24
const itemsInInventory = await game . controls [ 'inventory' ] . get ( 'backpack_with_inventory' ) . anchoredItemsRecursive ( ) ;
24
25
const party1 = itemsInInventory . findIndex ( item => item . itemName == "invitation" ) != - 1 ;
25
26
const party2 = itemsInInventory . findIndex ( item => item . itemName == "invitation2" ) != - 1 ;
@@ -34,6 +35,7 @@ if (!party1 && !party2) {
34
35
place . get ( 'bg_drinks' ) . hide ( )
35
36
place . get ( 'bg_party' ) . hide ( )
36
37
place . get ( 'bg_party2' ) . hide ( )
38
+ place . get ( 'bg_discoball' ) . hide ( )
37
39
38
40
const dialog = place . get ( "dialog_box_lina_no_party" ) . dialog ( "right" ) ;
39
41
( async ( ) => {
@@ -156,6 +158,7 @@ if (!party1 && !party2) {
156
158
} else if ( party1 ) {
157
159
place . get ( 'bg_drinks' ) . hide ( ) ;
158
160
place . get ( 'bg_party2' ) . hide ( ) ;
161
+ place . get ( 'bg_discoball' ) . hide ( ) ;
159
162
( async ( ) => {
160
163
// start dialog with lina when the party is happening: give her the cake
161
164
const dialog = place . get ( "dialog_box_lina" ) . dialog ( "right" ) ;
Original file line number Diff line number Diff line change
1
+ place . get ( "side" ) . onClick ( ( ) => {
2
+ void game . getSound ( "step_back" ) . play ( ) ;
3
+ game . navigate ( "frontdoor_supermarket" ) ;
4
+ } )
0 commit comments