Skip to content

Commit

Permalink
feat(Game): Implement the Angel Role. Closes #131
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Mar 1, 2021
1 parent 73fe383 commit 3ab41c0
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 112 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [#124](https://github.com/antoinezanardi/werewolves-assistant-web/issues/124) - Add guard protection on little girl option.
* [#125](https://github.com/antoinezanardi/werewolves-assistant-web/issues/125) - Add idiot dies on ancient death option.
* [#126](https://github.com/antoinezanardi/werewolves-assistant-web/issues/126) - Implement the White Werewolf Role.
* [#131](https://github.com/antoinezanardi/werewolves-assistant-web/issues/131) - Implement the Angel Role.

### 🌟 Enhancements

Expand Down Expand Up @@ -44,7 +45,7 @@
* `@sentry/integrations` updated to version `6.2.0`.
* `@vue/test-utils` updated to version `1.1.3`.
* `chai` updated to version `4.3.0`.
* `eslint` updated to version `7.20.0`.
* `eslint` updated to version `7.21.0`.
* `eslint-plugin-vue` updated to version `7.6.0`.
* `sweetalert2` updated to version `10.15.5`.
* `vue-i18n` updated to version `8.23.0`.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The MongoDB database is protected under username and password authentication.

## <a name="roles-available">🃏 Roles available</a>

On this current version [![GitHub release](https://img.shields.io/github/release/antoinezanardi/werewolves-assistant-web.svg)](https://GitHub.com/antoinezanardi/werewolves-assistant-web/releases/), **21 different roles** are available to play:
On this current version [![GitHub release](https://img.shields.io/github/release/antoinezanardi/werewolves-assistant-web.svg)](https://GitHub.com/antoinezanardi/werewolves-assistant-web/releases/), **22 different roles** are available to play:

- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/werewolf.png" width="25"/> The Werewolf**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/big-bad-wolf.png" width="25"/> The Big-Bad-Wolf**
Expand All @@ -75,6 +75,7 @@ On this current version [![GitHub release](https://img.shields.io/github/release
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/three-brothers.png" width="25"/> The Three Brothers**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/wild-child.png" width="25"/> The Wild Child**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/dog-wolf.png" width="25"/> The Dog-Wolf**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/angel.png" width="25"/> The Angel**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/pied-piper.png" width="25"/> The Pied Piper**
- **<img src="https://werewolves-assistant-api.antoinezanardi.fr/img/roles/raven.png" width="25"/> The Raven**

Expand Down
214 changes: 106 additions & 108 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/assets/svg/roles/angel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export default {
}
this.cantGetPastEvents = false;
} catch (err) {
console.log(err);
this.cantGetPastEvents = true;
this.$error.display(err);
} finally {
Expand Down
2 changes: 2 additions & 0 deletions src/components/shared/Game/GameResult/GameResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import inLove from "@/assets/svg/attributes/in-love.svg";
import villager from "@/assets/svg/roles/villager.svg";
import charmed from "@/assets/svg/attributes/charmed.svg";
import whiteWerewolf from "@/assets/svg/roles/white-werewolf.svg";
import angel from "@/assets/svg/roles/angel.svg";
export default {
name: "GameResult",
Expand All @@ -31,6 +32,7 @@ export default {
"lovers": inLove,
"pied-piper": charmed,
"white-werewolf": whiteWerewolf,
angel,
};
return winners[this.game.won.by] ? winners[this.game.won.by] : dead;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</div>
</div>
</div>
<div v-if="game.additionalCards">
<div v-if="game.additionalCards.length">
<hr class="bg-dark"/>
<h4 class="text-center">
<i class="fa fa-chess mr-2 text-info"/>
Expand Down
1 change: 1 addition & 0 deletions src/plugins/vue-i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@
"lovers": "Partie gagnée par les Amoureux",
"pied-piper": "Partie gagnée par le Joueur de Flûte",
"white-werewolf": "Partie gagnée par le Loup-Garou Blanc",
"angel": "Partie gagnée par l'Ange",
"nobody": "Match nul ! Aucun survivant dans le village..."
}
},
Expand Down

0 comments on commit 3ab41c0

Please sign in to comment.