C# Класс Aura.Channel.Skills.Life.Tailoring

Наследование: Aura.Channel.Skills.Base.CreationSkill, IPreparable, ICompletable
Показать файл Открыть проект

Открытые методы

Метод Описание
Complete ( Creature creature, Skill skill, Packet packet ) : void

Completes skill, creating the items.

Prepare ( Creature creature, Skill skill, Packet packet ) : bool

Prepares the skill.

Приватные методы

Метод Описание
CalculateQuality ( List stitches, int offsetX, int offsetY ) : int

Calculates quality, based on the stitches made by the player.

Calculates the distances between the points and the stitches made by the player and calculates the quality based on the total of all distances. Unofficial, but seems to work rather well. Except for 100 quality, which is practically impossible with this atm.

CheckTools ( Creature creature ) : bool

Checks right and left hand for kits and manuals and sends message if something is missing. Returns whether the necessary tools are there or not.

OnProgress ( Creature creature, Skill skill, ProgressResult result ) : void

Handles skill training by progress.

ReadStitches ( Creature creature, Packet packet, List &stitches ) : bool

Reads stitches from packet, starting with the bool, saying whether there are any. Returns false if bool is false.

Описание методов

Complete() публичный Метод

Completes skill, creating the items.
public Complete ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
Результат void

Prepare() публичный Метод

Prepares the skill.
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
Результат bool