mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 21:27:13 +08:00
feat(武器系统): 重构氧化加农炮并添加篮球消耗机制
- 修改Oxygener武器属性,增加count字段控制篮球消耗 - 实现checkAttack方法检查篮球消耗 - 调整武器基础数值和描述 - 移除氧气火焰的击退效果 - 在Rooster角色中替换初始武器为Oxygener - 修复代码缩进问题
This commit is contained in:
@@ -2,4 +2,4 @@ extends BulletBase
|
||||
class_name OxygenFire
|
||||
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
|
||||
@@ -4,8 +4,11 @@ extends Weapon
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
origin["fireatk"] += 0.5 * to * soulLevel
|
||||
origin["max-n"] += 2 * soulLevel
|
||||
origin["max-n"] += 2 * (soulLevel - 1)
|
||||
origin["count"] *= soulLevel
|
||||
return origin
|
||||
func checkAttack(entity: EntityBase) -> bool:
|
||||
return entity.useItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")})
|
||||
func attack(entity: EntityBase):
|
||||
for bullet in BulletBase.generate(
|
||||
ComponentManager.getBullet("OxygenFire"),
|
||||
|
||||
Reference in New Issue
Block a user