-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Loyalty System (10.74) #4636
base: master
Are you sure you want to change the base?
Conversation
|
||
void Player::setLoyaltyBonusSkill(uint8_t skill) | ||
{ | ||
if (skill < SKILL_FIRST || skill > SKILL_LAST) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
|
||
Skill Vocation::getSkillByAccumulatedTries(uint8_t skill, uint64_t tries) | ||
{ | ||
if (skill < SKILL_FIRST || skill > SKILL_LAST) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
|
||
uint64_t Vocation::getAccumulatedReqSkillTries(uint8_t skill, uint16_t level) | ||
{ | ||
if (skill < SKILL_FIRST || skill > SKILL_LAST) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
@@ -140,7 +140,7 @@ | |||
|
|||
uint64_t Vocation::getReqSkillTries(uint8_t skill, uint16_t level) | |||
{ | |||
if (skill > SKILL_LAST) { | |||
if (skill < SKILL_FIRST || skill > SKILL_LAST) { |
Check warning
Code scanning / CodeQL
Comparison result is always the same Warning
float ConfigManager::getLoyaltyBonus(uint16_t points) const | ||
{ | ||
auto it = std::find_if(loyaltyBonuses.begin(), loyaltyBonuses.end(), [points](auto&& bonus) { | ||
auto&& [minPoints, maxPoints, _] = bonus; |
Check notice
Code scanning / CodeQL
Unused local variable Note
float ConfigManager::getLoyaltyBonus(uint16_t points) const | ||
{ | ||
auto it = std::find_if(loyaltyBonuses.begin(), loyaltyBonuses.end(), [points](auto&& bonus) { | ||
auto&& [minPoints, maxPoints, _] = bonus; |
Check notice
Code scanning / CodeQL
Unused local variable Note
Pull Request Prelude
Changes Proposed
Issues addressed:
#3871 Version 10.74 (The Loyalty System was introduced.)