mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Refactor: double hats
This commit is contained in:
@@ -12,6 +12,22 @@ class TrainerClothesPreview
|
||||
resetOutfits()
|
||||
end
|
||||
|
||||
def set_hat(value,is_secondaryHat=false)
|
||||
if is_secondaryHat
|
||||
@hat2 = value
|
||||
else
|
||||
@hat = value
|
||||
end
|
||||
end
|
||||
|
||||
def set_hat_color(value,is_secondaryHat=false)
|
||||
if is_secondaryHat
|
||||
@hat2_color = value
|
||||
else
|
||||
@hat_color = value
|
||||
end
|
||||
end
|
||||
|
||||
def resetOutfits()
|
||||
@clothes = $Trainer.clothes
|
||||
@hat = $Trainer.hat
|
||||
|
||||
Reference in New Issue
Block a user