Module:Traits: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 13: Line 13:
     end
     end
     traits = split(traits);
     traits = split(traits);
     local skill = args[2]
     local skill = args[7]


     -- Attribute effect
     -- Attribute effect
Line 20: Line 20:
         [2] = {}
         [2] = {}
     }
     }
    local e1 = args.effect1;
    local e2 = args.effect2;
     if args.effect1 == nil then
     if args.effect1 == nil then
         e1 = args[4]
         args.effect1 = args[4]
     end
     end
     if args.effect2 == nil then
     if args.effect2 == nil then
         e2 = args[5]
         args.effect2 = args[5]
     end
     end
     if e1 ~= nil then
     if args.effects1 ~= nil then
         effects[1] = split(e1)
         effects[1] = split(args.effects1)
     end
     end
     if e2 ~= nil then
     if args.effects2 ~= nil then
         effects[2] = split(e2)
         effects[2] = split(args.effects2)
     end
     end