物品API
钩子函数(物品脚本:contents/item_ai/...)
void OnUseFromPlayer(Player player, ItemSlot itemSlot, Hitbox hitbox, double fireX, double fireY)
function OnUseFromPlayer(player, itemSlot, hitbox, fireX, fireY)
endvoid OnUseFromNpc(Npc npc, ItemSlot itemSlot, Hitbox hitbox, double fireX, double fireY)
function OnUseFromNpc(Npc npc, itemSlot, hitbox, fireX, fireY)
endbool CheckShoot(ItemSlot itemSlot, Hitbox hitbox, int consumeItemID, int projectileID, double fireX, double fireY, double shootSpeed, double shootAngle, Attack baseAttack)
bool OnShootFromPlayer(Player player, ItemSlot itemSlot, Hitbox hitbox, int consumeItemID, int projectileID, double fireX, double fireY, double shootSpeed, double shootAngle, Attack baseAttack)
bool OnShootFromNpc(Npc npc, ItemSlot itemSlot, Hitbox hitbox, int consumeItemID, int projectileID, double fireX, double fireY, double shootSpeed, double shootAngle, Attack baseAttack)
bool CheckHitNpc(Npc npcTarget, ItemSlot itemSlot, Hitbox hitbox, double fireX, double fireY, double hitAngle, ref Attack baseAttack)
bool CheckHitPlayer(Player playerTarget, ItemSlot itemSlot, Hitbox hitbox, double fireX, double fireY, double hitAngle, Attack baseAttack)
bool CheckConsumeItem(Player player, ItemSlot itemSlot, int projectileID)
物品通用模块(ItemUtils)
数值函数
功能函数
物品格类(ItemSlot Class)


类成员属性
类成员函数
物品数量设定规则
物品转移规则
Last updated