Merge pull request #6 from CoolestDoggo/main

Fix skill for 1/1 placement
This commit is contained in:
tommy aka doge 2022-09-17 18:51:55 -04:00 committed by GitHub
commit 5cfd64f8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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