跳到主要内容

cost_item_by_ob

扣除指定的道具

声明

bool cost_item_by_ob(object item_ob, int amount, string reason)

参数

参数名描述
item_ob道具对象
amount扣除数量
reason扣除原因

返回值

true : 扣除成功, false : 扣除失败

使用方式

返回文档