/tg/ Station 13 - Modules - TypesVar Details - Proc Details

achievement_data

Datum that handles

Vars

dataUp to date list of all achievements and their info.
initializedHave we done our set-up yet?
original_cached_dataOriginal status of achievement.
owner_ckeyCkey of this achievement data's owner

Procs

get_achievement_statusGetter for the status/score of an achievement
get_changed_dataGets list of changed rows in MassInsert format
get_dataUpdates local cache with db data for the given achievement type if it wasn't loaded yet.
unlockUnlocks an achievement of a specific type. achievement type is a typepath to the award, user is the mob getting the award, and value is an optional value to be used for defining a score to add to the leaderboard

Var Details

data

Up to date list of all achievements and their info.

initialized

Have we done our set-up yet?

original_cached_data

Original status of achievement.

owner_ckey

Ckey of this achievement data's owner

Proc Details

get_achievement_status

Getter for the status/score of an achievement

get_changed_data

Gets list of changed rows in MassInsert format

get_data

Updates local cache with db data for the given achievement type if it wasn't loaded yet.

unlock

Unlocks an achievement of a specific type. achievement type is a typepath to the award, user is the mob getting the award, and value is an optional value to be used for defining a score to add to the leaderboard