mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
feat(武器): 调整火山武器的属性和生成逻辑
修改火山武器的攻击力、旋转速度、生命值和子弹数量等基础属性 优化子弹生成逻辑,新增ignoreOffset参数控制偏移 更新武器配置和描述文本以匹配新数值
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
extends Weapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 5 * to * soulLevel
|
||||
origin["atk"] += 3 * to * soulLevel
|
||||
origin["count"] += 1 * (soulLevel - 1)
|
||||
origin["rotate"] += 0.1 * to * soulLevel
|
||||
origin["life"] += 0.05 * to * soulLevel
|
||||
origin["rotate"] += 0.05 * to * soulLevel
|
||||
origin["life"] += 0.1 * to * soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
for i in readStore("count"):
|
||||
for j in BulletBase.generate(ComponentManager.getBullet("Volcano"), entity, entity.findWeaponAnchor("normal"), deg_to_rad(360.0 / readStore("count") * i)):
|
||||
for j in BulletBase.generate(ComponentManager.getBullet("Volcano"), entity, entity.findWeaponAnchor("normal"), deg_to_rad(360.0 / readStore("count") * i), false, false, true, true):
|
||||
var bullet: Volcano = j
|
||||
bullet.damage = readStore("atk")
|
||||
bullet.rotates = readStore("rotate")
|
||||
|
||||
Reference in New Issue
Block a user