mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Rules] Add Skills:TrivialTradeskillCombinesNoFail Rule (#3481)
* Add TrivialNoFail rule * feedback fixes * Update tradeskills.cpp * Update 1392_recipe_learning.sql * Update ruletypes.h --------- Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
@@ -1050,6 +1050,11 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
// above critical still stands.
|
||||
// Mastery modifier is: 10%/25%/50% for rank one/two/three
|
||||
chance = 95.0f + (float(user_skill - spec->trivial) / 40.0f);
|
||||
|
||||
if (RuleB(Skills, TrivialTradeskillCombinesNoFail)) {
|
||||
chance = 100;
|
||||
}
|
||||
|
||||
MessageString(Chat::Emote, TRADESKILL_TRIVIAL);
|
||||
} else if(chance < 5) {
|
||||
// Minimum chance is always 5
|
||||
|
||||
Reference in New Issue
Block a user