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

Template:Rp/ActiveCount

From MafiaWiki
Revision as of 22:49, 27 May 2018 by Callforjudgement (talk | contribs) (fix Rc → Rp)
Jump to navigation Jump to search

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
0
Town/Cop
1
Town/Bulletproof
0
Mafia/Loyal/Jailkeeper
1
Mafia/Bulletproof/Jailkeeper
1
Mafia/Multitasking/Jailkeeper
1
Mafia/Ninja
0
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
2
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
2