remove coloring when item grabbed

This commit is contained in:
2026-04-23 17:20:14 +03:00
parent 23177b9079
commit c8aba822bf
-24
View File
@@ -296,30 +296,18 @@ func apply_upgrade_boots(speed_bonus: float, _tier: int) -> void:
kick_tier += 1 kick_tier += 1
move_speed += speed_bonus move_speed += speed_bonus
_apply_boot_mesh(kick_tier) _apply_boot_mesh(kick_tier)
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(1.0, 0.85, 0.2), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.4)
func apply_upgrade_armor() -> void: func apply_upgrade_armor() -> void:
kick_tier += 1 kick_tier += 1
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.7, 0.8, 1.0), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.5)
func apply_upgrade_enchant() -> void: func apply_upgrade_enchant() -> void:
kick_tier += 1 kick_tier += 1
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.8, 0.2, 1.0), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.6)
func apply_stick_armor() -> bool: func apply_stick_armor() -> bool:
if has_stick_armor: if has_stick_armor:
return false return false
has_stick_armor = true has_stick_armor = true
toughness_tier += 1 toughness_tier += 1
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.7, 0.5, 0.2), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.4)
return true return true
func apply_leather_armor() -> bool: func apply_leather_armor() -> bool:
@@ -327,9 +315,6 @@ func apply_leather_armor() -> bool:
return false return false
has_leather_armor = true has_leather_armor = true
toughness_tier += 1 toughness_tier += 1
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.8, 0.5, 0.2), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.4)
return true return true
func apply_plate_armor() -> bool: func apply_plate_armor() -> bool:
@@ -337,9 +322,6 @@ func apply_plate_armor() -> bool:
return false return false
has_plate_armor = true has_plate_armor = true
toughness_tier += 1 toughness_tier += 1
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.6, 0.7, 1.0), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.5)
return true return true
func apply_wooden_shield() -> bool: func apply_wooden_shield() -> bool:
@@ -347,9 +329,6 @@ func apply_wooden_shield() -> bool:
return false return false
has_wooden_shield = true has_wooden_shield = true
shield_tier = max(shield_tier, 1) shield_tier = max(shield_tier, 1)
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.55, 0.38, 0.18), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.4)
return true return true
func apply_iron_shield() -> bool: func apply_iron_shield() -> bool:
@@ -357,7 +336,4 @@ func apply_iron_shield() -> bool:
return false return false
has_iron_shield = true has_iron_shield = true
shield_tier = max(shield_tier, 2) shield_tier = max(shield_tier, 2)
var tw := create_tween()
tw.tween_property(player_mat, "albedo_color", Color(0.55, 0.58, 0.62), 0.1)
tw.tween_property(player_mat, "albedo_color", BASE_COLOR, 0.5)
return true return true