mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
3eb1f84a21
实现酸蚀风暴武器系统,包含五种不同类型的酸液子弹: 1. 硫酸:命中时溅射1~3滴酸液 2. 硝酸:造成额外伤害 3. 盐酸:降低敌人移动和攻击速度 4. 碳酸:可无限穿透并逐渐扩大 5. 磷酸:增加敌人散射角 同时调整武器数值平衡,更新VSCode配置中的Godot引擎路径
9 lines
379 B
GDScript
9 lines
379 B
GDScript
extends AcidBulletBase
|
|
class_name AcidS
|
|
|
|
func succeedToHit(_dmg: float, _entity: EntityBase):
|
|
for i in randi_range(0, int(arg1)):
|
|
for bullet in BulletBase.generate(ComponentManager.getBullet("AcidS"), launcher, position, rotation + deg_to_rad(180 + 90 * randf_range(-1, 1)), true, true):
|
|
if bullet is AcidS:
|
|
bullet.baseDamage = baseDamage
|