Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes #69 (69 tee hee hee)

  • Loading branch information...
commit 53d1908960bf4a16cfa2f24033218d49395d14c4 1 parent e8578fb
@egelmex egelmex authored
View
8 src/no/arcticdrakefox/wolfbot/roles/Vigilante.java
@@ -4,6 +4,7 @@
import no.arcticdrakefox.wolfbot.management.Player;
import no.arcticdrakefox.wolfbot.management.PlayerList;
import no.arcticdrakefox.wolfbot.model.Role;
+import no.arcticdrakefox.wolfbot.model.WolfBotModel;
public class Vigilante extends Player {
@@ -67,7 +68,12 @@ public String nightEnd() {
return null;
else if (isAlive){
if (vote.isAlive()){
- vote.die(Messages.getString("Vigilante.killed", vote, vote.getRole())); //$NON-NLS-1$
+ if (WolfBotModel.getInstance().getSilentMode()) {
+ vote.die(Messages.getString("Vigilante.killed.noreveal", vote, vote.getRole())); //$NON-NLS-1$
+ } else {
+ vote.die(Messages.getString("Vigilante.killed.reveal", vote, vote.getRole())); //$NON-NLS-1$
+ }
+
if (vote.isWolf()){
return Messages.getString("Vigilante.killedWolf", new Object[]{vote}); //$NON-NLS-1$
} else{
View
5 src/no/arcticdrakefox/wolfbot/roles/messages.properties
@@ -134,7 +134,10 @@ ToughGuy.wounded={0} is down but not out. It doesn''t look like they''ll live mu
Vigilante.errorSelfKill=Killing yourself doesn''t seem very productive.
Vigilante.help=The vigilante can attempt to \!kill someone at night - hopefully a wolf, if they guess right. If not, then the villagers die even faster\!
Vigilante.intro=You are the vigilante, capable of enforcing justice on your own at night.
-Vigilante.killed=As the villagers search {0}''s home, they find a silver blade stuck in their throat. A vigilante struck down this {1} tonight\!
+
+Vigilante.killed.reveal=As the villagers search {0}''s home, they find a silver blade stuck in their throat. A vigilante struck down this {1} tonight\!
+Vigilante.killed.noveal=As the villagers search {0}''s home, they find a silver blade stuck in their throat. A vigilante struck tonight\!
+
Vigilante.KilledFirst=Under the cover of darkness, you open {0}''s door, but before you can step in you feel a searing pain running down your back. As your slump around on the ground, a large, gnarling shadow stands above you...
Vigilante.KilledInnosent=Under the cover of darkness, you hide behind {0}''s bedroom door and jab a silver knife in their throat as they pass. As they lay bleeding, you realize that you have taken an innocent life. You mutter a respectful prayer and head home sullenly.
Vigilante.killedWolf=Under the cover of darkness, you hide behind {0}''s bedroom door and jab a silver knife in their throat as they pass. Their body slumps to the ground and reverts to its true, grotesque form. You have done your village a great service\!
Please sign in to comment.
Something went wrong with that request. Please try again.