1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/PurpleCrystal.gd
T
fallingshrimp 60dac42141 feat(武器/游戏规则): 调整武器伤害和敌人成长参数
将多种武器的攻击力加成从2倍提升至5倍
调整敌人每波生命值增长从5%提升至10%,伤害增长从2.5%降低至1%
2025-09-06 16:17:01 +08:00

13 lines
450 B
GDScript

@tool
extends Weapon
class_name PurpleCrystalWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 5 * to
return origin
func attack(entity: EntityBase):
var weaponPos = entity.findWeaponAnchor("normal")
for bullet in BulletBase.generate(preload("res://components/Bullets/PurpleCrystal.tscn"), entity, weaponPos, (get_global_mouse_position() - weaponPos).angle()):
bullet.damage = readStore("atk")
return true