Atrinik Server  4.0
Data Fields
process_treasure_table Struct Reference

#include <process_treasure.h>

Data Fields

uint32_t chance
 
bool(* set_bonus_func )(object *op, int difficulty, treasure_affinity_t *affinity, double *item_power, int bonus)
 

Detailed Description

Holds data about a single bonus type.

Definition at line 38 of file process_treasure.h.

Field Documentation

uint32_t process_treasure_table::chance

Chance for the bonus to roll.

Definition at line 40 of file process_treasure.h.

bool(* process_treasure_table::set_bonus_func)(object *op, int difficulty, treasure_affinity_t *affinity, double *item_power, int bonus)

Function for setting a bonus for the specified bonus type.

Parameters
opObject.
difficultyDifficulty level.
affinityTreasure affinity.
[out]item_powerItem power adjustment.
bonusBonus value.
Returns
Whether a bonus was applied.

Definition at line 58 of file process_treasure.h.


The documentation for this struct was generated from the following file: