ItemDefinitionSocketable ​
Inherits: ItemDefinition < DatabaseResource < Resource
Socketable items that can be inserted into socket slots on equipment to provide additional effects The entity that owns the socketed equipment receives the socketable's effect
Properties ​
int | socket_effect | |
Array[int] | allowed_sockets | [] |
Methods ​
bool | can_use( user: Entity, item_instance: ItemInstance = null ) |
bool | execute_use( user: Entity, item_instance: ItemInstance ) |
String | get_use_action_name( _item_instance: ItemInstance ) |
bool | is_allowed_in_socket( socket_defintion: SocketDefinition ) |
EffectInstance | apply_socket_effect( item_instance: ItemInstance, socket_owner: Entity ) |
Property descriptions ​
int socket_effect ​
The effect applied to the socket owner when this item is socketed
Array[int] allowed_sockets = [] ​
Array of socket types this item can be inserted into
Method descriptions ​
bool can_use( user: Entity, item_instance: ItemInstance = null ) ​
Socketable items cannot be used directly - they must be socketed into equipment
bool execute_use( user: Entity, item_instance: ItemInstance ) ​
Socketable items do nothing when "used" - they're meant to be socketed
String get_use_action_name( _item_instance: ItemInstance ) ​
Get display name for socketable action (though they can't be used)
bool is_allowed_in_socket( socket_defintion: SocketDefinition ) ​
Check if this socketable can be inserted into a specific socket type
EffectInstance apply_socket_effect( item_instance: ItemInstance, socket_owner: Entity ) ​
Apply socket effect and return the effect instance for tracking