-
Notifications
You must be signed in to change notification settings - Fork 35
Consumable items
Wouterz90 edited this page Aug 4, 2018
·
6 revisions
You only need to make the modifier and declare it with GetIntrinsicModifier() The modifier guidelines can be copied from any other modifier based on consumable items.
Require this file require("abilities/items/consumable_baseclass") LinkLuaModifier("modifier_my_modifier",abilities/items/MYFILE.lua",LUA_MODIFIER_MOTION_NONE)
LUA
function item_my_item_consumable:GetIntrinsicModifierName() return "modifier_my_modifier" end
TS
class item_my_item_consumable extends item_consumable { GetIntrinsicModifierName() { return "modifier_my_modifier"; } }