1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat: 更新多个武器和子弹的属性和行为

- 为LGBTFlag添加500点最大生命值
- 调整NuclearBomb的旋转逻辑和AcidBulletBase的移动行为
- 重写WhiteSoul子弹逻辑,增加随机大小和速度
- 修改Oxygener武器,允许使用能量替代篮球消耗
- 更新多个场景文件,优化属性和描述
This commit is contained in:
2026-04-11 11:05:59 +08:00
parent 1b737ac8aa
commit 73adc34aef
12 changed files with 103 additions and 40 deletions
+1 -1
View File
@@ -22,4 +22,4 @@ func ai():
position = storm.position + Vector2.from_angle(deg_to_rad((lifeTimePercent() + randomPercent) * 360)) * 150 * (1 - lifeTimePercent())
rotation = storm.position.angle_to_point(position) + deg_to_rad(90)
else:
tryDestroy()
PresetBulletAI.forward(self , rotation)
+1 -1
View File
@@ -13,8 +13,8 @@ func spawn():
hitbox.disabled = true
hitbox.shape.radius = radius
warnbg.size = Vector2.ONE * 2 * radius
anchor.global_rotation = 0
func ai():
anchor.global_rotation = 0
speed *= 0.99
PresetBulletAI.forward(self , rotation)
if timeLived() > countdown:
+12 -2
View File
@@ -1,6 +1,16 @@
extends BulletBase
class_name WhiteSoulBullet
var floorPos: Vector2
func spawn():
hitbox.disabled = true
scale *= randf_range(0.7, 1.3)
speed *= randf_range(0.85, 1.15)
func ai():
PresetBulletAI.forward(self, rotation)
if position.y > CameraManager.instance.position.y + QuickUI.getWindowSize().y / 2:
scale += Vector2.ONE * 0.005
PresetBulletAI.forward(self , rotation)
if position.distance_to(floorPos) < 50:
tryDestroy()
elif position.distance_to(floorPos) < 100:
hitbox.disabled = false
+1
View File
@@ -6,6 +6,7 @@ var count: int = 0
var angle: float = 0
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 500
attackCooldownMap[0] = 1000
func ai():
tryAttack(0)
+3 -1
View File
@@ -8,8 +8,10 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["count"] *= soulLevel
return origin
func checkAttack(entity: EntityBase) -> bool:
return entity.useItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")})
return entity.hasItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")}) || entity.isEnergyEnough(5)
func attack(entity: EntityBase):
if !entity.useItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")}):
entity.useEnergy(5)
for bullet in BulletBase.generate(
ComponentManager.getBullet("OxygenFire"),
entity,
+8 -6
View File
@@ -8,11 +8,13 @@ func update(to, origin, _entity):
return origin
func attack(entity: EntityBase):
for i in readStore("count"):
var myPos = get_global_mouse_position() + QuickUI.getWindowSize() * Vector2(randf_range(-1, 1) * 0.25, -1)
for j in BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), entity,
myPos,
myPos.angle_to_point(get_global_mouse_position() + MathTool.sampleInCircle(readStore("radius")))
var myFloor = get_global_mouse_position() + MathTool.sampleInCircle(readStore("radius"))
for bullet in BulletBase.generate(ComponentManager.getBullet("WhiteSoul"), entity,
get_global_mouse_position() + QuickUI.getWindowSize() * Vector2(randf_range(-1, 1) * 0.25, -1),
0
):
if j is BulletBase:
j.baseDamage = readStore("atk")
if bullet is WhiteSoulBullet:
bullet.look_at(myFloor)
bullet.floorPos = myFloor
bullet.baseDamage = readStore("atk")
return true