Class: CharacterInfos

CharacterInfos

new CharacterInfos(client)

A class to help calculate all of the stats for a Character.

Parameters:
Name Type Description
client socket

A client socket.

Source:

Members

AcupressureDefense

The AcupressureDefense the character has.

Source:

AllSkillsMastery

The AllSkillsMastery value the character has.

Source:

Amulet

Stats from the Characters Amulet.

Source:

Boots

Stats from the Characters Boots.

Source:

Cape

Stats for the Characters Cape.

Source:

Chance_Acupressure

The Chance of Acupressure the character has.

Source:

Chance_DeadlyBlow

The DeadlyBlow the character has.

Source:

Chance_ReturnDamage

The Chance to Return Damage that the character has.

Source:

Damage

The Damage the character does.

Source:

Defense

The Defense the character has.

Source:

DodgeRate

The DodgeRate the character has.

Source:

ElementalDamage

The ElementalDamage the character has.

Source:

ElementalDefense

The ElementalDefenses the character has.
Array has 3 indexes. Light, Shadow and Dark.

Source:

Gloves

Stats from the Characters Gloves.

Source:

HitRate

The HitRate the character has.

Source:

Luck

The Luck the character has.

Source:

MaxChi

The maximum Chi the character can have.

Source:

MaxHP

The maximum Health the character can have.

Source:

Outfit

Stats for the Characters Outfit.

Source:

Pet

Stats from the Characters pet.

Source:

Ring

Stats from the Characters Ring.

Source:

SkillMastery

The SkillMastery the character has.

Source:

updateCalls :Object

An internal object for handling the recursion that may happen on this object.

Type:
  • Object
Source:

Weapon

Stats for the Characters Weapon.

Source:

Methods

<static> updateAfterExpInfo_handleItemLookup(uFunc, charObjItem, callback, err, itemInfo)

This method is for handling the response from the database when looking up an item during the method updateAfterExpInfoupdateAfterExpInfo.

Parameters:
Name Type Description
uFunc function

The calculation function to execute.

charObjItem object

The object on Character.

callback function

The callback to execute when uFunc is finished.

err String

An error message or null from the database lookup of ItemID.

itemInfo object

The item info object returned from the database.

Source:

concatMastery(obj)

Concatenates the Skill Masterys that the character has together.

Parameters:
Name Type Description
obj object
Source:

getMasteryBonuses(item) → {object}

Gets the Mastery Bonuses from an item.

Parameters:
Name Type Description
item object

The item to get the Mastery Bonuses from.

Source:
Returns:
Type
object

print()

A simple console logging debug function.

Deprecated:
  • We will likely remove this in the future.
Source:

update(n, oncalc_callback)

Updates the stats on the character info.
This method may be called recursively by its self.

Parameters:
Name Type Description
n String | Array

A string of the type to update or an array of strings.

oncalc_callback function
Source:

updateAfterExpInfo(n, oncalc_callback)

Updates after the ExpInfo has been looked up.

Parameters:
Name Type Description
n Array

An array of calculations to preform an update for.

oncalc_callback function

The callback to call when done all calculations.

Source:

updateAll(onready_callback)

Updates all character calculations.

Parameters:
Name Type Description
onready_callback function

The function to call when done.

Source:
The contributors to the InfiniteSky project.
Documentation generated by JSDoc 3.4.0 on Sat Jul 16th 2016