mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
committed by
Matteo Pagliazzi
parent
d2b160438c
commit
1c6608d071
@@ -504,14 +504,17 @@ function setUserStyles (newMessage, user) {
|
||||
userStyles.preferences.costume = userCopy.preferences.costume;
|
||||
}
|
||||
|
||||
userStyles.stats = {};
|
||||
if (userCopy.stats && userCopy.stats.buffs) {
|
||||
userStyles.stats.buffs = {
|
||||
seafoam: userCopy.stats.buffs.seafoam,
|
||||
shinySeed: userCopy.stats.buffs.shinySeed,
|
||||
spookySparkles: userCopy.stats.buffs.spookySparkles,
|
||||
snowball: userCopy.stats.buffs.snowball,
|
||||
};
|
||||
if (userCopy.stats) {
|
||||
userStyles.stats = {};
|
||||
userStyles.stats.class = userCopy.stats.class;
|
||||
if (userCopy.stats.buffs) {
|
||||
userStyles.stats.buffs = {
|
||||
seafoam: userCopy.stats.buffs.seafoam,
|
||||
shinySeed: userCopy.stats.buffs.shinySeed,
|
||||
spookySparkles: userCopy.stats.buffs.spookySparkles,
|
||||
snowball: userCopy.stats.buffs.snowball,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
newMessage.userStyles = userStyles;
|
||||
|
||||
Reference in New Issue
Block a user