mirror of https://github.com/bra1n/townsquare.git
commit
2824972d0a
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -1,7 +1,15 @@
|
|||
# Release Notes
|
||||
|
||||
### Version 2.15.2
|
||||
- added mobile web application support
|
||||
- show correct number of leaves on roles with global reminders
|
||||
- fixed a bug with traveler list showing up when assigning demon bluffs
|
||||
- fixed a bug with homebrew scripts that contained negative night order positions
|
||||
|
||||
---
|
||||
|
||||
### Version 2.15.1
|
||||
- fix Mephit not showing up on scripts
|
||||
- fix Mephit not showing up on scripts, futureproof Mephit name change
|
||||
- add Boomdandy to list of available characters
|
||||
|
||||
---
|
||||
|
|
|
@ -90,7 +90,8 @@ For base game characters, it is sufficient to only provide the ID, similar to wh
|
|||
_Note_: custom images will only be visible after enabling them in the Grimoire menu!
|
||||
- **edition**: the ID of the edition for this character. can be left blank or "custom"
|
||||
- **firstNight** / **otherNight**: the position that this character acts on the first / other nights, compared to all
|
||||
other characters
|
||||
other characters<br>
|
||||
_Note_: must be a positive number or zero, with zero being treated as "does not act during the night"
|
||||
- **firstNightReminder** / **otherNightReminder**: reminder text for first / other nights
|
||||
- **reminders**: reminder tokens, should be an empty array `[]` if none
|
||||
- **remindersGlobal**: global reminder tokens that will always be available, no matter if the character is assigned to a player or not
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "townsquare",
|
||||
"version": "2.15.1",
|
||||
"version": "2.15.2",
|
||||
"description": "Blood on the Clocktower Town Square",
|
||||
"author": "Steffen Baumgart",
|
||||
"scripts": {
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>Blood on the Clocktower Town Square</title>
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="static/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="static/apple-icon-60x60.png">
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
|
@ -19,10 +19,7 @@
|
|||
class="leaf-right"
|
||||
v-if="role.otherNight || role.otherNightReminder"
|
||||
></span>
|
||||
<span
|
||||
v-if="role.reminders && role.reminders.length"
|
||||
:class="['leaf-top' + role.reminders.length]"
|
||||
></span>
|
||||
<span v-if="reminderLeaves" :class="['leaf-top' + reminderLeaves]"></span>
|
||||
<span class="leaf-orange" v-if="role.setup"></span>
|
||||
<svg viewBox="0 0 150 150" class="name">
|
||||
<path
|
||||
|
@ -61,6 +58,12 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
reminderLeaves: function() {
|
||||
return (
|
||||
(this.role.reminders || []).length +
|
||||
(this.role.remindersGlobal || []).length
|
||||
);
|
||||
},
|
||||
...mapState(["grimoire"])
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -100,6 +100,7 @@ export default {
|
|||
value: role
|
||||
});
|
||||
}
|
||||
this.tab = "editionRoles";
|
||||
this.$store.commit("toggleModal", "role");
|
||||
},
|
||||
close() {
|
||||
|
|
|
@ -214,7 +214,7 @@ export default new Vuex.Store({
|
|||
state.roles.get(role.id) ||
|
||||
Object.assign({}, customRole, role)
|
||||
)
|
||||
// default empty icons and placeholders
|
||||
// default empty icons and placeholders, clean up firstNight / otherNight
|
||||
.map(role => {
|
||||
if (rolesJSONbyId.get(role.id)) return role;
|
||||
role.imageAlt = // map team to generic icon
|
||||
|
@ -225,6 +225,8 @@ export default new Vuex.Store({
|
|||
demon: "evil",
|
||||
fabled: "fabled"
|
||||
}[role.team] || "custom";
|
||||
role.firstNight = Math.abs(role.firstNight);
|
||||
role.otherNight = Math.abs(role.otherNight);
|
||||
return role;
|
||||
})
|
||||
// filter out roles that don't match an existing role and also don't have name/ability/team
|
||||
|
|
Loading…
Reference in New Issue