hive_upgrade

Vars | |
category | name of the category it belongs to, string, used in ui |
---|---|
desc | desc of the upgrade, string, used in ui |
gamemode_flags | gamemode flags to whether this upgrade is purchasable |
icon | string for UI icon in buyable_icons.dmi for this upgrade |
name | name of the upgrade, string, used in ui |
psypoint_cost | Psy point cost, float |
times_bought | int of the times we bought this upgrade |
upgrade_flags | upgrade flag var |
Procs | |
can_buy | Whether we can buy this upgrade, used to set the menu button as grey or not returns true on can false on cannot Arguments: |
on_buy | Buys the upgrade and applies its effects returns true on success false on fail Arguments: |
Var Details
category

name of the category it belongs to, string, used in ui
desc

desc of the upgrade, string, used in ui
gamemode_flags

gamemode flags to whether this upgrade is purchasable
icon

string for UI icon in buyable_icons.dmi for this upgrade
name

name of the upgrade, string, used in ui
psypoint_cost

Psy point cost, float
times_bought

int of the times we bought this upgrade
upgrade_flags

upgrade flag var
Proc Details
can_buy
Whether we can buy this upgrade, used to set the menu button as grey or not returns true on can false on cannot Arguments:
- buyer: Xeno trying to buy this upgrade
- silent: whether to send error messages to the buyer
on_buy
Buys the upgrade and applies its effects returns true on success false on fail Arguments:
- buyer: Xeno trying to buy this upgrade