Änderungen

114 Bytes hinzugefügt ,  06:29, 19. Feb. 2023
keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:  
local profmult = tonumber(frame.args.pm)
 
local profmult = tonumber(frame.args.pm)
 
local ulang = string.upper(frame.args.ll)
 
local ulang = string.upper(frame.args.ll)
 +
local toFormatOrNotToFormat = string.lower(frame.args.fm)
    
if ((baseprice == nil) or (baseprice == 0)) then return 0 end
 
if ((baseprice == nil) or (baseprice == 0)) then return 0 end
Zeile 61: Zeile 62:     
local sum = math.floor(math.floor(profmult * 10 * math.floor(qualitymult * artisanprice)) / 10)
 
local sum = math.floor(math.floor(profmult * 10 * math.floor(qualitymult * artisanprice)) / 10)
 +
 +
if toFormatOrNotToFormat == true then return sum end
    
local formattedSum = mw.language.getContentLanguage():formatNum(sum)
 
local formattedSum = mw.language.getContentLanguage():formatNum(sum)
105.853

Bearbeitungen