Fix skill for 1/1 placement

This commit is contained in:
CoolestDoggo 2022-09-17 18:43:54 -04:00
parent 52c7ee761f
commit af6fcf8227

View File

@ -60,8 +60,8 @@ commands:Add('skill',{},'skill <username|mention|"me"> <game> <style> <sort?=ski
time.Points = API.CalculatePoint(rank,count) time.Points = API.CalculatePoint(rank,count)
time.Rank = rank time.Rank = rank
time.MapCompletionCount = count time.MapCompletionCount = count
time.Skill = API.FormatSkill((count-rank)/(count-1)) time.SkillRaw = rank == 1 and 1 or (count-rank)/(count-1)
time.SkillRaw = (count-rank)/(count-1) time.Skill = API.FormatSkill(time.SkillRaw)
test_a=test_a+(count-rank) test_a=test_a+(count-rank)
test_b=test_b+(count-1) test_b=test_b+(count-1)
end end