mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
73adc34aef
- 为LGBTFlag添加500点最大生命值 - 调整NuclearBomb的旋转逻辑和AcidBulletBase的移动行为 - 重写WhiteSoul子弹逻辑,增加随机大小和速度 - 修改Oxygener武器,允许使用能量替代篮球消耗 - 更新多个场景文件,优化属性和描述
26 lines
620 B
GDScript
26 lines
620 B
GDScript
extends BulletBase
|
|
class_name AcidBulletBase
|
|
|
|
enum AcidType {
|
|
STRONG,
|
|
WEAK,
|
|
}
|
|
@export var acidType: AcidType = AcidType.STRONG
|
|
|
|
var arg1 = 0
|
|
var arg2 = 0
|
|
var arg3 = 0
|
|
|
|
var randomPercent: float = 0
|
|
var storm: Node2D = null
|
|
|
|
func register():
|
|
scale.y *= MathTool.randomChoiceFrom([-1, 1])
|
|
randomPercent = randf_range(0, 1)
|
|
func ai():
|
|
if is_instance_valid(storm):
|
|
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:
|
|
PresetBulletAI.forward(self , rotation)
|