@tomujintech/tiny-tools
v0.1.16
Published
Томүжин Технологи ХХК нээлттэй хэрэглэх функцууд
Downloads
14
Readme
Battle Functions
6 оронтой санамсаргүй сонгогдсон тэмдэгтүүдийг буцаана.
generateString
Хэрэглэгчийн түвшинг тодорхойлно. Тухайн хэрэглэгчийн XP аль түвшинд байгааг харуулна.
calculateLevel
TBR бодох үед ашиглана.
myTbr - өөрийн TBR
opponentTbr - өрсөлдөгчийн TBR
result - 1 | 0.5 | 0
WIN - 1 DRAW - 0.5 LOSE - 0
calculateTBR
Нэг асуултаас авах онооны хэмжээг тооцоолно.
calculateTBP
Асуултын түвшин болон хэрэглэгчийн TBR -аас шалтгаалж TBP тооцно.
scoreToTBR
TBR -ийн оноо аль "League" -д байгааг харуулна.
getLeague
Хэрэглэгчийн TBR -ийг шалгаад түвшинг тооцоолно. Аль түвшингийн үсэг байгааг харуулна
getRankSymbol
Дараагийн түвшинд хүрэхийн тулд ямар TBP хэрэгтэйг харуулна.
nextLevelXp
Decorators
REST API -ийн Authentication нээхэд ашиглана
Public
Utils
REST API дуудахад зориулагдсан
Connector