ModFlora: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
   "flora": [
   "flora": [
     {
     {
       "$type": "MountainNaturalResourceMineInfo, Game",  // for shaft mine resources
       "$type": "MountainNaturalResourceMineInfo, Game",  // Underground Deposit for shaft mine resources
       "matchBuildingOffsets": [],  // for shaft mines resources
       "matchBuildingOffsets": [],  // for shaft mines resources
       "buildingMainBaseLayerOffset": {},  // for shaft mines resources
       "buildingMainBaseLayerOffset": {},  // for shaft mines resources
Line 25: Line 25:
       "canHaveSubLoc": true,
       "canHaveSubLoc": true,
       "occupierType": 3,  // 0, 2, or 3
       "occupierType": 3,  // 0, 2, or 3
       "baseOffsets": [ ],
       "baseOffsets": [ ], // tiles(s) for Flora, if exists.
       "isPerpendicular": false,
       "isPerpendicular": false,
       "itemYield": null,
       "itemYield": null, // resource yielded, e.g. 2 = Logs
       "validTerrainTypes": [],
       "validTerrainTypes": [], // Valid Terrain for Flora. see [[TerrainModIds]]
       "plantTimeFactor": 1.0,
       "plantTimeFactor": 1.0,
       "heightLeeway": -1,
       "heightLeeway": -1,

Revision as of 17:56, 18 January 2022

Mod Flora Translation.csv

List of fields used in translation.csv for Flora

Flora Translation

placeholder for now - to link to translation.csv for Flora

Add other Flora specific info later

Mod Flora

JSON

 "flora": [
   {
     "$type": "MountainNaturalResourceMineInfo, Game",  // Underground Deposit for shaft mine resources
     "matchBuildingOffsets": [],   // for shaft mines resources
     "buildingMainBaseLayerOffset": {},   // for shaft mines resources
     "category": 4,
     "growthTime": -1.0,
     "initGrowth": 0.0,
     "maxSubPositionOffset": 0.0,
     "minScale": 0.9,
     "maxScale": 1.0,
     "minPlantScale": 1.0,
     "maxPlantScale": 1.0,
     "can360Rotate": false,
     "canHaveSubLoc": true,
     "occupierType": 3,  // 0, 2, or 3
     "baseOffsets": [ ], // tiles(s) for Flora, if exists.
     "isPerpendicular": false,
     "itemYield": null, // resource yielded, e.g. 2 = Logs
     "validTerrainTypes": [], // Valid Terrain for Flora. see TerrainModIds
     "plantTimeFactor": 1.0,
     "heightLeeway": -1,
     "typeId": 201,  //  Flora Mod Id
     "componentInfos": []
   }
 ]