mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-01 00:41:54 +08:00
feat(武器): 为齿轮武器添加升华选项和增强效果
- 在Cogwheel.gd中添加5个升华选项,提供不同属性增强 - 修改齿轮子弹逻辑,支持旋转加速、重力吸附等新效果 - 调整MuyangDog的初始武器配置,将齿轮作为主武器 - 修复箭头武器的生命偷取值归零 - 初始化钻石库存为10个
This commit is contained in:
@@ -1,6 +1,49 @@
|
||||
@tool
|
||||
extends Weapon
|
||||
|
||||
func sublimateOptions() -> Array[SublimateOption]:
|
||||
return [
|
||||
SublimateOption.new(
|
||||
"锋利齿轮",
|
||||
"锋利度+4",
|
||||
func(w: Weapon, _e):
|
||||
w.addStoreExtra("atk", 4),
|
||||
2,
|
||||
CategoryStore.Quality.COMMON
|
||||
),
|
||||
SublimateOption.new(
|
||||
"回旋风暴",
|
||||
"齿轮回旋时转速额外+15%",
|
||||
func(w: Weapon, _e):
|
||||
w.addStoreExtra("rotateExtra", 0.15),
|
||||
1,
|
||||
CategoryStore.Quality.EPIC
|
||||
),
|
||||
SublimateOption.new(
|
||||
"顺手牵羊",
|
||||
"齿轮命中敌人时降低其2%攻击速度",
|
||||
func(w: Weapon, _e):
|
||||
w.addStoreExtra("atkspeed", 1),
|
||||
1,
|
||||
CategoryStore.Quality.COMMON
|
||||
),
|
||||
SublimateOption.new(
|
||||
"离心甩臂",
|
||||
"伤害+5%",
|
||||
func(w: Weapon, _e):
|
||||
w.addStoreExtra("dmg", 0.05),
|
||||
1,
|
||||
CategoryStore.Quality.WASTE
|
||||
),
|
||||
SublimateOption.new(
|
||||
"撕裂锯齿",
|
||||
"齿轮回旋时可吸附敌人,吸力+15",
|
||||
func(w: Weapon, _e):
|
||||
w.addStoreExtra("gravity", 15),
|
||||
1,
|
||||
CategoryStore.Quality.COMMON
|
||||
),
|
||||
]
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 1 * to * soulLevel
|
||||
origin["rotate"] += 0.5 * to * soulLevel
|
||||
@@ -16,5 +59,7 @@ func attack(entity: EntityBase):
|
||||
if bullet is CogwheelBullet:
|
||||
bullet.initialRotate = readStore("rotate")
|
||||
bullet.rotateSpeed = readStore("rotate")
|
||||
bullet.baseDamage = readStore("atk")
|
||||
bullet.baseDamage = readStore("atk") * (1 + readStoreExtra("dmg"))
|
||||
bullet.rotateExtra = readStoreExtra("rotateExtra")
|
||||
bullet.gravityForce = readStoreExtra("gravity")
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user