From 17079cf6987adc6ee73461b90065c34ecf800dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Fri, 7 Nov 2025 22:34:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(SummonBase):=20=E4=BF=AE=E5=A4=8D=E9=9D=9EB?= =?UTF-8?q?oss=E5=AE=9E=E4=BD=93=E8=A2=AB=E9=94=99=E8=AF=AF=E5=90=B8?= =?UTF-8?q?=E5=BC=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整LGBT武器相关参数以平衡游戏性: - 减少攻击角度随机范围 - 修改升级属性成长数值 - 更新武器描述文本 --- components/Weapons/LGBT.tscn | 4 ++-- scripts/Contents/Summons/LGBTFlag.gd | 2 +- scripts/Contents/Weapons/LGBTWeapon.gd | 8 ++++---- scripts/Statemachine/SummonBase.gd | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/Weapons/LGBT.tscn b/components/Weapons/LGBT.tscn index 0b1d987..5d37e8e 100644 --- a/components/Weapons/LGBT.tscn +++ b/components/Weapons/LGBT.tscn @@ -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 diff --git a/scripts/Contents/Summons/LGBTFlag.gd b/scripts/Contents/Summons/LGBTFlag.gd index d7fbdd9..621d46e 100644 --- a/scripts/Contents/Summons/LGBTFlag.gd +++ b/scripts/Contents/Summons/LGBTFlag.gd @@ -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 diff --git a/scripts/Contents/Weapons/LGBTWeapon.gd b/scripts/Contents/Weapons/LGBTWeapon.gd index a274f7d..0ace138 100644 --- a/scripts/Contents/Weapons/LGBTWeapon.gd +++ b/scripts/Contents/Weapons/LGBTWeapon.gd @@ -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) diff --git a/scripts/Statemachine/SummonBase.gd b/scripts/Statemachine/SummonBase.gd index 215543a..f87fd15 100644 --- a/scripts/Statemachine/SummonBase.gd +++ b/scripts/Statemachine/SummonBase.gd @@ -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