mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-09 05:07:12 +08:00
feat(武器/角色): 调整火山武器伤害数值并添加新武器
- 提升火山武器的基础攻击力和各段伤害比例 - 为角色添加BigLaser新武器 - 调整KukeMC角色的子弹伤害计算逻辑
This commit is contained in:
@@ -28,7 +28,9 @@ func attack(type):
|
||||
if type == 0:
|
||||
for i in randi_range(8, 16):
|
||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 25
|
||||
BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position)):
|
||||
if bullet is BulletBase:
|
||||
bullet.baseDamage *= 0.5
|
||||
await TickTool.millseconds(randi_range(10, 50))
|
||||
elif type == 1 and health < fields[FieldStore.Entity.MAX_HEALTH] * 0.5 and canSummon:
|
||||
for i in randi_range(1, 2):
|
||||
@@ -41,7 +43,9 @@ func attack(type):
|
||||
for bulletIndex in countOfBullet:
|
||||
for branchIndex in countOfBranch:
|
||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 0
|
||||
BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), deg_to_rad(360.0 / countOfBullet * bulletIndex + 360.0 / countOfBranch * branchIndex))
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("PurpleCrystal"), self, findWeaponAnchor("normal"), deg_to_rad(360.0 / countOfBullet * bulletIndex + 360.0 / countOfBranch * branchIndex)):
|
||||
if bullet is BulletBase:
|
||||
bullet.baseDamage *= 0.5
|
||||
await TickTool.millseconds(100)
|
||||
elif type == 3:
|
||||
BulletBase.generate(ComponentManager.getBullet("HeavyCrystal"), self, findWeaponAnchor("normal"), position.angle_to_point(currentFocusedBoss.position))
|
||||
|
||||
Reference in New Issue
Block a user