ModFlora: Difference between revisions

From The Colonists
Jump to navigation Jump to search
change "itemYield" to "itemYields"
add new isMapEditorPlaceable
Line 31: Line 31:
       "plantTimeFactor": 1.0,
       "plantTimeFactor": 1.0,
       "heightLeeway": -1,
       "heightLeeway": -1,
      "isMapEditorPlaceable": false, // can be placed when creating/editing Custom Maps
       "typeId": 201,  //  Flora Mod Id, see [[FloraModIds]] for existing values
       "typeId": 201,  //  Flora Mod Id, see [[FloraModIds]] for existing values
       "componentInfos": []
       "componentInfos": []
     }
     }
   ]
   ]

Revision as of 21:19, 1 December 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, see FloraModIds for existing values
     "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. see FloraModIds for existing values
     "baseOffsets": [ ], // tiles(s) for Flora, if exists. see  baseOffsets
     "isPerpendicular": false,
     "itemYields": null, // resource yielded, e.g. 2 = Logs
     "validTerrainTypes": [], // Valid Terrain for Flora. see TerrainModIds
     "plantTimeFactor": 1.0,
     "heightLeeway": -1,
     "isMapEditorPlaceable": false, // can be placed when creating/editing Custom Maps
     "typeId": 201,  //  Flora Mod Id, see FloraModIds for existing values
     "componentInfos": []
   }
 ]