File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
src/interactions/map_campus_house_1 Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change
1
+ import { displayDialogue } from '../../utils' ;
2
+ import { updateEnergyState } from '../../utils/energyUpdate' ;
3
+ import { getRandomTip } from '../../utils/randomTip' ;
4
+
5
+ export const diningRoomTableInteractions = ( player , k , map ) => {
6
+ player . onCollide ( 'dining_room_table' , ( ) => {
7
+ displayDialogue ( {
8
+ k,
9
+ player,
10
+ text : [ "Here's a fun fact about dining etiquette:" , getRandomTip ( ) ] ,
11
+ } ) ;
12
+ updateEnergyState ( player . state , player . state . energy + 5 ) ;
13
+ } ) ;
14
+ } ;
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import { kitchenFridgeInteractions } from './kitchenFridge.interaction';
7
7
import { bedroomShelfInteractions } from './bedroomShelf.interaction' ;
8
8
import { livingRoomCouchInteractions } from './livingRoomCouch.interaction' ;
9
9
import { bedroomTableInteractions } from './bedroom_table.interaction' ;
10
- import { bedroomPlantInteractions } from './bedroom_plant.interaction' ;
11
- import { diningTableInteractions } from './diningtableinteraction' ;
10
+ import { diningRoomTableInteractions } from './dining_room_table.interaction' ;
12
11
13
12
const interactions = [
14
13
// Add more interactions here
@@ -21,8 +20,8 @@ const interactions = [
21
20
bedroomShelfInteractions ,
22
21
livingRoomCouchInteractions ,
23
22
bedroomTableInteractions ,
24
- diningTableInteractions ,
25
- bedroomPlantInteractions ,
23
+ diningRoomTableInteractions ,
24
+ restroomToiletInteractions ,
26
25
] ;
27
26
28
27
export default interactions ;
You can’t perform that action at this time.
0 commit comments