locked cause (apparently) all intentional
Can't post this on Complaints cause I don't have enough karma mod please move bla bla bla.
This is intended towards lucid (and my Boyned4Dev movement)
Going through the wiki, there are obviously many bugs in EM. These are some ways to fix some.
- All messages Spy send out go to the Agent, all messages Agent sends out goes to the Spy (along with the role it was sent to.)
This is implying that Spy and Agent have the same function or socket method for contacting. If this is correct, just copy and paste the old contact method, change a few things if needed, and name them accordingly (spycontact, agentcontact).
- If masoned or culted, the game goes into a famine. So, the baker does not need to die for the baker to go into a famine.
This is assuming there is a check for the baker count, then runs a function. Instead, check on the death event for Baker, or at the start of a day, check through all dead roles and check if they're Baker.
- Shoots all visitors, instead of one per group (mafia/mason/cult)
Most likely intention, but just in case. Make an array containing all roles that can be in a group (or check inside the actual role object). At night, duplicate this array. When a role joins, check if they're in the group. If so, kill them and remove them from the duplicate array.
- If Jailer jails Granny, he'll die as soon as the night ends. - Probably intentional.
If not intentional, make Granny check if the person who visited was a jailer.
- Only one mason dies on mismason.
If not intentional, on the function for killing on mm, for loop between every role, and if they're a mason, kill.
- If masons vote on someone, and that person suicides (or is afk kicked presumably), they won't be able to change their vote and the person will be on the lynch vote list the next day. Also, they will be displayed as their starting role until they are kicked during the day, after which they will be shown as a mason
This actually happens with a lot of roles. An easy fix would be to run a function on sui, where it auto unvotes if they have that as their target.
- Perhaps intentional, but a Vigilante who shoots a mason when the mason dies from mis-masoning results in the Vigilante dieing.
If not intentional, use the same method with "Only one mason dies on mismason."
- If killed by the Hitman, the vigilante's kill will still go through.
Change order of events.
That's all that I know for town roles. If anyone wants fixes for maf roles, tell me. And remember. Boyned4Dev.