Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
luck.qc
Go to the documentation of this file.
1#include "luck.qh"
2
3#ifdef SVQC
11#endif // SVQC
12#ifdef MENUQC
13METHOD(LuckBuff, describe, string(LuckBuff this))
14{
15 TC(LuckBuff, this);
17 PAR(_("While you have the %s buff, each attack has a chance of being a critical hit with greatly increased damage."), COLORED_NAME(this));
18 return PAGE_TEXT;
19}
20#endif // MENUQC
#define COLORED_NAME(this)
Definition color.qh:195
#define TC(T, sym)
Definition _all.inc:82
float buff_Luck_CalculateDamage(float frag_damage)
Definition luck.qc:4
float autocvar_g_buffs_luck_chance
Definition luck.qh:6
float autocvar_g_buffs_luck_damagemultiplier
Definition luck.qh:7
float random(void)
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define PAGE_TEXT
Definition string.qh:643
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
Definition string.qh:649
#define PAGE_TEXT_INIT()
Definition string.qh:642
float frag_damage
Definition sv_ctf.qc:2322