So yeah, I tried something different with designing this.
This was the first Touhou-game to have exactly the same amount of characters as players. So I wanted to use them all without flavor breaking everything.
To do that I made a few decisions:
1) Seija was the only sure-fire scum. The other 2 were decided by random.org (That's how the MC of the serie could be scum).
Flavorwise the Mallet does indeed grant wishes with a twist and I could abuse that fact a bit.
2) The only people tied with the flavor were Seija Kijin and Shinmyoumaru Sukuna (though you would've had to read up on the wiki to see the 2nd one).
3) I made the roles after random.org decided the scum team. A bit of flavor for each role though.
- Marisa Kirisame (human magician bookthief) was a Thief.
- Sakuya Izayoi was a vigilante (ingame her knives start thirsting for blood).
- Cirno was a jailer. But could only target everyone once (including herself). I did think about having a percentage of her targets die to reflect her 'real' lack of ability where 33% of her frozen targets die, but I decided against it.
- Kagerou Imaizumi and Wagasakihime were neighbours (their only contact is a network system, but one lives in a forest and the other underwater. So that's why they were not masons)
- Sekibanki (mafia) was a namecop. This was due to the ability of Shinmyoumaru.
- Shinmyoumaru was a special case.
The Miracle Mallet is an item that can only be used by Inchling, a tiny race of which Shinmyoumaru was used by Seija before she had a change of heart.
The Mallet has to be recharged and I did some math to determine that the end of N5 would be the hardest to achieve.
For all intent and purposes Shinmyoumaru was town, but like I said, the Mallet grants wishes with a twist. At the end of N5, the mafia would disappear, but the win would only go to Shinmyoumaru.
4) Not revealing the roles.
This was an intended choice to prevent flavor-role-breaking.
It was not too much of a worry if I did reveal, but I was also a bit lazy