]> git.pond.sub.org Git - empserver/commitdiff
(chan): Don't require 254 BTUs even when not charging any (BLITZ).
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Oct 2003 18:29:29 +0000 (18:29 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Oct 2003 18:29:29 +0000 (18:29 +0000)
src/lib/commands/chan.c

index 411cb7ab0890226aca451fea6d3cb46d9a25bb43..b9d610809c126ddc90969c5697dd5ca839484716 100644 (file)
@@ -70,18 +70,15 @@ chan(void)
        charge = 0;
        btucost = 0;
        if (!player->god && (us->nat_stat & STAT_NORM)) {
-           if (us->nat_btu < 254) {
-               pr("You need 254 btus to change your country name!\n");
-               return RET_FAIL;
-           }
            if (opt_BLITZ == 0) {
+               if (us->nat_btu < 254) {
+                   pr("You need 254 btus to change your country name!\n");
+                   return RET_FAIL;
+               }
                pr("This command costs 254 BTU's and 10%% of your money.\n");
                if (!confirm("Are you sure you want to do this? "))
                    return RET_FAIL;
                btucost = 254;
-               /* charge = 2000; */
-               /*if (us->nat_money < charge*10) */
-               /*      charge = us->nat_money / 10; */
                if (us->nat_money <= 0)
                    charge = 0;
                else
@@ -110,10 +107,8 @@ chan(void)
            pr("Must have a non-blank name!\n");
            return RET_FAIL;
        }
-       if (opt_BLITZ == 0) {
-           player->dolcost += charge;
-           player->btused += btucost;
-       }
+       player->dolcost += charge;
+       player->btused += btucost;
        strcpy(us->nat_cnam, p);
        putnat(us);
        nreport(player->cnum, N_NAME_CHNG, 0, 1);