Module:SpeciesData: Difference between revisions

From Against the Storm Official Wiki
(Created to make Species CSV data accessible to Lua modules)
 
m (Changing names to plural version so it's not just duplicative of the key)
Line 17: Line 17:


     ["Human"] = {
     ["Human"] = {
         [SpeciesData.NAME] = "Human",
         [SpeciesData.NAME] = "Humans",
         [SpeciesData.DESCRIPTION] = "&quot;Humans are a very adaptable species&comma; but they are also very susceptible to the rain. They rely heavily on special clothing&comma; such as their famous rain shells&comma; to keep them dry. Humans are adept at farming (<sprite name=&quot;&quot;farming&quot;&quot;>) and really enjoy brewing (<sprite name=&quot;&quot;brewing&quot;&quot;>).&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;Humans are a very adaptable species&comma; but they are also very susceptible to the rain. They rely heavily on special clothing&comma; such as their famous rain shells&comma; to keep them dry. Humans are adept at farming (<sprite name=&quot;&quot;farming&quot;&quot;>) and really enjoy brewing (<sprite name=&quot;&quot;brewing&quot;&quot;>).&quot;",
         [SpeciesData.ICON_FILENAME] = "human_temp",
         [SpeciesData.ICON_FILENAME] = "human_temp",
Line 44: Line 44:
     },
     },
     ["Beaver"] = {
     ["Beaver"] = {
         [SpeciesData.NAME] = "Beaver",
         [SpeciesData.NAME] = "Beavers",
         [SpeciesData.DESCRIPTION] = "&quot;Beavers are hardworking and honest&comma; but also quite demanding. They are gifted woodworkers (<sprite name=&quot;&quot;wood&quot;&quot;>) and enjoy engineering (<sprite name=&quot;&quot;tech&quot;&quot;>). Beavers are also known for their innate talent for salesmanship.&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;Beavers are hardworking and honest&comma; but also quite demanding. They are gifted woodworkers (<sprite name=&quot;&quot;wood&quot;&quot;>) and enjoy engineering (<sprite name=&quot;&quot;tech&quot;&quot;>). Beavers are also known for their innate talent for salesmanship.&quot;",
         [SpeciesData.ICON_FILENAME] = "beaver_temp",
         [SpeciesData.ICON_FILENAME] = "beaver_temp",
Line 71: Line 71:
     },
     },
     ["Lizard"] = {
     ["Lizard"] = {
         [SpeciesData.NAME] = "Lizard",
         [SpeciesData.NAME] = "Lizards",
         [SpeciesData.DESCRIPTION] = "&quot;Lizards are a very resilient species&comma; but their cold-blooded nature makes them more dependent on fire than any other species. They are very distrustful and religiously believe that true bonds are only forged in battle. They are very good with animals and meat production (<sprite name=&quot;&quot;meat&quot;&quot;>)&comma; and prefer to work in warm environments (<sprite name=&quot;&quot;fire&quot;&quot;>).&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;Lizards are a very resilient species&comma; but their cold-blooded nature makes them more dependent on fire than any other species. They are very distrustful and religiously believe that true bonds are only forged in battle. They are very good with animals and meat production (<sprite name=&quot;&quot;meat&quot;&quot;>)&comma; and prefer to work in warm environments (<sprite name=&quot;&quot;fire&quot;&quot;>).&quot;",
         [SpeciesData.ICON_FILENAME] = "lizard_temp",
         [SpeciesData.ICON_FILENAME] = "lizard_temp",
Line 98: Line 98:
     },
     },
     ["Harpy"] = {
     ["Harpy"] = {
         [SpeciesData.NAME] = "Harpy",
         [SpeciesData.NAME] = "Harpies",
         [SpeciesData.DESCRIPTION] = "&quot;Harpies are a noble and fragile species&comma; with a primal&comma; aggressive side to them. They have lost their ability to fly due to centuries of exposure to the rain. They excel at alchemy (<sprite name=&quot;&quot;alchemy&quot;&quot;>) and love to work with cloth (<sprite name=&quot;&quot;cloth&quot;&quot;>).&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;Harpies are a noble and fragile species&comma; with a primal&comma; aggressive side to them. They have lost their ability to fly due to centuries of exposure to the rain. They excel at alchemy (<sprite name=&quot;&quot;alchemy&quot;&quot;>) and love to work with cloth (<sprite name=&quot;&quot;cloth&quot;&quot;>).&quot;",
         [SpeciesData.ICON_FILENAME] = "harpy_temp",
         [SpeciesData.ICON_FILENAME] = "harpy_temp",
Line 125: Line 125:
     },
     },
     ["Foxes"] = {
     ["Foxes"] = {
         [SpeciesData.NAME] = "Fox",
         [SpeciesData.NAME] = "Foxes",
         [SpeciesData.DESCRIPTION] = "&quot;Majestic and mysterious creatures&comma; deeply connected to the forest. They have developed a symbiosis with Blightrot through their long exposure to rainwater. Foxes are skilled scouts (<sprite name=&quot;&quot;foxforest&quot;&quot;>) and feel comfortable working in buildings infested with Blightrot (<sprite name=&quot;&quot;cysts&quot;&quot;>). They are highly susceptible to starvation&comma; yet are immune to Hostility.&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;Majestic and mysterious creatures&comma; deeply connected to the forest. They have developed a symbiosis with Blightrot through their long exposure to rainwater. Foxes are skilled scouts (<sprite name=&quot;&quot;foxforest&quot;&quot;>) and feel comfortable working in buildings infested with Blightrot (<sprite name=&quot;&quot;cysts&quot;&quot;>). They are highly susceptible to starvation&comma; yet are immune to Hostility.&quot;",
         [SpeciesData.ICON_FILENAME] = "fox_temp",
         [SpeciesData.ICON_FILENAME] = "fox_temp",
Line 152: Line 152:
     },
     },
     ["Frog"] = {
     ["Frog"] = {
         [SpeciesData.NAME] = "Frog",
         [SpeciesData.NAME] = "Frogs",
         [SpeciesData.DESCRIPTION] = "&quot;A dignified and proud people with a unique affinity for wealth&comma; renowned for their exceptional skills in architecture and their love of water. They seem to be the least bothered by rain and prefer not to live in ordinary shelters. Frogs are skilled masons (<sprite name=&quot;&quot;stone&quot;&quot;>) and love working with rainwater (<sprite name=&quot;&quot;rainwater&quot;&quot;>).&quot;",
         [SpeciesData.DESCRIPTION] = "&quot;A dignified and proud people with a unique affinity for wealth&comma; renowned for their exceptional skills in architecture and their love of water. They seem to be the least bothered by rain and prefer not to live in ordinary shelters. Frogs are skilled masons (<sprite name=&quot;&quot;stone&quot;&quot;>) and love working with rainwater (<sprite name=&quot;&quot;rainwater&quot;&quot;>).&quot;",
         [SpeciesData.ICON_FILENAME] = "frog_temp",
         [SpeciesData.ICON_FILENAME] = "frog_temp",

Revision as of 03:26, 10 October 2024

Documentation for this module may be created at Module:SpeciesData/doc

local SpeciesData = {}

SpeciesData.NAME = "displayName"
SpeciesData.DESCRIPTION = "description"
SpeciesData.ICON_FILENAME = "iconName"
SpeciesData.INITIAL_RESOLVE = "initialResolve"
SpeciesData.RESOLVE_RATE = "resolveChangePerSec"
SpeciesData.REPUTATION_RATE = "reputationPerSec"
SpeciesData.REPUTATION_THRESHOLD = "initialReputationTreshold"
SpeciesData.REPUTATION_THRESHOLD_INCREASE = "reputationTresholdIncreasePerReputation"
SpeciesData.NEEDS_INTERVAL = "needsInterval"
SpeciesData.NEEDS = "needs"
SpeciesData.NEED_NAME = "needName"
SpeciesData.NEED_DESCRIPTION = "needDesc"

SpeciesData.species = {

    ["Human"] = {
        [SpeciesData.NAME] = "Humans",
        [SpeciesData.DESCRIPTION] = "&quot;Humans are a very adaptable species&comma; but they are also very susceptible to the rain. They rely heavily on special clothing&comma; such as their famous rain shells&comma; to keep them dry. Humans are adept at farming (<sprite name=&quot;&quot;farming&quot;&quot;>) and really enjoy brewing (<sprite name=&quot;&quot;brewing&quot;&quot;>).&quot;",
        [SpeciesData.ICON_FILENAME] = "human_temp",
        [SpeciesData.INITIAL_RESOLVE] = "15",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.00013",
        [SpeciesData.REPUTATION_THRESHOLD] = "30",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "4",
        [SpeciesData.NEEDS_INTERVAL] = "120",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Basic Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "All species require at least basic shelter from the constant rainfall and gusting winds.", },
            [2] = { [SpeciesData.NEED_NAME] = "Human Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;Humans prefer to live in solid&comma; safe homes. Human Houses are required to fulfill this need.&quot;", },
            [3] = { [SpeciesData.NEED_NAME] = "Porridge",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires porridge. Satisfying this need increases the chance of producing double yields.", },
            [4] = { [SpeciesData.NEED_NAME] = "Biscuits",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires biscuits. Satisfying this need increases the chance of producing double yields.", },
            [5] = { [SpeciesData.NEED_NAME] = "Pie",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pie. Satisfying this need increases the chance of producing double yields.", },
            [6] = { [SpeciesData.NEED_NAME] = "Coats",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires coats. Satisfying this need grants a Resolve bonus during the storm.", },
            [7] = { [SpeciesData.NEED_NAME] = "Leisure",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Tavern&comma; Monastery&comma; Market. It requires ale. Satisfying this need increases the chance of producing double yields.&quot;", },
        },
    },
    ["Beaver"] = {
        [SpeciesData.NAME] = "Beavers",
        [SpeciesData.DESCRIPTION] = "&quot;Beavers are hardworking and honest&comma; but also quite demanding. They are gifted woodworkers (<sprite name=&quot;&quot;wood&quot;&quot;>) and enjoy engineering (<sprite name=&quot;&quot;tech&quot;&quot;>). Beavers are also known for their innate talent for salesmanship.&quot;",
        [SpeciesData.ICON_FILENAME] = "beaver_temp",
        [SpeciesData.INITIAL_RESOLVE] = "10",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.00013",
        [SpeciesData.REPUTATION_THRESHOLD] = "30",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "2",
        [SpeciesData.NEEDS_INTERVAL] = "120",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Basic Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "All species require at least basic shelter from the constant rainfall and gusting winds.", },
            [2] = { [SpeciesData.NEED_NAME] = "Beaver Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;Beavers prefer to live in cozy&comma; wooden homes. Beaver Houses are required to fulfill this need.&quot;", },
            [3] = { [SpeciesData.NEED_NAME] = "Biscuits",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires biscuits. Satisfying this need increases the chance of producing double yields.", },
            [4] = { [SpeciesData.NEED_NAME] = "Pickled Goods",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pickled goods. Satisfying this need increases the chance of producing double yields.", },
            [5] = { [SpeciesData.NEED_NAME] = "Coats",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires coats. Satisfying this need grants a Resolve bonus during the storm.", },
            [6] = { [SpeciesData.NEED_NAME] = "Leisure",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Tavern&comma; Monastery&comma; Market. It requires ale. Satisfying this need increases the chance of producing double yields.&quot;", },
            [7] = { [SpeciesData.NEED_NAME] = "Education",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Temple&comma; Holy Guild House&comma; Guild House&comma; Explorers' Lodge. It requires scrolls. Satisfying this need increases the chance of producing double yields.&quot;", },
        },
    },
    ["Lizard"] = {
        [SpeciesData.NAME] = "Lizards",
        [SpeciesData.DESCRIPTION] = "&quot;Lizards are a very resilient species&comma; but their cold-blooded nature makes them more dependent on fire than any other species. They are very distrustful and religiously believe that true bonds are only forged in battle. They are very good with animals and meat production (<sprite name=&quot;&quot;meat&quot;&quot;>)&comma; and prefer to work in warm environments (<sprite name=&quot;&quot;fire&quot;&quot;>).&quot;",
        [SpeciesData.ICON_FILENAME] = "lizard_temp",
        [SpeciesData.INITIAL_RESOLVE] = "5",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.000195",
        [SpeciesData.REPUTATION_THRESHOLD] = "15",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "7",
        [SpeciesData.NEEDS_INTERVAL] = "100",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Basic Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "All species require at least basic shelter from the constant rainfall and gusting winds.", },
            [2] = { [SpeciesData.NEED_NAME] = "Lizard Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;Lizards prefer to live in warm&comma; dry homes. Lizard Houses are required to fulfill this need.&quot;", },
            [3] = { [SpeciesData.NEED_NAME] = "Jerky",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires jerky. Satisfying this need increases the chance of producing double yields.", },
            [4] = { [SpeciesData.NEED_NAME] = "Skewers",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires skewers. Satisfying this need increases the chance of producing double yields.", },
            [5] = { [SpeciesData.NEED_NAME] = "Pie",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pie. Satisfying this need increases the chance of producing double yields.", },
            [6] = { [SpeciesData.NEED_NAME] = "Pickled Goods",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pickled goods. Satisfying this need increases the chance of producing double yields.", },
            [7] = { [SpeciesData.NEED_NAME] = "Boots",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires boots. Satisfying this need grants a movement speed bonus.", },
        },
    },
    ["Harpy"] = {
        [SpeciesData.NAME] = "Harpies",
        [SpeciesData.DESCRIPTION] = "&quot;Harpies are a noble and fragile species&comma; with a primal&comma; aggressive side to them. They have lost their ability to fly due to centuries of exposure to the rain. They excel at alchemy (<sprite name=&quot;&quot;alchemy&quot;&quot;>) and love to work with cloth (<sprite name=&quot;&quot;cloth&quot;&quot;>).&quot;",
        [SpeciesData.ICON_FILENAME] = "harpy_temp",
        [SpeciesData.INITIAL_RESOLVE] = "5",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.000195",
        [SpeciesData.REPUTATION_THRESHOLD] = "15",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "3",
        [SpeciesData.NEEDS_INTERVAL] = "100",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Basic Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "All species require at least basic shelter from the constant rainfall and gusting winds.", },
            [1] = { [SpeciesData.NEED_NAME] = "Harpy Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;Harpies prefer to live in well-lit&comma; spacious homes. Harpy Houses are required to fulfill this need.&quot;", },
            [1] = { [SpeciesData.NEED_NAME] = "Jerky",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires jerky. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Paste",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires paste. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Boots",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires boots. Satisfying this need grants a movement speed bonus.", },
            [1] = { [SpeciesData.NEED_NAME] = "Coats",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires coats. Satisfying this need grants a Resolve bonus during the storm.", },
            [1] = { [SpeciesData.NEED_NAME] = "Education",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Temple&comma; Holy Guild House&comma; Guild House&comma; Explorers' Lodge. It requires scrolls. Satisfying this need increases the chance of producing double yields.&quot;", },
        },
    },
    ["Foxes"] = {
        [SpeciesData.NAME] = "Foxes",
        [SpeciesData.DESCRIPTION] = "&quot;Majestic and mysterious creatures&comma; deeply connected to the forest. They have developed a symbiosis with Blightrot through their long exposure to rainwater. Foxes are skilled scouts (<sprite name=&quot;&quot;foxforest&quot;&quot;>) and feel comfortable working in buildings infested with Blightrot (<sprite name=&quot;&quot;cysts&quot;&quot;>). They are highly susceptible to starvation&comma; yet are immune to Hostility.&quot;",
        [SpeciesData.ICON_FILENAME] = "fox_temp",
        [SpeciesData.INITIAL_RESOLVE] = "5",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.000195",
        [SpeciesData.REPUTATION_THRESHOLD] = "15",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "5",
        [SpeciesData.NEEDS_INTERVAL] = "120",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Basic Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "All species require at least basic shelter from the constant rainfall and gusting winds.", },
            [1] = { [SpeciesData.NEED_NAME] = "Fox Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;Foxes prefer to live in wooden&comma; well camouflaged houses. Fox Houses are required to fulfill this need.&quot;", },
            [1] = { [SpeciesData.NEED_NAME] = "Porridge",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires porridge. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Skewers",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires skewers. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Pickled Goods",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pickled goods. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Boots",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires boots. Satisfying this need grants a movement speed bonus.", },
            [1] = { [SpeciesData.NEED_NAME] = "Religion",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Temple&comma; Monastery&comma; Tea Doctor. It requires incense. Satisfying this need increases the chance of producing double yields.&quot;", },
        },
    },
    ["Frog"] = {
        [SpeciesData.NAME] = "Frogs",
        [SpeciesData.DESCRIPTION] = "&quot;A dignified and proud people with a unique affinity for wealth&comma; renowned for their exceptional skills in architecture and their love of water. They seem to be the least bothered by rain and prefer not to live in ordinary shelters. Frogs are skilled masons (<sprite name=&quot;&quot;stone&quot;&quot;>) and love working with rainwater (<sprite name=&quot;&quot;rainwater&quot;&quot;>).&quot;",
        [SpeciesData.ICON_FILENAME] = "frog_temp",
        [SpeciesData.INITIAL_RESOLVE] = "10",
        [SpeciesData.RESOLVE_RATE] = "0.15",
        [SpeciesData.REPUTATION_RATE] = "0.00013",
        [SpeciesData.REPUTATION_THRESHOLD] = "25",
        [SpeciesData.REPUTATION_THRESHOLD_INCREASE] = "5",
        [SpeciesData.NEEDS_INTERVAL] = "150",
        [SpeciesData.NEEDS] = {
            [1] = { [SpeciesData.NEED_NAME] = "Frog Housing",
                    [SpeciesData.NEED_DESCRIPTION] = "Frogs are at home in water. Frog Houses are required to fulfill this need.", },
            [1] = { [SpeciesData.NEED_NAME] = "Porridge",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires porridge. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Paste",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires paste. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Pie",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires pie. Satisfying this need increases the chance of producing double yields.", },
            [1] = { [SpeciesData.NEED_NAME] = "Boots",
                    [SpeciesData.NEED_DESCRIPTION] = "This need is fulfilled at the Hearth. It requires boots. Satisfying this need grants a movement speed bonus.", },
            [1] = { [SpeciesData.NEED_NAME] = "Brawling",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Clan Hall&comma; Forum&comma; Explorers' Lodge. Requires training gear. Satisfying this need increases the chance of producing double yields.&quot;", },
            [1] = { [SpeciesData.NEED_NAME] = "Religion",
                    [SpeciesData.NEED_DESCRIPTION] = "&quot;This need is fulfilled in: Temple&comma; Monastery&comma; Tea Doctor. It requires incense. Satisfying this need increases the chance of producing double yields.&quot;", },
        },
    },
}

return SpeciesData