preview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
preview [2019/10/02 16:01] – polymorphgames | preview [2019/10/04 15:34] – [New Features] maxime | ||
---|---|---|---|
Line 12: | Line 12: | ||
===== New Features ===== | ===== New Features ===== | ||
- | * [[#Building part function|Building part functions are now assets, declared individually.]] | + | * [[migration#Building part function|Building part functions are now assets, declared individually]] |
- | * [[preview: | + | * [[preview: |
- | * [[#Resource type list|A resource can now have multiple resource types]] | + | * [[migration#Resource type list|A resource can now have multiple resource types]] |
- | * [[preview: | + | * [[preview: |
+ | * New [[preview: | ||
+ | * | ||
+ | * Map Modding will be there with the official update | ||
===== Migration Notes ===== | ===== Migration Notes ===== | ||
- | ==== Building part function ==== | + | See in [[migration# |
- | + | ||
- | For assets from type '' | + | |
- | + | ||
- | Migration | + | |
- | <file lua building_parts.lua> | + | |
- | mod: | + | |
- | DataType = " | + | |
- | ... | + | |
- | + | ||
- | -- OLD | + | |
- | -- BuildingFunction = { | + | |
- | -- DataType = " | + | |
- | -- WorkerCapacity = 4, | + | |
- | -- RelatedJob = { Job = " | + | |
- | -- ResourceProduced = { | + | |
- | -- { Resource = " | + | |
- | -- } | + | |
- | -- }, | + | |
- | + | ||
- | -- NEW | + | |
- | BuildingFunction = " | + | |
- | + | ||
- | ... | + | |
- | }) | + | |
- | + | ||
- | -- ALSO NEW | + | |
- | mod: | + | |
- | DataType = " | + | |
- | Id = " | + | |
- | WorkerCapacity = 4, | + | |
- | RelatedJob = { Job = " | + | |
- | ResourceProduced = { | + | |
- | { Resource = " | + | |
- | } | + | |
- | }) | + | |
- | </ | + | |
- | + | ||
- | ==== Resource type list ==== | + | |
- | The enumeration '' | + | |
- | + | ||
- | Another change is that resource, markets, granaries and warehouses can now have multiple resource types. This, combined with new customizable resource types, will be useful to customize where resources can be stocked and sold. This means that the property '' | + | |
- | + | ||
- | For example, before this change, the wine was a resource of type '' | + | |
- | + | ||
- | Migration example: | + | |
- | <file lua> | + | |
- | mod: | + | |
- | DataType = " | + | |
- | ... | + | |
- | + | ||
- | -- OLD | + | |
- | -- ResourceType = " | + | |
- | + | ||
- | -- NEW | + | |
- | ResourceTypeList = { | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | + | ||
- | ... | + | |
- | }) | + | |
- | </ | + |