From df8ea7c466fb5b6c770362bc527efc56047deed1 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, 8 May 2026 15:19:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=AD=A6=E5=99=A8):=20=E9=99=90=E5=88=B6?= =?UTF-8?q?=E8=BF=BD=E8=B8=AA=E5=BC=BA=E5=BA=A6=E5=9C=A80=E5=88=B01?= =?UTF-8?q?=E4=B9=8B=E9=97=B4=E5=B9=B6=E8=B0=83=E6=95=B4=E6=94=BB=E5=87=BB?= =?UTF-8?q?=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将LGBT武器的追踪强度限制在0到1之间,防止数值溢出。同时将基础攻击力从15提升到20,增强武器效果。 --- components/Weapons/LGBT.tscn | 5 +---- scripts/Contents/Weapons/LGBTWeapon.gd | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/components/Weapons/LGBT.tscn b/components/Weapons/LGBT.tscn index f5d2aa5..03c6c77 100644 --- a/components/Weapons/LGBT.tscn +++ b/components/Weapons/LGBT.tscn @@ -14,7 +14,7 @@ typeTopic = 4 costBeachball = 200 store = { "angle": 35.0, -"atk": 15.0, +"atk": 20.0, "count": 1.0, "power": 0.02, "trace": 1.0 @@ -50,6 +50,3 @@ typeTopic = 4 size_flags_vertical = 3 text = "[center]召唤[b]彩虹旗[/b],每[color=cyan]35.0°[/color]发射1/[color=cyan]1[/color]条以[color=cyan]2.0%[/color]效率追踪[color=cyan]1.00[/color]秒的[b]七彩光标[/b],每条造成[color=cyan]15[/color]点伤害。[/center]" autowrap_mode = 2 - -[node name="tease" parent="container" parent_id_path=PackedInt32Array(575698869) index="3" unique_id=689277044] -visible = false diff --git a/scripts/Contents/Weapons/LGBTWeapon.gd b/scripts/Contents/Weapons/LGBTWeapon.gd index f65732d..61a0b6a 100644 --- a/scripts/Contents/Weapons/LGBTWeapon.gd +++ b/scripts/Contents/Weapons/LGBTWeapon.gd @@ -14,7 +14,7 @@ func attack(entity: EntityBase): if !summon: return true summon.atk = readStore("atk") summon.maxTraceTime = readStore("trace") * 1000 - summon.tracePower = readStore("power") + summon.tracePower = clamp(readStore("power"), 0, 1) summon.count = readStore("count") summon.angle = readStore("angle") return true