Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settlement Markets #144

Merged
merged 41 commits into from
Jul 15, 2023
Merged

Settlement Markets #144

merged 41 commits into from
Jul 15, 2023

Conversation

dmccoystephenson
Copy link
Member

Changes

Each settlement now has a market containing a number of stalls. The stalls have their own inventory and are owned by specific individuals identified by an entity ID. The leaders of each nation will focus on building stalls until there is no more space available in their settlement. When a serf purchases a stall, they become a merchant. Merchants will stock their stalls with items and regularly collect profits. Serfs will sell resources at the market and buy apples whenever they can.

Additional Changes

  • Behavior computation has been separated into in settlement & outside settlement methods.
  • Command buttons have been added.
  • Fixed floating trees.
  • Made nation affiliation depend on proximity to settlements.
  • Added some config options.
  • Implemented an item cost calculator.

Related Issues

closes #125
closes #141

Copy link
Member Author

@dmccoystephenson dmccoystephenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self review! Some comments below.

src/c#/main/OpenSourceGame.cs Show resolved Hide resolved
src/c#/main/OpenSourceGame.cs Show resolved Hide resolved
src/c#/main/OpenSourceGame.cs Show resolved Hide resolved
src/c#/main/OpenSourceGame.cs Show resolved Hide resolved
src/c#/main/behavior/PawnBehaviorCalculator.cs Outdated Show resolved Hide resolved
src/c#/main/behavior/PawnBehaviorExecutor.cs Show resolved Hide resolved
src/c#/main/behavior/PawnBehaviorExecutor.cs Show resolved Hide resolved
src/c#/main/command/interact/InteractCommand.cs Outdated Show resolved Hide resolved
src/c#/main/config/KeyBindings.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant