mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
c413744dbf
为多个武器添加了彩蛋文本(tease)和来源信息(sources),包括GrassWall、Hetun、Tree、BigLaser、Cogwheel、Bow、DaoStatue和HXD。同时更新了武器描述和部分属性: - 为BigLaser更新显示名称为"金法阵"并修改描述 - 为DaoStatue增加攻击力从30到50 - 更新HXD的描述文本 - 在Weapon.gd中添加teaseLabel的显示/隐藏逻辑 - 在Rooster.tscn中更换默认武器为DaoStatue
21 lines
599 B
GDScript
21 lines
599 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 1 * to * soulLevel
|
|
origin["rotate"] += 0.5 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var weaponPos = entity.findWeaponAnchor("normal")
|
|
for bullet in BulletBase.generate(
|
|
ComponentManager.getBullet("Cogwheel"),
|
|
entity,
|
|
weaponPos,
|
|
weaponPos.angle_to_point(get_global_mouse_position()),
|
|
):
|
|
if bullet is CogwheelBullet:
|
|
bullet.initialRotate = readStore("rotate")
|
|
bullet.rotateSpeed = readStore("rotate")
|
|
bullet.baseDamage = readStore("atk")
|
|
return true
|