Commit Graph

429 Commits

Author SHA1 Message Date
Skizzerz
79a72aa33e Finish up most new totems except for exchange and retribution, completely untested code so probably breaks horribly 2014-08-04 01:22:29 -05:00
Skizzerz
21ef130f21 bugfixes 2014-08-04 00:36:09 -05:00
Skizzerz
2d331cdcd7 Fix fool being lynched and begin shaman bonanza, most of the totems do nothing atm but it *should* theoretically work 2014-08-04 00:23:29 -05:00
Skizzerz
b47ab14632 Fix grammar on lynch messages 2014-08-03 21:26:37 -05:00
Skizzerz
153e800bef fix amnesiac winning and amnesiacs turning into templates 2014-08-03 21:15:19 -05:00
Skizzerz
f9ece65d73 fix amnesiac gunner 2014-08-03 21:06:38 -05:00
Skizzerz
953d0eb0d8 Fix !stats issue if amnesiac dies 2014-08-03 20:16:29 -05:00
Skizzerz
4e31cc0a0f Gigantic update
1. Rewrite amnesiac: Instead of removing an existing role from the game for the first 2 days,
they now become a brand new random role. Seers, oracles, sorcerers, detectives, and revealing
totems will see through their amnesia so they can learn their actual role. Amnesiacs are neutral
until they clear up, and thus if the game ends while they are still amnesiac, they will win
alongside the default role (e.g. village if default is villagers, or wolves if default is cultists).

2. Make vengeful ghost take vengeance based on the role that killed them instead of making it based
on time of day. If they suicide due to being someone's lover, they will take vengeance on the team
that killed their lover. If they are gunner and their gun explodes, they take vengeance on the
village due to their shoddy gun construction processes.

3. Make clone always trigger even if their target idles out or !quits.

4. Make a harlot visiting victim, harlot visiting wolf, and bodyguard guarding victim able to
shoot wolves if they are also gunner, and for wolves to pick up their gun. In the event of a wolf
kill plus another non-wolf kill, the wolf kill takes precedence in the event of harlot visiting
victim and bodyguard guarding victim, and the non-wolf kill takes precedence in the event of
harlot visiting wolf (the non-wolf kill happens en-route to the wolves, and the gun disappears or
something, idk). Additionally, if the harlot visits victim or the bodyguard guards victim and the
harlot/bodyguard are also targeted by wolves, their special "died visiting/guarding victim" event
plays instead of the normal death message.

5. Change alive vengeful ghost win conditions to work like amnesiac: they win with the default
role if alive at the end of the game.

6. Minor wording fixes, such as the gunner shot wolf message with more commas than words.
Remember, every time you abuse a comma, God kills a kitten.
2014-08-03 17:04:18 -05:00
skizzerz
6920e2e20c Bugfixes: monster can no longer be mayor, and fix issue when bodyguard chooses not to guard anyone 2014-08-03 00:31:18 -05:00
skizzerz
2a0392bc42 Add back in regular lover win code that was accidentally removed, and make lover winning with fool configurable since there was a lot of pushback for the change. Still defaults to false though 2014-08-02 23:51:49 -05:00
skizzerz
137a4f2d03 Add jester role
Similar to fool, the jester wins if they are lynched. Unlike fool,
the game continues if jester is lynched and they win alongside the
normal winners.

Also change it so that a fool's lover does NOT win with fool, so
that fool/jester win mechanics are similar (since jester's lover
would die with jester). It doesn't pay to fall in love with fools!
2014-08-02 22:27:10 -05:00
skizzerz
a8e1f84412 Fix detection of harlot visiting wolfvictim and wolves stealing gun and other wolf-kill related things 2014-08-02 14:14:56 -05:00
skizzerz
2584bebd4a Don't show gun message to wolves with 0 bullets. Closes #64 2014-08-02 13:35:17 -05:00
skizzerz
48a404d170 don't message gunners if they have no bullets left 2014-08-01 22:45:57 -05:00
skizzerz
40863c3b8e fix typo 2014-08-01 19:06:01 -05:00
nyuszika7h
d2b96752c7 Make !votes work in PM 2014-08-01 11:55:19 +02:00
skizzerz
7f269874d6 Disable amnesiac pending rewrite 2014-07-31 22:15:23 -05:00
skizzerz
cc3edf0997 missing period at end of sentence 2014-07-31 21:03:18 -05:00
skizzerz
c87ace5a8e fix issue where not all wolf cubs/traitors turned at once 2014-07-31 20:27:16 -05:00
skizzerz
d0b9627026 fix nightdone checks 2014-07-31 08:55:47 -05:00
skizzerz
0930fdfd96 Fix night done check to exclude hunters that have acted 2014-07-29 22:36:19 -05:00
skizzerz
864aa176a2 Fix error with mad scientist 2014-07-28 18:13:17 -05:00
skizzerz
c94d6a51b8 Fix duplicate lover message if the same pair was selected twice 2014-07-27 22:14:35 -05:00
skizzerz
97f19509c1 Make revealing totem reveal the actual role (traitor even if hidden traitor is on, and amnesiac's real role). Amnesiac remembers who they are immediately if revealed this way. References issue #43 2014-07-27 15:04:34 -05:00
skizzerz
4815d242c8 Remove try/except that was suppressing errors, and fix issue where roles containing idlers were not enumerated. Closes #55 2014-07-27 14:21:02 -05:00
skizzerz
16b3f36eb3 Clean up win checks, and properly detect if clone won. Closes #48 2014-07-27 14:02:40 -05:00
skizzerz
3698e6d6bf Add end of game lovers message. Closes #1 2014-07-27 13:40:04 -05:00
skizzerz
b2d5d15606 Rework timers to track when they started and how long they last so \!time can be more accurate. Closes #42 2014-07-26 13:28:24 -05:00
skizzerz
a73b891b8d Fix desperation totem when day times out. Closes #52 2014-07-26 12:36:10 -05:00
skizzerz
caa2c55b08 Notify wolves when lycan turns. Closes #47 2014-07-26 12:25:02 -05:00
skizzerz
0a9d5c8817 Swap what GA and bodyguard do because it makes more sense if bodyguard dies and GA doesn't 2014-07-26 12:20:47 -05:00
skizzerz
9265d9cfa5 Fix vengeful ghost always targeting villagers after night 1 2014-07-25 23:05:10 -05:00
skizzerz
060ea15bff Fix end of game crash if vengeful ghost idles 2014-07-25 22:45:35 -05:00
skizzerz
40fcfb3a6c Fix bad grammar in message and fix issue where mad scientist has two targets 2014-07-25 22:03:35 -05:00
skizzerz
25b4f1bfbf Fix crash if vengeful ghost dc'ed and fix messages sent off to clones 2014-07-25 20:25:49 -05:00
skizzerz
202c03d0d9 Merge branch 'master' of https://github.com/lykoss/lykos
Conflicts:
	modules/wolfgame.py
	settings/wolfgame.py
2014-07-25 08:30:53 -05:00
skizzerz
ddbeff5977 Fix crash on nickchange if the user is being killed by wolves or is a lover 2014-07-25 08:27:34 -05:00
nyuszika7h
8b76de1aea Improve !fpull 2014-07-25 10:09:33 +02:00
skizzerz
f185556680 Don't fire desperation totem if the person with the totem lynches themselves last. Closes #54 2014-07-24 21:55:43 -05:00
skizzerz
9f5b30aa95 Fix wolf retract 2014-07-24 20:41:57 -05:00
skizzerz
2c47b5610c Allow bodyguard/GA to guard assassin target at night as well. Closes #49 2014-07-24 20:18:03 -05:00
nyuszika7h
b18dd92733 Fix players receiving 0 stasis 2014-07-22 11:09:45 +02:00
skizzerz
2ab85c4d4d Time lord now always triggers on death 2014-07-21 23:14:55 -05:00
skizzerz
60f98b9b1b Fix game not ending if last person leaves during join phase 2014-07-21 00:12:24 -05:00
skizzerz
42f7b6e176 crazed shaman only wins if survives 2014-07-20 21:28:23 -05:00
skizzerz
c8d52a442c Spelling/grammar fixes 2014-07-20 20:52:47 -05:00
skizzerz
6cb320d1e3 Fix vengeful ghost winning with fool/monsters 2014-07-20 19:52:36 -05:00
skizzerz
b28d67a877 Fix wolf cub not turning into wolf 2014-07-20 19:08:37 -05:00
skizzerz
4d000d1857 Don't count wins for templates 2014-07-20 19:00:32 -05:00
skizzerz
c0f6aad73f Fix issues with clone
Clone gets amnesiac's real role if cloning amnesiac
Don't crash if cloning wolf
Closes #44
2014-07-20 18:25:24 -05:00
skizzerz
5cc5e13081 Fix error with guardian angel 2014-07-20 18:07:23 -05:00
skizzerz
ac9bc89699 Finish up previous commit of end of game messages
Closes #23, #30, #31
2014-07-20 18:04:17 -05:00
Skizzerz
2c4ade2454 Lots of end-game message stuff.
The lover of a fool can win with the fool. The lover of a monster can win with monsters.
List winners at end of game.
Idlers are the scum of the earth and never win.
Displays a message if everyone died (originally by nyuszika7h, replicated here due to merge conflicts).
2014-07-20 14:08:26 -05:00
nyuszika7h
0aa076eb6b Check win condition only after checking all idlers 2014-07-20 13:41:26 +02:00
skizzerz
f45a6279d5 Time lord changes:
Bump day time down to 60s and night time down to 30s
Time lord triggers if they die during day for any reason (except idling)
Reduce rate limit for !time to 10s instead of 60
2014-07-19 18:47:17 -05:00
skizzerz
10e50e88c8 Don't do death triggers when someone idles out/quits/etc. Closes #41 2014-07-19 18:32:21 -05:00
skizzerz
f23c899ce2 Show amnesiac as villager in !myrole. Closes #40 2014-07-19 18:24:35 -05:00
Skizzerz
eb299c6232 Add check to ensure nightroles only act at night. Closes #39 2014-07-19 18:16:37 -05:00
skizzerz
cc25784ad4 Allow 0 wolf kills at night. Closes #33 2014-07-19 18:06:39 -05:00
skizzerz
8c772af3ef Merge branch 'master' of https://github.com/lykoss/lykos
Conflicts:
	modules/wolfgame.py
2014-07-19 17:50:47 -05:00
Ryan Schmidt
6976f4d211 Merge pull request #22 from jacob1/clone
clone gets player list, wolves are informed when clone turns into wolf and clone gets the wolf list too
Closes #14
2014-07-19 17:49:14 -05:00
skizzerz
d0c21560ac Properly restore var.ROLES["person"] if we can't apply templates. Closes #34 2014-07-19 17:45:03 -05:00
skizzerz
e0df1de960 Don't do weird stuff if we !fgame the default role. Closes #36 2014-07-19 17:39:31 -05:00
skizzerz
28fa4b0913 Turn wolf cub into wolf if they are the only one left. Closes #16 2014-07-19 17:37:51 -05:00
nyuszika7h
d353ab5ff3 Make !fghost usable by admins 2014-07-19 19:26:41 +02:00
nyuszika7h
0df8098ade Revert "autopep8"
This reverts commit 4189d5c874.
2014-07-19 19:09:24 +02:00
nyuszika7h
4189d5c874 autopep8 2014-07-19 19:05:49 +02:00
skizzerz
cb55f9129b Force assassin to target someone
If assassin times out night, this selects a random target for them and
lets them know who it is. The target is selected amongst players NOT
going to die that day, so only chance of a reselect is due to lovers,
bullets, or lynchings.

Closes #26
2014-07-19 00:02:50 -05:00
skizzerz
736d5f572e Additional fixes
Fix issue introduced in last commit where regular gunners didn't get
bullets.
Fix wolves ending night when angry with only one target selected.
Closes #28
2014-07-18 23:44:31 -05:00
Ryan Schmidt
32312ed2d6 Bugfixes
Fix crash if a template cannot be assigned due to role restrictions.
Fix gunner being able to become sharpshooter even if sharpshooter isn't
in the list of allowed thingies.
2014-07-18 23:23:27 -05:00
jacob1
6f16848302 fix grammar mistake in headshot message 2014-07-18 23:56:06 -04:00
jacob1
fdf6fa7ab2 add clone message when using !simple 2014-07-18 22:15:57 -04:00
jacob1
a937775874 improve previous clone commit 2014-07-18 22:09:06 -04:00
skizzerz
a670925779 Merge remote-tracking branch 'upstream/master'
Conflicts:
	modules/wolfgame.py
	settings/wolfgame.py
2014-07-18 08:53:11 -05:00
skizzerz
585bdb142f Fix death trigger roles like assassin and vengeful ghost. Closes #27 2014-07-17 23:17:03 -05:00
skizzerz
b1bfba32a8 Fix amnesiac duplication when they remember who they are, and make \!stats not instantly reveal what role the amnesiac is. Closes #3 2014-07-17 22:49:28 -05:00
skizzerz
339db52165 Make village elder and death totem not able to be guarded against. Closes #5 2014-07-17 21:23:14 -05:00
skizzerz
6e43f60974 Properly return from pass if a hunter isn't using the command. Fixes #25 2014-07-17 20:53:50 -05:00
skizzerz
88de4eb9b7 Fix \!frole removing roles, fix a syntax error, and fix #20 for real this time 2014-07-17 20:50:32 -05:00
skizzerz
b5e44a572a Alert hag/sorcerer to being cursed. Closes #2 2014-07-17 19:35:58 -05:00
skizzerz
f4d66a28a5 Add !totem as an alias for !give 2014-07-17 19:30:32 -05:00
skizzerz
d84d69f66a Merge branch 'master' of https://github.com/skizzerz/lykos 2014-07-17 19:29:30 -05:00
Ryan Schmidt
dcf5ec63e1 Merge pull request #17 from nyuszika7h/fix-none-totem
Fix None receiving a mysterious totem when the receiver died
2014-07-17 19:28:51 -05:00
skizzerz
a6fd31f322 Don't let del_player kill an already dead player. Closes #20 2014-07-17 19:03:52 -05:00
jacob1
78c964fcc5 clone gets player list, wolves are informed when clone turns into wolf and clone gets the wolf list too 2014-07-17 19:58:20 -04:00
nyuszika7h
b93bf38894 Prettify !revealroles 2014-07-17 22:12:47 +02:00
nyuszika7h
b1a529d13f Fix endgame message when monster kills villagers
Closes #10.
2014-07-17 16:49:38 +02:00
nyuszika7h
c54ec2a4b8 Fix None receiving a mysterious totem when the receiver died
Closes #15.
2014-07-17 16:28:20 +02:00
nyuszika7h
304f16ce7f Fix !admins in PM 2014-07-17 16:03:33 +02:00
skizzerz
2f5055714e Fix crash if a dead person was given narc totem 2014-07-17 00:14:32 -05:00
skizzerz
3203b10015 Hide traitor turning message if role reveal is off 2014-07-16 23:34:20 -05:00
skizzerz
1acb9fc51d Fix clone 2014-07-16 20:56:48 -05:00
skizzerz
66fd6211a5 Finish clone role 2014-07-16 19:00:57 -05:00
skizzerz
53cbeef9f1 Fix amnesiac duplicating when they remember their role (I think). Closes #9 2014-07-16 18:49:26 -05:00
skizzerz
625e2a8d73 Merge branch 'master' of https://github.com/skizzerz/lykos 2014-07-16 18:43:06 -05:00
skizzerz
1899792c29 Fix issue #7 - gunner/narc totem always deducted from villager count 2014-07-16 18:42:56 -05:00
Ryan Schmidt
68ad9d435d Merge pull request #12 from nyuszika7h/fix-lover-crash
Fix crash when already dead lover tries to commit suicide
2014-07-16 18:37:54 -05:00
skizzerz
3e58856b90 Fix issue #4 and some other bugs 2014-07-16 18:37:11 -05:00
nyuszika7h
e750fbae21 Fix crash when already dead lover tries to commit suicide 2014-07-16 23:51:59 +02:00
nyuszika7h
730f9a3b18 Revert "Add !q as an alias for !quit"
This reverts commit 93546dee9d.
2014-07-16 17:22:19 +02:00