1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-08 04:37:13 +08:00

fix(SummonBase): 修复非Boss实体被错误吸引的问题

调整LGBT武器相关参数以平衡游戏性:
- 减少攻击角度随机范围
- 修改升级属性成长数值
- 更新武器描述文本
This commit is contained in:
2025-11-07 22:34:13 +08:00
parent 675219e0f8
commit 17079cf698
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ quality = 4
typeTopic = 3
costBeachball = 200
store = {
"angle": 25.0,
"angle": 35.0,
"atk": 15.0,
"count": 2.0,
"power": 0.02,
@@ -54,5 +54,5 @@ typeTopic = 3
[node name="description" parent="container" index="2"]
size_flags_vertical = 3
text = "[center]召唤[b]彩虹旗[/b],每[color=cyan]25.0°[/color]发射1/[color=cyan]2[/color]条以[color=cyan]2%[/color]效率追踪[color=cyan]1.00[/color]秒的[b]七彩光标[/b],每条造成[color=cyan]15[/color]点伤害。[/center]"
text = "[center]召唤[b]彩虹旗[/b],每[color=cyan]35.0°[/color]发射1/[color=cyan]2[/color]条以[color=cyan]2%[/color]效率追踪[color=cyan]1.00[/color]秒的[b]七彩光标[/b],每条造成[color=cyan]15[/color]点伤害。[/center]"
autowrap_mode = 2
+1 -1
View File
@@ -14,7 +14,7 @@ func ai():
func attack(type):
if type == 0:
var tracer = EntityTool.findClosetEntity(position, get_tree(), false, true)
var startAngle = position.angle_to_point(tracer.getTrackingAnchor()) + deg_to_rad(randf_range(-90, 90))
var startAngle = position.angle_to_point(tracer.getTrackingAnchor()) + deg_to_rad(randf_range(-1, 1) * 45)
for i in count:
if !is_instance_valid(tracer):
break
+4 -4
View File
@@ -3,11 +3,11 @@ extends Weapon
class_name LGBTWeapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["angle"] /= 1 + 0.05 * to * soulLevel
origin["angle"] /= 1 + 0.02 * to * soulLevel
origin["count"] += 1 * soulLevel
origin["atk"] += 3 * to * soulLevel
origin["power"] += 0.02 * to * soulLevel
origin["trace"] += 0.1 * to * soulLevel
origin["atk"] += 2 * to * soulLevel
origin["power"] += 0.005 * to * soulLevel
origin["trace"] += 0.05 * to * soulLevel
return origin
func attack(entity: EntityBase):
var summon = entity.summon(ComponentManager.getSummon("LGBTFlag"), true)
+1 -1
View File
@@ -9,5 +9,5 @@ func _ready():
super._ready()
for entity in get_tree().get_nodes_in_group("mobs"):
var ent = entity as EntityBase
if MathTool.rate(attraction):
if !ent.isBoss && MathTool.rate(attraction):
ent.currentFocusedBoss = self