mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
46ea2fc775
将子弹的伤害属性从`damage`重命名为`baseDamage`,并引入`damageMultipliers`数组支持多段伤害 为火山武器添加三段攻击音效并调整伤害倍率 更新相关武器和子弹脚本以适配新的伤害系统
22 lines
438 B
GDScript
22 lines
438 B
GDScript
extends BulletBase
|
|
|
|
@export var allColor: GradientTexture1D = null
|
|
|
|
var myColor: Color
|
|
|
|
func register():
|
|
baseDamage = 1
|
|
penerate = 1
|
|
func spawn():
|
|
myColor = allColor.gradient.sample(randf())
|
|
setColor(myColor)
|
|
|
|
func ai():
|
|
speed = (11000 - timeLived()) / 11000 * initialSpeed
|
|
rotation_degrees += speed / 10
|
|
PresetBulletAI.forward(self, rotation)
|
|
|
|
func setColor(color: Color):
|
|
texture.self_modulate = color
|
|
texture.modulate.v *= 10
|