- Source:
Classes
Members
(static) globals
Globals
Properties:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
view |
Koviko~View | IdleLoops view object | ||||||
actions |
Object | IdleLoops actions object
Properties
|
||||||
nextActionsDiv |
HTMLElement | Action list container | ||||||
statList |
Array.<string> | Names of all stats | ||||||
skills |
Object.<string, Koviko~Skill> | Skill objects | ||||||
towns |
Array.<Koviko~Town> | Town objects | ||||||
dungeons |
Array.<Array.<Koviko~DungeonFloor>> | Dungeon objects | ||||||
fibonacci |
function | Calculates the value of the given index of the Fibonacci sequence | ||||||
precision3 |
function | Rounds numbers to a precision of 3 | ||||||
translateClassNames |
function | Converts an action name to a Koviko~Action object | ||||||
getLevelFromExp |
function | Converts an amount of stat experience into a level | ||||||
getSkillLevelFromExp |
function | Converts an amount of skill experience into a level | ||||||
getTotalBonusXP |
function | Determine the current amount of bonus XP from talents and soulstones | ||||||
goldCostLocks |
function | Determine the amount of gold gained from lockpicking | ||||||
goldCostSQuests |
function | Determine the amount of gold gained from short quests | ||||||
goldCostLQuests |
function | Determine the amount of gold gained from long quests |
- Source:
Type Definitions
Action
IdleLoops action
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | Name of the action | |
expMult |
number | Experience multiplier (typically 1) | |
townNum |
number | The town to which the action belongs | |
varName |
string | The unique identifier used for variables in the `towns` array | |
segments |
number |
<optional> |
Amount of segments per loop |
dungeonNum |
number |
<optional> |
The dungeon to which the action belongs |
stats |
Object.<string, number> | Stats that affect and are affected by the action | |
loopStats |
Array.<string> |
<optional> |
Stats used in the respective segment per loop |
manaCost |
function | Mana cost to complete the action |
- Source:
DungeonFloor
IdleLoops dungeon floor
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
ssChance |
number | Chance to get a soulstone |
completed |
number | Amount of times completed |
- Source:
ListedAction
Represents an action in the action list
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
name |
string | Name of the action |
loops |
number | Number of loops to perform |
- Source:
Skill
IdleLoops skill
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
exp |
number | Experience |
- Source:
Town
IdleLoops town, which includes total progression for all actions
Type:
- Object
- Source:
View
IdleLoops view
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
updateNextActions |
function | Method responsible for updating the view |
- Source: