mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(游戏机制): 调整掉落物品数量和添加错误提示
增加boss和非boss敌人死亡时掉落水晶的数量范围 为武器镶嵌/移除灵魂操作添加错误提示 移除Starter场景中不必要的属性设置 新增CharacterCardBase基础组件
This commit is contained in:
@@ -419,7 +419,7 @@ func tryDie(by: BulletBase = null):
|
||||
fields[FieldStore.Entity.MAX_HEALTH] * randf_range(1 - GameRule.beachballOffset, 1 + GameRule.beachballOffset),
|
||||
position + MathTool.sampleInCircle(GameRule.itemDroppedSpawnOffset)
|
||||
)
|
||||
for i in randi_range(0, 10 if isBoss else 3):
|
||||
for i in randi_range(0, 20 if isBoss else 5):
|
||||
ItemDropped.generate(
|
||||
ItemStore.ItemType.CRYSTAL,
|
||||
5 if isBoss else 1,
|
||||
|
||||
@@ -87,6 +87,8 @@ func _ready():
|
||||
soulLevel -= 1
|
||||
updateStore(level, UIState.player)
|
||||
rebuildInfo()
|
||||
else:
|
||||
UIState.showTip("[b]%s[/b]还未镶嵌任何灵魂!" % displayName, TipBox.MessageType.ERROR)
|
||||
)
|
||||
inlayBtn.pressed.connect(
|
||||
func():
|
||||
@@ -97,6 +99,10 @@ func _ready():
|
||||
soulLevel += 1
|
||||
updateStore(level, UIState.player)
|
||||
rebuildInfo()
|
||||
else:
|
||||
UIState.showTip("持有的灵魂数量不足!", TipBox.MessageType.ERROR)
|
||||
else:
|
||||
UIState.showTip("[b]%s[/b]的灵魂槽位已满!" % displayName, TipBox.MessageType.ERROR)
|
||||
)
|
||||
moveLeftBtn.pressed.connect(
|
||||
func():
|
||||
|
||||
Reference in New Issue
Block a user