mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
01ab16ed9f
添加道教石像武器资源文件、脚本和场景配置 实现无为子弹的碰撞检测和动画效果 调整树武器的伤害计算方式,现在基于格挡率 优化游戏波次配置,调整敌人数量和出现时机 修复初始选择面板在发布模式下的逻辑问题
24 lines
758 B
GDScript
24 lines
758 B
GDScript
@tool
|
|
extends Weapon
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
|
origin["atk"] += 5 * to * soulLevel
|
|
origin["count"] += 1 * (soulLevel - 1)
|
|
origin["max"] += 2 * (soulLevel - 1)
|
|
origin["rate"] += 0.15 * (soulLevel - 1)
|
|
return origin
|
|
func attack(entity: EntityBase):
|
|
for bullet in BulletBase.generate(
|
|
ComponentManager.getBullet("Parrier"),
|
|
entity,
|
|
entity.texture.global_position,
|
|
entity.texture.global_position.angle_to_point(get_global_mouse_position()),
|
|
):
|
|
if bullet is ParrierBullet:
|
|
bullet.atk = readStore("atk")
|
|
bullet.maxParryTimes = readStore("count")
|
|
bullet.maxBallCount = readStore("max")
|
|
bullet.reflectRate = readStore("rate")
|
|
bullet.baseDamage = readStore("atk") * readStore("rate")
|
|
return true
|