mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 07:51:54 +08:00
fix: 修复实体属性应用函数未返回默认值的问题
修改FieldStore.gd中entityApplier的函数,确保所有函数都返回true 修复Feed.gd中get方法调用缺少默认参数的问题
This commit is contained in:
@@ -80,12 +80,15 @@ static var entityMaxValueMap = {
|
||||
static var entityApplier = {
|
||||
Entity.MAX_HEALTH: func(entity, value):
|
||||
entity.health += value
|
||||
return true
|
||||
,
|
||||
Entity.EXTRA_APPLE_MAX: func(entity, value):
|
||||
entity.inventoryMax[ItemStore.ItemType.APPLE] += value
|
||||
return true
|
||||
,
|
||||
Entity.EXTRA_BULLET_COUNT: func(entity, value):
|
||||
entity.fields[Entity.OFFSET_SHOOT] += value * 5
|
||||
return true
|
||||
,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user