프로퍼티 | 타입 | 설명 | |
---|---|---|---|
SuccessTable | int[] |
메소드 | 설명 | |
---|---|---|
DecrementMaterialItems ( |
Decrements the given materials.
|
|
FinishItem ( |
Sets appropriete flags, bonuses, and signatures, and sends notices about quality and bonuses.
|
|
GetItemsToDecrement ( |
Returns list of items that have to be decremented to satisfy the manual's required materials. Actual return value is whether this process was successful, or if materials are missing. Handles necessary messages and logs.
|
|
GetSuccessChance ( |
Returns success chance between 0 and 100. Unofficial. It's unlikely that officials use a table, instead of a formula, but for a lack of formula, we're forced to go with this. The success rates actually seem to be rather static, so it should work fine. We have all possible combinations, and with this function we do get the correct base chance. |
|
ReadMaterials ( |
Reads materuals from packet, starting with the count. Returns false if a material item wasn't found, after logging it.
|
메소드 | 설명 | |
---|---|---|
GetBonusesFor ( Item item, int quality ) : int>.Dictionary |
Returns a list of bonuses that the given item would get with the given quality. Reference: http://mabination.com/threads/85245-Player-made-Item-Quality |
protected DecrementMaterialItems ( |
||
creature | ||
toDecrement | List |
|
rnd | ||
리턴 | void |
protected FinishItem ( |
||
creature | ||
skill | Skill | |
manualData | ManualData | |
finishId | int | /// The id of the finish to use, make sure to get the actual /// finish id, which in Blacksmithing comes from the Prepare /// that switches to the mini-game. /// |
item | Item | |
quality | int | |
리턴 | void |
protected GetItemsToDecrement ( |
||
creature | ||
stage | Stage | |
manualData | ManualData | |
requiredMaterials | List |
|
materials | List |
List of materials the client supplies. |
toDecrement | List |
|
리턴 | bool |
protected GetSuccessChance ( |
||
creature | ||
skill | Skill | |
manualRank | SkillRank | |
리턴 | int |
protected ReadMaterials ( |
||
creature | ||
packet | Packet | |
materials | List |
|
리턴 | bool |