User Tools

Site Tools


migration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
migration [2023/04/18 15:26] polymorphgamesmigration [2023/09/05 11:21] (current) – Migrate to 1.9.6 mathieu
Line 1: Line 1:
 ====== Migration Notes ====== ====== Migration Notes ======
 +
 +===== Foundation 1.9.6 =====
 +
 +==== Trading Village ====
 +
 +In 1.9.6, we simplified ''TRADING_VILLAGE'''s list of resources by simply requiring a list of assets.
 +
 +<file lua>
 +-- OLD WAY
 +-- Register an addition neighbour to trade with. 
 +saltTrader:registerAsset({
 + DataType = "TRADING_VILLAGE",
 + Id = SaltPrefix .. "_VILLAGE_NANTES",
 +        Heraldry = "ICON_" .. CommonResourceSalt,
 +        Description = SaltPrefix .. "_VILLAGE_NANTES_DESC",
 + VillageName = "Nantes",
 + --RESOURCE QUANTITY PAIR
 + UnlockCost = { 
 + { Resource = "GOLD", Quantity = 300 }
 + },
 + ResourceTradingReplenishDelay = 300.0,
 +
 + --BUYING RESOURCE TRADING INFO
 + BuyingResourceList = { 
 + {
 + ResourceMaxAmount = { Resource = "HONEY", Quantity = 30 },
 +                        ReplenishingAmount = 10,
 + },
 + {
 + ResourceMaxAmount = { Resource = "HERBS", Quantity = 30 },
 +                        ReplenishingAmount = 10,
 + }
 + },
 +
 + --SELLING RESOURCE TRADING INFO
 + SellingResourceList = {
 + {
 + ResourceMaxAmount = { Resource = CommonResourceSalt, Quantity = 50 },
 +                        ReplenishingAmount = 20,
 + }
 + },
 + Allegeance = "CLERGY",
 +      ResourceNeededToUpgrade = "BERRIES",
 +      TradeRouteUpgradeNarrativePanelTemplate = "NARRATIVE_PANEL_TEMPLATE_TRADE_ROUTE_UPGRADE",
 +      WorldGuiIcon = "ICON_" .. CommonResourceSalt,
 +      UpgradeEventEnvoyProfile = "PROFILE_ENVOY_ROYAL",
 +})
 +
 +-- NEW WAY
 +-- Register an addition neighbour to trade with. 
 +saltTrader:registerAsset({
 + DataType = "TRADING_VILLAGE",
 + Id = SaltPrefix .. "_VILLAGE_NANTES",
 +        Heraldry = "ICON_" .. CommonResourceSalt,
 +        Description = SaltPrefix .. "_VILLAGE_NANTES_DESC",
 + VillageName = "Nantes",
 + --RESOURCE QUANTITY PAIR
 + UnlockCost = { 
 + { Resource = "GOLD", Quantity = 300 }
 + },
 + ResourceTradingReplenishDelay = 300.0,
 +
 + --BUYING RESOURCE TRADING INFO
 + BuyingResourceList = { 
 + "HONEY",
 + "HERBS"
 + },
 +
 + --SELLING RESOURCE TRADING INFO
 + SellingResourceList = {
 + CommonResourceSalt
 + },
 + Allegeance = "CLERGY",
 +      ResourceNeededToUpgrade = "BERRIES",
 +      TradeRouteUpgradeNarrativePanelTemplate = "NARRATIVE_PANEL_TEMPLATE_TRADE_ROUTE_UPGRADE",
 +      WorldGuiIcon = "ICON_" .. CommonResourceSalt,
 +      UpgradeEventEnvoyProfile = "PROFILE_ENVOY_ROYAL",
 +})
 +</file>
  
 ===== Foundation 1.9.3 ===== ===== Foundation 1.9.3 =====
migration.txt · Last modified: 2023/09/05 11:21 by mathieu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki