help.lua

This script contains functions that are used both in the Tribal Encyclopedia and the Editor help.

terrain_affinity_help(immovable_description)

Returns a formatted help string for the terrains that the given immovable is most likely to grow on.

Parameters

immovable_description (LuaImmovableDescription) – The immovable type that we want the information for.

Returns

a richtext-formatted list of terrain images, terrain names and probabilities.