]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/buffs/buffs.qc
Cleanup common mutators: remove IMPLEMENTATION macro
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / buffs / buffs.qc
1 #include "buffs.qh"
2
3 string BUFF_NAME(int i)
4 {
5     Buff b = Buffs_from(i);
6     return sprintf("%s%s", rgb_to_hexcolor(b.m_color), b.m_prettyName);
7 }
8
9 entity buff_FirstFromFlags(int _buffs)
10 {
11     if (flags)
12     {
13         FOREACH(Buffs, it.m_itemid & _buffs, LAMBDA(return it));
14     }
15     return BUFF_Null;
16 }