You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Rp/ActiveCount

From MafiaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

0

Name:
  • Rp/ActiveCount
Type:
Sub-Template:
  • Yes
Designer:

The {{Rp/ActiveCount}} template takes a role string as argument, and returns the number of different active abilities that that role has. Its main purpose is to allow for correct pluralisation of modifiers that affect the set of active abilities as a whole.

Note that the Mafia's nightkill will count as an active ability, as will those of other similar factions. You can give Nightless as a second argument if you need to exclude this specific ability from the count.

Examples/tests

Town
0
Mafia
1
Town/Cop
1
Town/Bulletproof
0
Mafia/Loyal/Jailkeeper
2
Mafia/Bulletproof/Jailkeeper
2
Mafia/Multitasking/Jailkeeper
2
Mafia/Ninja
2
Town/Cop/Doctor
2
Town/Bulletproof/Enabler
0
Town/Odd Night/Doctor/Enabler
0
Town/Bulletproof/Activated
1
Town/Ascetic/Bulletproof
0
Town/Ascetic/Bulletproof/Enabler
0
Town/Cop/Odd Night/Doctor
2
Town/Even Night/Cop/Odd Night/Doctor
2
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
3
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
3
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
4