mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes clothes/hats menu
This commit is contained in:
@@ -126,15 +126,20 @@ class Player < Trainer
|
||||
end
|
||||
|
||||
def clothes_color=(value)
|
||||
echoln value
|
||||
echoln @clothes
|
||||
echoln $Trainer.dyed_clothes
|
||||
echoln caller
|
||||
|
||||
@clothes_color=value
|
||||
$Trainer.dyed_clothes= {} if ! $Trainer.dyed_clothes
|
||||
$Trainer.dyed_clothes[@clothes] = value
|
||||
$Trainer.dyed_clothes= {} if !$Trainer.dyed_clothes
|
||||
$Trainer.dyed_clothes[@clothes] = value if value
|
||||
refreshPlayerOutfit()
|
||||
end
|
||||
def hat_color=(value)
|
||||
@hat_color=value
|
||||
$Trainer.dyed_hats= {} if ! $Trainer.dyed_hats
|
||||
$Trainer.dyed_hats[@hat] = value
|
||||
$Trainer.dyed_hats[@hat] = value if value
|
||||
refreshPlayerOutfit()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user