跳到主要内容

cost_item_amount

扣除一批道具

声明

bool cost_item_amount(map item_amount, string reason)

参数

参数名描述
item_amount道具数量词典
key : 道具class id或者别名
value : 道具数量
reason扣除原因

返回值

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

使用方式

返回文档