RankedSkillNode ​
Inherits: SkillNode < Resource
Multi-rank skill node with sequential rewards per rank
Properties ​
Array[int] | point_costs_per_rank | [1] # Cost for each rank [rank1, rank2, rank3...] |
int | max_ranks | 1 |
Array[Array] | rewards_per_rank | [] |
Methods ​
int | get_max_ranks() |
int | get_point_cost_for_rank( rank: int ) |
Array | get_rewards_for_rank( rank: int ) |
void | add_reward_to_rank( rank: int, reward: Reward ) |
bool | remove_reward_from_rank( rank: int, reward: Reward ) |
void | clear_rewards_for_rank( rank: int ) |
int | get_total_rewards_count() |
Array[Dictionary] | validate() |
Property descriptions ​
Array[int] point_costs_per_rank ​
========== RANKED NODE PROPERTIES ==========
int max_ranks = 1 ​
How many times can be taken
Array[Array] rewards_per_rank = [] ​
rewards_per_rank[0] = rank 1 rewards
Method descriptions ​
int get_max_ranks() ​
========== IMPLEMENTATION OF ABSTRACT METHODS ==========
int get_point_cost_for_rank( rank: int ) ​
The skill points the node costs for a rank (the first rank is 1).
Array get_rewards_for_rank( rank: int ) ​
The rewards of a rank (the first rank is 1).
void add_reward_to_rank( rank: int, reward: Reward ) ​
========== REWARD MANAGEMENT ==========
bool remove_reward_from_rank( rank: int, reward: Reward ) ​
Takes a reward off a rank. False when it was not there.
void clear_rewards_for_rank( rank: int ) ​
Removes every reward of a rank.
int get_total_rewards_count() ​
How many rewards the node has over all its ranks.
Array[Dictionary] validate() ​
========== VALIDATION ==========