Fixed a bug

This commit is contained in:
MatyasZsombor 2025-06-16 09:04:59 +02:00
parent 12568f103c
commit 672affbc0c
2 changed files with 3 additions and 6 deletions

View File

@ -60,7 +60,7 @@ start_game :-
init_items, init_items,
init_npcs, init_npcs,
init_enemies, init_enemies,
%clear_screen, clear_screen,
write('=== SKYNET: WINGS OF DECEPTION ==='), nl, write('=== SKYNET: WINGS OF DECEPTION ==='), nl,
write('Ein Text-Adventure von Jonas Hinterdorfer und Zsombor Matyas'), nl, nl, write('Ein Text-Adventure von Jonas Hinterdorfer und Zsombor Matyas'), nl, nl,
intro_story, intro_story,
@ -90,4 +90,4 @@ normal_loop :-
game_loop. game_loop.
% Start predicate to begin the game % Start predicate to begin the game
:- initialization(start_game). :- initialization(start_game).

View File

@ -23,9 +23,6 @@ craft_item(emp_generator) :-
write('Du kannst nur in der HTL Leonding Werkstatt bauen.'), nl, write('Du kannst nur in der HTL Leonding Werkstatt bauen.'), nl,
!. !.
craft_item(_) :-
write('Du kannst diesen Gegenstand nicht bauen.'), nl.
craft_item(kampfdrohne) :- craft_item(kampfdrohne) :-
player_location(htl_werkstatt), player_location(htl_werkstatt),
player_inventory(drohnen_motor), player_inventory(drohnen_motor),
@ -47,4 +44,4 @@ craft_item(kampfdrohne) :-
!. !.
craft_item(_) :- craft_item(_) :-
write('Du kannst diesen Gegenstand nicht bauen.'), nl. write('Du kannst diesen Gegenstand nicht bauen.'), nl.