Module:Test3: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 31: Line 31:


     function forEachDamageType(func)
     function forEachDamageType(func)
        mw.logObject(func)
         for _, damage_type in ipairs({ 'min', 'max' }) do
         for _, damage_type in ipairs({ 'min', 'max' }) do
             func(damage_type)
             func(damage_type)
Line 143: Line 145:
             end
             end


            mw.logObject(args['alias' .. passive_index])
           
             PASSIVES[tonumber(passive_index)] = {
             PASSIVES[tonumber(passive_index)] = {
                 name = passive_name,
                 name = passive_name,
Line 152: Line 156:
                 exist = frame:preprocess('{{#ifexist:' .. passive_name .. '|true|false}}') == 'true'
                 exist = frame:preprocess('{{#ifexist:' .. passive_name .. '|true|false}}') == 'true'
             }
             }
         elseif not string.find(v, '[a-hj-zA-HJ-Z' .. CJK_SLOT .. ']+') then
         elseif not string.find(v, '[a-hj-zA-HJ-Z]+') then
             --[[
             --[[
             Change how args are received.
             Change how args are received.