FANDOM


 
-- <nowiki>
local p = {}
 
local specieslist = {
    --Species name
    --Farming level
    --Food
    --Breeding time
    --Grow time (amount, unit - egg to baby), e.g. ,5,'minutes',
    --Grow time (amount, unit - baby to adolescent)
    --Grow time (amount, unit - adolescent to adult)
    --Grow time (amount, unit - adult to elder)
    --Experience gained for each growth stage (egg->baby)
    --Experience gained for each growth stage (baby->adolescent)
    --Experience gained for each growth stage (adolescent->adult)
    --Experience gained for each growth stage (adult->elder)
    --Default amount of beans at adolescent stage
    --If egg stage exists so can also be sold for beans then 'yes' else 'no'
    --Buyer
    --Alternative text for buyer
    {'rabbit',17,'Small','Seeds, vegetables, fruits, flowers',5,'minutes',0,'minutes',16,'minutes',28,'minutes',36,'minutes',0,100,175,225,25,'no','Myfi (rabbit buyer)',''},
    {'chicken',28,'Small','Seeds, vegetables, fruits',1,'hour',20,'minutes',30,'minutes',60,'minutes',90,'minutes',250,375,750,1125,40,'yes','Henrietta (chicken chaser)',''},
    {'chinchompa',54,'Small','Seeds, vegetables, fruits, flowers, mushrooms, meat, fish',2,'hours',0,'minutes',8,'hours',14,'hours',18,'hours',0,6000,10500,13500,250,'no','Mieliki Tapio','Mieliki Tapio (chinchompa collector)'},
    {'sheep',35,'Medium','Vegetables, fruits, flowers',2,'hour',0,'minutes',30,'minutes',52.5,'minutes',67.5,'minutes',0,250,437.5,562.5,80,'no','Ralph (sheep hugger)',''},
    {'spider',64,'Medium','Seeds, meat',6,'hours',2,'hours',3,'hours',6,'hours',9,'hours',2000,3000,6000,9000,250,'yes','Rumbleguts (spider shopper)',''},
    {'zygomite',81,'Medium','Mushrooms',8,'hours',0,'minutes',16,'hours',28,'hours',36,'hours',0,16000,28000,36000,850,'no','Zoe (zygomite trader)',''},
    {'cow',49,'Large','Vegetables, fruits, flowers',5,'hours',0,'minutes',80,'minutes',140,'minutes',180,'minutes',0,1000,1750,2250,170,'no','Milkshake (cow fancier)',''},
    {'yak',71,'Large','Vegetables, fruits, flowers',5,'hours',0,'minutes',16,'hours',28,'hours',36,'hours',0,13000,22750,29250,750,'no','Prezleek','Prezleek (yak buyer)'},
    {'dragon',92,'Large','Meat, fish',18,'hours',16,'hours',24,'hours',48,'hours',72,'hours',20000,30000,60000,90000,2000,'yes','The Raptor','Raptor (dragon expert)'},
    }
 
function p.giveinfo(frame)
    local args = frame:getParent().args
    local species = args.species or ''
    species = species:lower()
    local param = args.param or ''
    param = param:lower()
 
    if species ~= '' and param ~= '' then
        local level = 0
        local pen = ''
        local food = ''
        local breeding = 0
        local breedingunit = ''
        local babytime = 0
        local babytimeunit = ''
        local adolescenttime = 0
        local adolescenttimeunit = ''
        local adulttime = 0
        local adulttimeunit = ''
        local eldertime = 0
        local eldertimeunit = ''
        local babyxp = 0
        local adolescentxp = 0
        local adultxp = 0
        local elderxp = 0
        local beans = 0
        local eggbeans = 'no'
        local buyer = ''
        local buyeralttxt = ''
 
        for i=1,9 do
            if species == specieslist[i][1] then
                level = specieslist[i][2]
                pen = specieslist[i][3]
                food = specieslist[i][4]
                breeding = specieslist[i][5]
                breedingunit = specieslist[i][6]
                babytime = specieslist[i][7]
                babytimeunit = specieslist[i][8]
                adolescenttime = specieslist[i][9]
                adolescenttimeunit = specieslist[i][10]
                adulttime = specieslist[i][11]
                adulttimeunit = specieslist[i][12]
                eldertime = specieslist[i][13]
                eldertimeunit = specieslist[i][14]
                babyxp = specieslist[i][15]
                adolescentxp = specieslist[i][16]
                adultxp = specieslist[i][17]
                elderxp = specieslist[i][18]
                beans = specieslist[i][19]
                eggbeans = specieslist[i][20]
                buyer = specieslist[i][21]
                buyeralttxt = specieslist[i][22]
                break
            end
        end
 
        if param == 'level' then
            return level
        elseif param == 'pen' then
            return pen
        elseif param == 'food' then
            return food
        elseif param == 'breeding' then
            return breeding
        elseif param == 'breedingunit' then
            return breedingunit
        elseif param == 'babytime' then
            return babytime
        elseif param == 'babytimeunit' then
            return babytimeunit
        elseif param == 'adolescenttime' then
            return adolescenttime
        elseif param == 'adolescenttimeunit' then
            return adolescenttimeunit
        elseif param == 'adulttime' then
            return adulttime
        elseif param == 'adulttimeunit' then
            return adulttimeunit
        elseif param == 'eldertime' then
            return eldertime
        elseif param == 'eldertimeunit' then
            return eldertimeunit
        elseif param == 'babyxp' then
            return babyxp
        elseif param == 'adolescentxp' then
            return adolescentxp
        elseif param == 'adultxp' then
            return adultxp
        elseif param == 'elderxp' then
            return elderxp
        elseif param == 'beans' then
            return beans
        elseif param == 'eggbeans' then
            return eggbeans
        elseif param == 'buyer' then
            return buyer
        elseif param == 'buyeralttxt' then
            if buyeralttxt ~= '' then
                return buyeralttxt
            else
                return buyer
            end
        end
 
    end
end
 
return p
Community content is available under CC-BY-SA unless otherwise noted.