Athena.controllers.itemDrops ​
Functions ​
append ​
Usage
Athena.controllers.itemDrops.append(itemDrop
): string
Append item drop information to the server.
Do not use this for creating item drops the players can pickup.
These are mostly visual. Refer to Athena.systems.inventory.drops
to make actual item drops.
Returns a uid or generates one if not specified.
Parameters ​
Name | Type |
---|---|
itemDrop | ItemDrop |
Returns ​
string
Defined in ​
server/controllers/itemDrops.ts:37
override ​
Usage
Athena.controllers.itemDrops.override(functionName
, callback
): any
Used to override any item drop streamer functionality.
Parameters ​
Name | Type |
---|---|
functionName | "append" |
callback | (itemDrop : ItemDrop ) => string |
Returns ​
any
Defined in ​
server/controllers/itemDrops.ts:74
Usage
Athena.controllers.itemDrops.override(functionName
, callback
): any
Used to override any item drop streamer functionality.
Parameters ​
Name | Type |
---|---|
functionName | "remove" |
callback | (id : string ) => boolean |
Returns ​
any
Defined in ​
server/controllers/itemDrops.ts:75
remove ​
Usage
Athena.controllers.itemDrops.remove(id
): boolean
Removes an item drop in-world.
Parameters ​
Name | Type |
---|---|
id | string |
Returns ​
boolean