Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from AnonymousX86/release-v0.3.0
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
AnonymousX86 authored Nov 20, 2023
2 parents 3912578 + 9e356ab commit 9ad4d20
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 119 deletions.
23 changes: 18 additions & 5 deletions FTE/chapters/one.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@
from FTE.world import World

def chapter_one() -> None:
bridge = Location('Bridge')
capsules = Location('Capsules')
engine_deck = Location('Engine Deck')
quarters = Location('Quarters')
bridge = Location(
'Bridge',
'Big fishes spend time here.'
)
capsules = Location(
'Capsules',
'You can escape the ship here during an emergency.'
)
engine_deck = Location(
'Engine Deck',
'Here engineers make sure the ship is working properly.'
)
quarters = Location(
'Quarters',
'All crewmen spend night and freetime here.'
)

roommate = Character('Hevy', quarters, poke='Good to see you.', standing=Standing.GOOD)
capitan = Character('Rex', bridge, poke='Yes sergant? Oh, wait.')
Expand All @@ -24,7 +36,8 @@ def chapter_one() -> None:
world = World(
all_locations=(bridge, capsules, engine_deck, quarters),
all_characters=(roommate, capitan, pilot, engineer),
starting_location=quarters
starting_location=quarters,
first_interaction=True
)

console.clear()
Expand Down
5 changes: 5 additions & 0 deletions FTE/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ def __eq__(self, other) -> bool:
if isinstance(other, Location):
return self.name == other.name
return False

def __ne__(self, other) -> bool:
if isinstance(other, Location):
return self.name != other.name
return True
Loading

0 comments on commit 9ad4d20

Please sign in to comment.