Repository navigation
New building: Caravanserai #288
Replies: 4 comments 3 replies
|
The problem with labour probably is that building doesn't have labour category defined in CATEGORY_FOR_BUILDING_TYPE array in src/city/labour.c |
|
Very cool idea! No need to worry about the assets for it, I'll have a look at creating a fitting new custom asset from scratch. For ease of discussion, do you have Discord? Our group primarily discusses development over there. |
|
@dvincent56 I ran into the exact same issue with workforce and managed to solve it. In addition to @Keriew 's suggestion, you also need to create a function called |
|
@dvincent56 if you are happy with adding the caravanserai as a building in Augustus, open a Pull Request and we'll gladly incorporate it. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am new here, I m a french 'javascript' developer (don't throw stones at me) and I am excited to discover Augustus.
I got the sources of the project to take a look and I had fun adding a new building.
Let me show you, "The Caravanserai"
Merchant caravans take advantage of this resting place. Goods are bought 10% more expensive and sold 10% cheaper.
I quickly created a visual with paint ... I m not a designer ;)
The building must be unique like the Senate, costs 2500 gold and 20 gold/month. The desirability is negative and require 20 people as workforce.
I have 2 issues left, I don't know why but I can't manage to have a workforce on it (0/20). And I want to add a full workforce condition to get the bonus of 10% instead of just the building presence in the city.
I await your feedback,
Regards.
All reactions