remove coloring when item grabbed
This commit is contained in:
@@ -296,30 +296,18 @@ func apply_upgrade_boots(speed_bonus: float, _tier: int) -> void:
|
||||
kick_tier += 1
|
||||
move_speed += speed_bonus
|
||||
_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:
|
||||
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:
|
||||
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:
|
||||
if has_stick_armor:
|
||||
return false
|
||||
has_stick_armor = true
|
||||
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
|
||||
|
||||
func apply_leather_armor() -> bool:
|
||||
@@ -327,9 +315,6 @@ func apply_leather_armor() -> bool:
|
||||
return false
|
||||
has_leather_armor = true
|
||||
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
|
||||
|
||||
func apply_plate_armor() -> bool:
|
||||
@@ -337,9 +322,6 @@ func apply_plate_armor() -> bool:
|
||||
return false
|
||||
has_plate_armor = true
|
||||
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
|
||||
|
||||
func apply_wooden_shield() -> bool:
|
||||
@@ -347,9 +329,6 @@ func apply_wooden_shield() -> bool:
|
||||
return false
|
||||
has_wooden_shield = true
|
||||
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
|
||||
|
||||
func apply_iron_shield() -> bool:
|
||||
@@ -357,7 +336,4 @@ func apply_iron_shield() -> bool:
|
||||
return false
|
||||
has_iron_shield = true
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user