Skip to content

Commit b9e1311

Browse files
authored
Merge pull request #13 from kjetil-kilhavn/main
Fix conditions for completion of demo game
2 parents f7613ce + 103b68c commit b9e1311

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/zaxage_demo_01.prog.abap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ CLASS main IMPLEMENTATION.
153153
result->add( |You are in the { engine->player->location->name }.| ). " { player->location->description }|.
154154
text->set_textstream( result->get( ) ).
155155

156-
IF engine->player->location->things->exists( 'RFC' ).
156+
IF engine->player->location = bill_developer->location AND
157+
engine->player->location->things->exists( 'RFC' ).
157158
engine->mission_completed = abap_true.
158159
ENDIF.
159160

src/zcl_axage_demo1.clas.abap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ CLASS zcl_axage_demo1 IMPLEMENTATION.
9797
out->write( interprete( 'EAST' )->get( ) ).
9898
out->write( interprete( 'TAKE KNIFE' )->get( ) ).
9999

100-
IF engine->player->location->things->exists( 'RFC' ).
100+
IF engine->player->location = bill_developer->location AND
101+
engine->player->location->things->exists( 'RFC' ).
101102
engine->mission_completed = abap_true.
102103
out->write( 'Congratulations! You delivered the RFC to the developers!' ).
103104
ENDIF.

0 commit comments

Comments
 (0)