mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 16:01:53 +08:00
refactor(武器系统): 移除武器能量消耗并调整数值显示
- 从多个武器脚本中移除needEnergy变量 - 更新武器描述中的数值变化显示 - 删除不再使用的Arrow7武器相关文件 - 为部分武器添加costBeachball属性
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
@tool
|
||||
extends Weapon
|
||||
class_name Arrow7Weapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 5 * to
|
||||
origin["count"] += 1 * to
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
for i in range(readStore("count")):
|
||||
for bullet in BulletBase.generate(preload("res://components/Bullets/BossAttack/Bear/ArrowSeven.tscn"), entity, weaponPos, deg_to_rad(randf_range(0, 360))):
|
||||
bullet.damage = readStore("atk")
|
||||
bullet.tracer = EntityTool.findClosetEntity(entity.position, get_tree(), false, true)
|
||||
return true
|
||||
@@ -5,7 +5,6 @@ class_name BigLaserWeapon
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 5 * to * soulLevel
|
||||
origin["time"] /= 1 + 0.05 * to * soulLevel
|
||||
needEnergy += 5
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
|
||||
@@ -8,7 +8,6 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["power"] += 0.05 * to * soulLevel
|
||||
origin["trace"] += 0.25 * to * soulLevel
|
||||
origin["angle"] /= 1 + 0.05 * to * soulLevel
|
||||
needEnergy += 1
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
|
||||
@@ -5,7 +5,6 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
origin["rate"] += 0.04 * to * soulLevel
|
||||
origin["count"] += 1 * to * soulLevel
|
||||
needEnergy += 0.5
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
|
||||
@@ -7,7 +7,6 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["forwardtime"] /= 1 + 0.05 * to * soulLevel
|
||||
origin["mincount"] += 0.5 * to * soulLevel
|
||||
origin["maxcount"] += 1.5 * to * soulLevel
|
||||
needEnergy += 2
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
var weaponPos = entity.findWeaponAnchor("normal")
|
||||
|
||||
Reference in New Issue
Block a user