Log in to ZYGOR
Log in with social media
OR
Log in with Zygor account

Announcement

Collapse
No announcement yet.

Faction.lua - count # to rep

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Faction.lua - count # to rep

    I love the detailed reputation thing you have.. use it alot special in HC when seen who i gain rep to.. But I think it missed a counting thing.. so I took a look at the code..

    Basic it only need to add a simpel formula
    Code:
    math.floor((max-val)/(val-oldval))
    so it get to look like this
    Code:
    if oldval and self.db.profile.analyzereps then
    	print(("|cffbbbbff%s|r: %s%d (%.1f%%) - %s  (#%s)"):format(
    	name,
    	val-oldval>=0 and "+" or "", val-oldval,
    	oldmin==min and (progress-oldprog)*100 or progress*100,
    	rep:Going(true),
    	math.floor((max-val)/(val-oldval))
    	))
    end
    Hope you will add it.. as im tried of editing the faction.lua each time I update..
Working...
X