mirror of https://github.com/bra1n/townsquare.git
fixing bug where reminder tokens were not being displayed correctly for out of script travellers.
This commit is contained in:
parent
59105beb78
commit
3fc1c3c1a5
|
@ -82,6 +82,31 @@ export default {
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// add out of script traveller reminders
|
||||||
|
this.$store.state.extraTravellers.forEach(role => {
|
||||||
|
if (players.some(p => p.role.id === role.id)) {
|
||||||
|
reminders = [
|
||||||
|
...reminders,
|
||||||
|
...role.reminders.map(name => ({
|
||||||
|
role: role.id,
|
||||||
|
image: role.image,
|
||||||
|
name
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
}
|
||||||
|
if (role.remindersGlobal && role.remindersGlobal.length) {
|
||||||
|
reminders = [
|
||||||
|
...reminders,
|
||||||
|
...role.remindersGlobal.map(name => ({
|
||||||
|
role: role.id,
|
||||||
|
image: role.image,
|
||||||
|
name
|
||||||
|
}))
|
||||||
|
];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
reminders.push({ role: "good", name: "Good" });
|
reminders.push({ role: "good", name: "Good" });
|
||||||
reminders.push({ role: "evil", name: "Evil" });
|
reminders.push({ role: "evil", name: "Evil" });
|
||||||
reminders.push({ role: "custom", name: "Custom note" });
|
reminders.push({ role: "custom", name: "Custom note" });
|
||||||
|
|
Loading…
Reference in New Issue