Method | Description | |
---|---|---|
Complete ( |
Completes skill, creating the item.
|
|
GetTime ( string method ) : int | ||
Init ( ) : void |
Sets up subscriptions required for skill training.
|
|
Prepare ( |
Prepares skill, specifying the ingredients.
|
Method | Description | |
---|---|---|
CheckProp ( |
Checks prop for method, returns true if everything is in order.
|
|
CheckRank ( |
Checks rank for method, returns true if everything is in order.
|
|
CheckTools ( |
Checks tools for method, returns true if everything is in order.
|
|
GetRating ( int val ) : Rating |
Returns star rating based on quality.
|
|
JudgeQuality ( RecipeData recipe, List |
Calculates quality based on recipe and ingredients. The formula used in this method is unofficial. While it does feel very similar in some test cases, it could potentially create very different results. Officials also RNG the results, which this method currently does not. The Help fields in the return value specify a tip on what went wrong with the cooking attempt, if certain requirements are fulfilled. In that case it will set the item to the item in question, and the amount to the amount the ingredient differed from the recipe. If the value is lower than 0, it was less, if it's greater, it was more. If no helpful tip could be found, item is null. |
|
OnPlayerUsesItem ( |
Handles part of the skill training.
|
|
OnSuccessfulCooking ( |
Handles part of the skill training.
|
public Complete ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
return | void |
public Prepare ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
return | bool |