From e9bdea5bad553890fed5c67a34db115831c25b38 Mon Sep 17 00:00:00 2001 From: chardub Date: Sat, 8 Mar 2025 16:29:21 -0500 Subject: [PATCH] Double hats UI (except dyes) --- Data/Scripts/015_Trainers and player/004_Player.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Data/Scripts/015_Trainers and player/004_Player.rb b/Data/Scripts/015_Trainers and player/004_Player.rb index 99678bedf..8653e6032 100644 --- a/Data/Scripts/015_Trainers and player/004_Player.rb +++ b/Data/Scripts/015_Trainers and player/004_Player.rb @@ -206,7 +206,6 @@ class Player < Trainer refreshPlayerOutfit() end - #todo change to set_hat_color(value,is_secondary) def set_hat_color(value, is_secondary=false) if is_secondary @hat2_color=value @@ -218,6 +217,8 @@ class Player < Trainer $Trainer.dyed_hats[worn_hat] = value if value refreshPlayerOutfit() end + + def hat_color=(value) @hat_color=value $Trainer.dyed_hats= {} if !$Trainer.dyed_hats