]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Replace yoda achievement name
authorAriosJentu <darthpoezd@gmail.com>
Sun, 25 Aug 2019 16:20:44 +0000 (02:20 +1000)
committerAriosJentu <darthpoezd@gmail.com>
Sun, 25 Aug 2019 16:20:44 +0000 (02:20 +1000)
qcsrc/common/achievements.qc
qcsrc/common/achievements.qh
qcsrc/common/weapons/weapon/vaporizer.qc
qcsrc/common/weapons/weapon/vortex.qc

index 4c499dc72beeb8b950ae9bf6b3fced7173f6ea4d..e9f3abacfc7e4098aabc6c6338310c664c2b704f 100644 (file)
@@ -30,7 +30,7 @@ void Achievements_set_achievement_value(entity this, string achieve, int value)
        if (achieve == "botlike") this.botlike = value;
        if (achieve == "electrobitch") this.electrobitch = value;
        if (achieve == "impressive") this.impressive = value;
-       if (achieve == "flyingyoda") this.flyingyoda = value;
+       if (achieve == "likeyoda") this.likeyoda = value;
        
        if (achieve == "multirailed") this.multirailed = value;
        if (achieve == "pointblank") this.pointblank = value;
@@ -57,7 +57,7 @@ int Achievements_get_achievement_value(entity this, string achieve) {
        if (achieve == "botlike") return this.botlike;
        if (achieve == "electrobitch") return this.electrobitch;
        if (achieve == "impressive") return this.impressive;
-       if (achieve == "flyingyoda") return this.flyingyoda;
+       if (achieve == "likeyoda") return this.likeyoda;
 
        if (achieve == "multirailed") return this.multirailed;
        if (achieve == "pointblank") return this.pointblank;
@@ -84,7 +84,7 @@ string Achievements_get_achievement_title(string achieve) {
        if (achieve == "botlike") return "Botlike!";
        if (achieve == "electrobitch") return "Electro-BITCH!";
        if (achieve == "impressive") return "Impressive!";
-       if (achieve == "flyingyoda") return "Yoda!";
+       if (achieve == "likeyoda") return "Like Yoda!";
 
        if (achieve == "multirailed") return "Multi Railed!";
        if (achieve == "pointblank") return "Point Blank!";
index c198b21b196adb79ae1ee6fd8048316933c6a516..87f1588159ee1aca4608b172043372e6142a728a 100644 (file)
@@ -23,7 +23,7 @@ CLASS(Achievements, Object)
        ATTRIB(Achievements, botlike, int, 0);
        ATTRIB(Achievements, electrobitch, int, 0);
        ATTRIB(Achievements, impressive, int, 0);
-       ATTRIB(Achievements, flyingyoda, int, 0); //In Yoda maybe incorrect conditions
+       ATTRIB(Achievements, likeyoda, int, 0);
 
        //New achievements
        ATTRIB(Achievements, multirailed, int, 0);
index 91927a6a8533fb264baece9dffcada0de01a5e5f..5e82921613c8deef941db4043c643f1067099616 100644 (file)
@@ -139,7 +139,7 @@ void W_Vaporizer_Attack(Weapon thiswep, entity actor, .entity weaponentity)
 
        if(yoda && flying) {
                Send_Notification(NOTIF_ONE, actor, MSG_ANNCE, ANNCE_ACHIEVEMENT_YODA);
-               achs.inc_achievement(achs, "flyingyoda");
+               achs.inc_achievement(achs, "likeyoda");
        }
 
        if(damage_goodhits && actor.vaporizer_lasthit)
index dc579217018717da099840f7ba1d2f3bc11aff30..10e4e20d6d89ebcb4b5e1dce804f8b02355b848e 100644 (file)
@@ -150,7 +150,7 @@ void W_Vortex_Attack(Weapon thiswep, entity actor, .entity weaponentity, float i
 
        if(yoda && flying) {
                Send_Notification(NOTIF_ONE, actor, MSG_ANNCE, ANNCE_ACHIEVEMENT_YODA);
-               achs.inc_achievement(achs, "flyingyoda"); 
+               achs.inc_achievement(achs, "likeyoda"); 
     }
 
        if(damage_goodhits && actor.vortex_lasthit)