Skip to content

Display resource-specific crops when building farms - #798

Merged
bvschaik merged 1 commit into
bvschaik:masterfrom
HyperJeanJean:julius/farm-crops
Nov 13, 2026
Merged

bvschaik merged 1 commit into
bvschaik:masterfrom
HyperJeanJean:julius/farm-crops

Conversation

@HyperJeanJean

Copy link
Copy Markdown
Contributor

Not sure if this might interest you or if this is the best way to do it.

When building farms, the crops always looked like the wheat crops, for all types of farms. This PR changes that by applying an offset to the crops image id depending on the farm type.

FYI, the switch case was taken straight from add_building_to_terrain in game/undo.c.

Before, for all farms:

image

After:

Wheat:
image

Fruits:
image

Pigs
image

Olives:
image

Vines:
image

@bvschaik bvschaik left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Sorry for the delay. This actually looks really useful, thanks!

@bvschaik
bvschaik merged commit af235a7 into bvschaik:master Nov 13, 2026
15 checks passed
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.

2 participants