mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
8b5813fb95
- 从多个武器脚本中移除needEnergy变量 - 更新武器描述中的数值变化显示 - 删除不再使用的Arrow7武器相关文件 - 为部分武器添加costBeachball属性
17 lines
637 B
GDScript
17 lines
637 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 1 * to * soulLevel
|
|
origin["rate"] += 0.04 * to * soulLevel
|
|
origin["count"] += 1 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
var weaponPos = entity.findWeaponAnchor("normal")
|
|
for j in BulletBase.generate(preload("res://components/Bullets/MushroomPickaxe.tscn"), entity, entity.texture.global_position, weaponPos.angle_to_point(get_global_mouse_position())):
|
|
var bullet: MushroomPickaxe = j
|
|
bullet.damage = readStore("atk")
|
|
bullet.rate = readStore("rate")
|
|
bullet.count = readStore("count")
|
|
return true
|