Module:Traits: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 73: Line 73:
             [2] = args.duration_pvp,
             [2] = args.duration_pvp,
             [3] = args.duration_enhanced
             [3] = args.duration_enhanced
        }
        t.details_hits = {
            [1] = args.hits or -1,
            [2] = args.hits_pvp,
            [3] = args.hits_enhanced
         }
         }


Line 134: Line 139:
         t.multi_cooldown = args['cd' .. t.index] or default_multiplier
         t.multi_cooldown = args['cd' .. t.index] or default_multiplier
         t.multi_duration = args['duration' .. t.index] or default_multiplier
         t.multi_duration = args['duration' .. t.index] or default_multiplier
        t.multi_damage = args['damage' .. t.index]
         t.chance = args['chance' .. t.index]
         t.chance = args['chance' .. t.index]
         t.unnamed_2 = args['desc1_trait' .. t.index]
         t.unnamed_2 = args['desc1_trait' .. t.index]
Line 203: Line 209:
                     if current_data == 'mp_cost' then
                     if current_data == 'mp_cost' then
                         self[k][k2] = self[k][k2] .. ' MP'
                         self[k][k2] = self[k][k2] .. ' MP'
                     else
                     elseif current_data ~= 'hits' then
                         self[k][k2] = self[k][k2] .. ' Seconds'
                         self[k][k2] = self[k][k2] .. ' Seconds'
                     end
                     end
Line 350: Line 356:
                     CD = self.multi_cooldown,
                     CD = self.multi_cooldown,
                     DURATION = self.multi_duration,
                     DURATION = self.multi_duration,
                     CHANCE = self.chance
                     CHANCE = self.chance,
                    DAMAGE = self.multi_damage
                 }
                 }
             }):attr('rowspan', rowspan)
             }):attr('rowspan', rowspan)