]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve some nade and buff descriptions
authorotta8634 <k9wolf@pm.me>
Tue, 25 Feb 2025 16:51:18 +0000 (00:51 +0800)
committerotta8634 <k9wolf@pm.me>
Tue, 25 Feb 2025 16:51:18 +0000 (00:51 +0800)
Affected veil nade, darkness nade, translocate nade,
ammo buff, vengeance buff, and vampire buff.

qcsrc/common/mutators/mutator/buffs/buff/ammo.qc
qcsrc/common/mutators/mutator/buffs/buff/jump.qc
qcsrc/common/mutators/mutator/buffs/buff/swapper.qc
qcsrc/common/mutators/mutator/buffs/buff/vampire.qc
qcsrc/common/mutators/mutator/buffs/buff/vengeance.qc
qcsrc/common/mutators/mutator/nades/nade/darkness.qc
qcsrc/common/mutators/mutator/nades/nade/translocate.qc
qcsrc/common/mutators/mutator/nades/nade/veil.qc

index ac28046befd7b772d8796c36289deb7a52108779..a41ecd1fcfa7d059ef8cc964c94d6226b5d50f9c 100644 (file)
@@ -58,11 +58,14 @@ METHOD(AmmoBuff, m_tick, void(StatusEffect this, entity actor))
 }
 #endif // SVQC
 #ifdef MENUQC
+#include <common/weapons/weapon/rifle.qh>
+#include <common/mutators/mutator/overkill/okmachinegun.qh>
+
 METHOD(AmmoBuff, describe, string(AmmoBuff this))
 {
        TC(AmmoBuff, this);
        return sprintf(_("The %s gives you infinite ammo until the buff expires, so you don't need to worry about running out of ammo\n\n"
-               "It also removes the need to reload any weapons that require reloading"),
-       COLORED_NAME_WITH_CONCAT(this, _("Buff")));
+               "It also removes the need to reload any weapons that require reloading, like the %s and %s"),
+       COLORED_NAME_WITH_CONCAT(this, _("Buff")), COLORED_NAME(WEP_RIFLE), COLORED_NAME(WEP_OVERKILL_MACHINEGUN));
 }
 #endif // MENUQC
index ca252294eda83fcba15d0320def8b8b7bb1207d1..a82d73366cae670ab76ea30b99ca5b1643352e43 100644 (file)
@@ -21,7 +21,8 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerPhysics)
 METHOD(JumpBuff, describe, string(JumpBuff this))
 {
        TC(JumpBuff, this);
-       return sprintf(_("The %s greatly increases your jump height, while the buff is active\n\nIt also makes you immune to fall damage"),
+       return sprintf(_("The %s greatly increases your jump height, while the buff is active\n\n"
+               "It also makes you immune to fall damage"),
        COLORED_NAME_WITH_CONCAT(this, _("Buff")));
 }
 #endif // MENUQC
index 1305cb333f18c3e5fe1e40067f26622b2e2edc20..de4176e27bd3da6e6f2983578f3eaeefef19ab62 100644 (file)
@@ -85,7 +85,8 @@ METHOD(SwapperBuff, describe, string(SwapperBuff this))
 {
        TC(SwapperBuff, this);
        return sprintf(_("The %s allows you to press the ^3drop weapon^7 bind to switch places with a nearby enemy once\n\n"
-               "A common usage of this buff is to jump over the map's void, then swap with an enemy, to cause them to fall into the void"),
+               "A common usage of this buff is to jump over the map's void, then swap with an enemy, to cause them to fall into the void\n\n"
+               "The range that the buff works over is limited, so sometimes it may do nothing if there are no enemies nearby"),
        COLORED_NAME_WITH_CONCAT(this, _("Buff")));
 }
 #endif // MENUQC
index 38337972c5321578c4147f8a9c8dd8e11ec12768..9916f7c36f5703117ec62d14c041005529514aba 100644 (file)
@@ -18,10 +18,13 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerDamage_SplitHealthArmor)
 }
 #endif // SVQC
 #ifdef MENUQC
+#include "vengeance.qh"
+
 METHOD(VampireBuff, describe, string(VampireBuff this))
 {
        TC(VampireBuff, this);
-       return sprintf(_("The %s converts some of the damage you deal to enemies and monsters into health for yourself, until the buff expires"),
-       COLORED_NAME_WITH_CONCAT(this, _("Buff")));
+       return sprintf(_("The %s converts some of the damage you deal to enemies and monsters into health for yourself, until the buff expires\n\n"
+               "In some sense, this is the opposite of the %s"),
+       COLORED_NAME_WITH_CONCAT(this, _("Buff")), COLORED_NAME_WITH_CONCAT(BUFF_VENGEANCE, _("Buff")));
 }
 #endif // MENUQC
index e1cef4994d612c4a0ecfc9b2b4d0494185283ef5..a7c72436fd0867b462d3f023551adb7584197d99 100644 (file)
@@ -15,10 +15,13 @@ float buff_Vengeance_CalculateDamage(float frag_damage)
 }
 #endif // SVQC
 #ifdef MENUQC
+#include "vampire.qh"
+
 METHOD(VengeanceBuff, describe, string(VengeanceBuff this))
 {
        TC(VengeanceBuff, this);
-       return sprintf(_("The %s reciprocates a portion of the damage enemies deal to you onto them, until the buff expires"),
-       COLORED_NAME_WITH_CONCAT(this, _("Buff")));
+       return sprintf(_("The %s reciprocates a portion of the damage enemies deal to you onto them, until the buff expires\n\n"
+               "In some sense, this is the opposite of the %s"),
+       COLORED_NAME_WITH_CONCAT(this, _("Buff")), COLORED_NAME_WITH_CONCAT(BUFF_VAMPIRE, _("Buff")));
 }
 #endif // MENUQC
index eec2aca83903749df2bdf0427251ad21673d5a3f..d2178d84b13edcb59a5701ac410d1f66f35214d1 100644 (file)
@@ -137,10 +137,13 @@ MUTATOR_HOOKFUNCTION(cl_nades, HUD_Draw_overlay)
 }
 #endif // CSQC
 #ifdef MENUQC
+#include "darkness.qh"
+
 METHOD(DarknessNade, describe, string(DarknessNade this))
 {
        TC(DarknessNade, this);
-       return sprintf(_("The %s detonates after a short delay, creating a dark field which temporarily blinds enemies who enter it"),
-       COLORED_NAME(this));
+       return sprintf(_("The %s detonates after a short delay, creating a dark field which temporarily blinds enemies who enter it\n\n"
+               "This is sort of the opposite of the %s"),
+       COLORED_NAME(this), COLORED_NAME(NADE_TYPE_VEIL));
 }
 #endif // MENUQC
index 1e14361f3637204ad380f3e94589b4dcb926e869..9ac1db4738892b3f5cc76d93cfbd5a05782d4b04 100644 (file)
@@ -41,7 +41,9 @@ bool nade_translocate_DestroyDamage(entity this, entity attacker)
 METHOD(TranslocateNade, describe, string(TranslocateNade this))
 {
        TC(TranslocateNade, this);
-       return sprintf(_("The %s detonates after a short delay, teleporting you to where it detonated"),
+       return sprintf(_("The %s detonates after a short delay, teleporting you to where it detonated\n\n"
+               "A common use of this nade is saving yourself from the void in space maps, however mastering this is very tricky\n\n"
+               "If this grenade is destroyed by an attacker, it will deal some damage to them"),
        COLORED_NAME(this));
 }
 #endif // MENUQC
index 49498b71acda0ecb68c3a608d7075198726c1941..c1c65763c53077306be2649f6a19ac6187fbae75 100644 (file)
@@ -44,11 +44,14 @@ void nade_veil_Apply(entity player)
 }
 #endif // SVQC
 #ifdef MENUQC
+#include "darkness.qh"
+
 METHOD(VeilNade, describe, string(VeilNade this))
 {
        TC(VeilNade, this);
-       return sprintf(_("The Veil grenade detonates after a short delay, temporarily creating an orb around the point where it detonated for several seconds. "
-               "Players inside the orb will be invisible to those outside it"),
-       COLORED_NAME(this));
+       return sprintf(_("The %s detonates after a short delay, temporarily creating an orb around the point where it detonated for several seconds. "
+               "Players inside the orb will be invisible to those outside it\n\n"
+               "This is sort of the opposite of the %s"),
+       COLORED_NAME(this), COLORED_NAME(NADE_TYPE_DARKNESS));
 }
 #endif // MENUQC