diff --git a/src/main/cpp/net/eagle0/shardok/library/PercentileRollOdds.hpp b/src/main/cpp/net/eagle0/shardok/library/PercentileRollOdds.hpp index b5d20b4149..32a290acca 100644 --- a/src/main/cpp/net/eagle0/shardok/library/PercentileRollOdds.hpp +++ b/src/main/cpp/net/eagle0/shardok/library/PercentileRollOdds.hpp @@ -22,13 +22,13 @@ namespace shardok { using PercentileRollOdds = net::eagle0::shardok::storage::Odds; using OtherFactor = net::eagle0::shardok::storage::Odds_OtherFactor; -double BonusFromStat(double stat); +[[nodiscard]] double BonusFromStat(double stat); -int16_t AverageBonusFromStats(const std::vector &stats); +[[nodiscard]] int16_t AverageBonusFromStats(const std::vector &stats); -OtherFactor MakeOtherFactor(int value, const std::string &id); +[[nodiscard]] OtherFactor MakeOtherFactor(int value, const std::string &id); -PercentileRollOdds MakeOdds( +[[nodiscard]] PercentileRollOdds MakeOdds( int base = 0, int terr = 0, int weath = 0, @@ -36,7 +36,7 @@ PercentileRollOdds MakeOdds( int statF = 0, std::span others = {}); -PercentileRollOdds MakeOdds( +[[nodiscard]] PercentileRollOdds MakeOdds( int base, int terr, int weath, @@ -44,11 +44,11 @@ PercentileRollOdds MakeOdds( const std::vector &stats, std::span others = {}); -int16_t GetTotalOdds(const PercentileRollOdds &odds); +[[nodiscard]] int16_t GetTotalOdds(const PercentileRollOdds &odds); -bool PercentileRollSucceeds(const PercentileRollOdds &odds, double roll); +[[nodiscard]] bool PercentileRollSucceeds(const PercentileRollOdds &odds, double roll); -int16_t GetSuccessChance(const PercentileRollOdds &odds); +[[nodiscard]] int16_t GetSuccessChance(const PercentileRollOdds &odds); } // namespace shardok #endif // EAGLE0_SHARDOK_LIBRARY_PERCENTILE_ROLL_ODDS_HPP