mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
73adc34aef
- 为LGBTFlag添加500点最大生命值 - 调整NuclearBomb的旋转逻辑和AcidBulletBase的移动行为 - 重写WhiteSoul子弹逻辑,增加随机大小和速度 - 修改Oxygener武器,允许使用能量替代篮球消耗 - 更新多个场景文件,优化属性和描述
21 lines
681 B
GDScript
21 lines
681 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to, origin, _entity):
|
|
origin["atk"] += 1 * to * soulLevel
|
|
origin["count"] = 1 * soulLevel
|
|
origin["radius"] /= 1 + 0.05 * to * soulLevel
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
for i in readStore("count"):
|
|
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 bullet is WhiteSoulBullet:
|
|
bullet.look_at(myFloor)
|
|
bullet.floorPos = myFloor
|
|
bullet.baseDamage = readStore("atk")
|
|
return true
|