Module:Sandbox/User:Teamtoto/LuaModule: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 23: Line 23:
local version = decoded["gameversion"]
local version = decoded["gameversion"]
local genotype = decoded["modules"][1]["data"]["Genotype"]
local genotype = decoded["modules"][1]["data"]["Genotype"]
local classCalled = "Calling: "
local classCalled = "Calling"
local extCalled = "Mutations: "
local extCalled = "Mutations"
local subtype = decoded["modules"][2]["data"]["Subtype"]
local subtype = decoded["modules"][2]["data"]["Subtype"]
local baseStat = 10
local baseStat = 10
Line 41: Line 41:
if genotype == "True Kin" then
if genotype == "True Kin" then
-- if true kin, stats are [3] and cybernetics are [4]
-- if true kin, stats are [3] and cybernetics are [4]
classCalled= "Caste: "
classCalled= "Caste"
extCalled = "Cybernetics: "
extCalled = "Cybernetics"
stats = decoded["modules"][3]["data"]["PointsPurchased"]
stats = decoded["modules"][3]["data"]["PointsPurchased"]
-- No cybernetics means extra toughness
-- No cybernetics means extra toughness