1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/Volcano.gd
T
fallingshrimp 3b6ee5596d fix(武器): 修正武器计数计算逻辑并调整彩虹糖属性
调整多个武器的count计算方式,移除soulLevel-1的减一操作
修改RainbowCandy的fieldValues和quality值
调整EntityBase中MAX_HEALTH的计算公式
2025-11-16 07:25:38 +08:00

17 lines
649 B
GDScript

@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 3 * to * soulLevel
origin["count"] = soulLevel + 1
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), false, false, true, true):
var bullet: Volcano = j
bullet.damage = readStore("atk")
bullet.rotates = readStore("rotate")
bullet.lifeTime = readStore("life") * 1000