Module:AnimalData: Difference between revisions
From Eco - English Wiki
[unchecked revision] | [unchecked revision] |
m Update for 8.2.6. |
m 1 revision imported |
(No difference)
|
Revision as of 22:18, 6 December 2019
ATTENTION! Data files are generated using game data and are not intended for manual editing.
The data file is currently used in at least the following modules:
- Module:Infobox_Animal: see Template:Infobox_Animal for more details.
Usage
-- Load data only once per page. (Do no use require())
local AnimalData = mw.loadData("Module:AnimalData")
-- Assert that some data was received, otherwise throw an error.
assert(AnimalData.animals, "Failed to load data from Module:AnimalData!")
-- You may then use data from this module in your script. For example:
local agoutiData = AnimalData.animals["Agouti"]
-- Or to iterate over the table, you can do this:
for animalName, data in pairs(AnimalData.animals) do
-- animalName now contains the name of the animal in English.
-- data is the data table for that animal.
end
-- Eco Version : 0.8.2.6 beta
return {
animals = {
['BighornSheep'] = {
['speed'] = '5.5',
['wanderingSpeed'] = '1.0',
['health'] = '3.2',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Bighorn Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '100.0',
['foodSources'] = '[[Dwarf Willow]], [[Prickly Pear]], [[Agave]], [[Sagebrush]]',
['carbonRelease'] = '0.0000',
},
['Bison'] = {
['speed'] = '4.0',
['wanderingSpeed'] = '0.8',
['health'] = '7.0',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '0.6',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Bison Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '500.0',
['foodSources'] = '[[Common Grass]], [[Bunchgrass]], [[Wheat]], [[Big Bluestem]], [[Switchgrass]]',
['carbonRelease'] = '0.0000',
},
['Deer'] = {
['speed'] = '5.5',
['wanderingSpeed'] = '1.0',
['health'] = '3.2',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Deer Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '200.0',
['foodSources'] = '[[Huckleberry]], [[Fern]], [[Beans]], [[Salal]], [[Corn]], [[Bunchgrass]], [[Wheat]]',
['carbonRelease'] = '0.0000',
},
['Elk'] = {
['speed'] = '5.5',
['wanderingSpeed'] = '1.0',
['health'] = '3.2',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Elk Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '200.0',
['foodSources'] = '[[Huckleberry]], [[Fern]], [[Beans]], [[Salal]]',
['carbonRelease'] = '0.0000',
},
['Fox'] = {
['speed'] = '5.0',
['wanderingSpeed'] = '1.5',
['health'] = '2.0',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '0.9',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Fox Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '100.0',
['foodSources'] = '[[Hare]], [[Turkey]]',
['carbonRelease'] = '0.0000',
},
['Hare'] = {
['speed'] = '5.0',
['wanderingSpeed'] = '1.0',
['health'] = '1.0',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '0.8',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Hare Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '50.0',
['foodSources'] = '[[Camas]], [[Wheat]], [[Bunchgrass]], [[Sagebrush]], [[Corn]], [[Huckleberry]], [[Big Bluestem]]',
['carbonRelease'] = '0.0000',
},
['MountainGoat'] = {
['speed'] = '5.5',
['wanderingSpeed'] = '1.2',
['health'] = '3.2',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Mountain Goat Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '100.0',
['foodSources'] = '[[Peat Moss]], [[Saxifrage]], [[Lupine]], [[Fireweed]], [[Dwarf Willow]], [[Arctic Willow]]',
['carbonRelease'] = '0.0000',
},
['Otter'] = {
['speed'] = '2.0',
['wanderingSpeed'] = '1.0',
['health'] = '1.0',
['isSwimming'] = 'Swimming',
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Otter Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '50.0',
['foodSources'] = '[[Clam]], [[Urchin]], [[Tuna]], [[Salmon]], [[Trout]]',
['carbonRelease'] = '0.0000',
},
['Salmon'] = {
['speed'] = '2.0',
['wanderingSpeed'] = '1.0',
['health'] = '1.0',
['isSwimming'] = 'Swimming',
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Salmon]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '50.0',
['foodSources'] = '[[Waterweed]]',
['carbonRelease'] = '0.0000',
},
['Tortoise'] = {
['speed'] = '0.2',
['wanderingSpeed'] = '0.1',
['health'] = '1.0',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Raw Meat]]',
['resourceMin'] = '1.0',
['resourceMax'] = '2.0',
['resourceBonus'] = '90',
['maturity'] = '2.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '10.0',
['foodSources'] = '[[Sagebrush]], [[Creosote Bush]], [[Prickly Pear]], [[Agave]]',
['carbonRelease'] = '0.0000',
},
['Trout'] = {
['speed'] = '2.0',
['wanderingSpeed'] = '1.0',
['health'] = '1.0',
['isSwimming'] = 'Swimming',
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Trout]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '25.0',
['foodSources'] = '[[Waterweed]]',
['carbonRelease'] = '0.0000',
},
['Tuna'] = {
['speed'] = '2.0',
['wanderingSpeed'] = '1.0',
['health'] = '1.0',
['isSwimming'] = 'Swimming',
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '1.0',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Tuna]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '100.0',
['foodSources'] = '[[Kelp]], [[Seagrass]]',
['carbonRelease'] = '0.0000',
},
['Turkey'] = {
['speed'] = '3.5',
['wanderingSpeed'] = '1.0',
['health'] = '1.8',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '0.5',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Turkey Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '75.0',
['foodSources'] = '[[Bunchgrass]], [[Camas]]',
['carbonRelease'] = '0.0000',
},
['Wolf'] = {
['speed'] = '5.5',
['wanderingSpeed'] = '0.7',
['health'] = '1.5',
['isSwimming'] = nil,
['isFlying'] = nil,
['flees'] = 'Flees',
['fearFactor'] = '0.5',
['minAttackDelay'] = '0.8',
['maxAttackDelay'] = '2.5',
['resourceItem'] = '[[Wolf Carcass]]',
['resourceMin'] = '1.0',
['resourceMax'] = '1.0',
['resourceBonus'] = '90',
['maturity'] = '1.0',
['damage'] = '1.0',
['attackRange'] = '1.0',
['calorieValue'] = '100.0',
['foodSources'] = '[[Hare]], [[Elk]], [[Mountain Goat]], [[Deer]]',
['carbonRelease'] = '0.0000',
},
},
}