mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-22 03:22:30 +08:00
feat: 更新多个武器和子弹的属性和行为
- 为LGBTFlag添加500点最大生命值 - 调整NuclearBomb的旋转逻辑和AcidBulletBase的移动行为 - 重写WhiteSoul子弹逻辑,增加随机大小和速度 - 修改Oxygener武器,允许使用能量替代篮球消耗 - 更新多个场景文件,优化属性和描述
This commit is contained in:
@@ -8,8 +8,10 @@ func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["count"] *= soulLevel
|
||||
return origin
|
||||
func checkAttack(entity: EntityBase) -> bool:
|
||||
return entity.useItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")})
|
||||
return entity.hasItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")}) || entity.isEnergyEnough(5)
|
||||
func attack(entity: EntityBase):
|
||||
if !entity.useItem({ItemStore.ItemType.BASKETBALL: 1.0 / readStore("count")}):
|
||||
entity.useEnergy(5)
|
||||
for bullet in BulletBase.generate(
|
||||
ComponentManager.getBullet("OxygenFire"),
|
||||
entity,
|
||||
|
||||
Reference in New Issue
Block a user