ResourceKnowledgeCatalog/resources.prop

Here the world resources are defined. Note: world resources are not land resources! Landresources are defined in the LandKnowledgeCatalog/lands.prop.

KeyDescriptionExample
The world resourcetypes
Resources A list of resources involved in the game. Resources = Happiness Food ChoppedWood
Worldresource properties
Resource.from This resource can be obtained by using the defined amount of another resource. Energy.from = ChoppedWood(20)
Resource.min The minimal value this resource can reach. Food.min = 0
Resource.max The maximum value this resource can reach. Food.max = 1000
Resource.init The initial value for this resource on game startup. Food.init = 250
Resource.temporary If the resource can not be stored it is temporary. Happiness.temporary = true
Resource.curve The input/output characteristic for this resource. One of SLOPE or LINEAR Happiness.curve = SLOPE

The data used for the project

####################
## resources.prop ##
####################

# Energy is always there and so is not listed
Resources = Food BuildingMaterial ChoppedWood Coals Happiness

Energy.from = ChoppedWood(20)

Food.max = 1000
Food.init = 200
Food.min = 0

BuildingMaterial.max = 1000
BuildingMaterial.init = 250
BuildingMaterial.min = 0
BuildingMaterial.from = ChoppedWood(5)

ChoppedWood.max = 1000
ChoppedWood.init = 500
ChoppedWood.min = 0

Coals.max = 1000
Coals.init = 0
Coals.min = 0
Coals.temporary = true

Happiness.max = 1000
Happiness.init = 45
Happiness.min = 0
Happiness.curve = SLOPE
Happiness.temporary = true