diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-08 10:37:03 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-08 10:37:03 +0800 |
commit | 392a7553d8beda885a9af2e529e35c48fc78c706 (patch) | |
tree | df1aa18b3bf792bfcca230f7a896605fe0064677 /mbbsd/dice.c | |
parent | 735c0af69f7d5f547d7f714fe47881b513b91fa8 (diff) | |
download | pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.gz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.bz2 pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.lz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.xz pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.tar.zst pttbbs-392a7553d8beda885a9af2e529e35c48fc78c706.zip |
- change money name to macro for better isolation
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3650 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/dice.c')
-rw-r--r-- | mbbsd/dice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/dice.c b/mbbsd/dice.c index b44f1744..e809044a 100644 --- a/mbbsd/dice.c +++ b/mbbsd/dice.c @@ -211,7 +211,7 @@ del(int value[100],int total, dicedata_t * table) demoney(money); move(19, 0); clrtoeol(); - prints("你現在有 %u Ptt$歐", cuser.money); + prints("你現在有 %u " MONEYNAME "$歐", cuser.money); table[i].mymoney -= money; show_count(value, index, -money); break; @@ -363,7 +363,7 @@ dice_main(void) while (1) { move(19, 0); - prints(ANSI_COLOR(1;32) "你現在有" ANSI_COLOR(1;31) " %u " ANSI_COLOR(1;32) "Ptt$歐" ANSI_RESET, + prints(ANSI_COLOR(1;32) "你現在有" ANSI_COLOR(1;31) " %u " ANSI_COLOR(1;32) MONEYNAME "$歐" ANSI_RESET, cuser.money); getdata(20, 0, ANSI_COLOR(1;37) "數字:加選 d:退選 s:開始或離開" ANSI_RESET ": ", input, 5, LCECHO); @@ -426,7 +426,7 @@ dice_main(void) } reload_money(); move(19, 0); - prints(ANSI_COLOR(1;32) "你現在有 " ANSI_COLOR(1;31) "%u" ANSI_COLOR(1;32) " Ptt$歐", + prints(ANSI_COLOR(1;32) "你現在有 " ANSI_COLOR(1;31) "%u" ANSI_COLOR(1;32) " " MONEYNAME "$歐", cuser.money); if (sig != 2) show_count(value,index, money); @@ -461,7 +461,7 @@ dice_main(void) if (total > 0) { move(21, 0); - prints(ANSI_COLOR(1;32) "你贏了 " ANSI_COLOR(1;31) "%d" ANSI_COLOR(1;32) " Ptt$ 唷~~" + prints(ANSI_COLOR(1;32) "你贏了 " ANSI_COLOR(1;31) "%d" ANSI_COLOR(1;32) " " MONEYNAME "$ 唷~~" " " ANSI_RESET, total); } else { move(21, 0); @@ -471,7 +471,7 @@ dice_main(void) move(19, 0); clrtoeol(); - prints(ANSI_COLOR(1;32) "你現在有 " ANSI_COLOR(1;31) "%u" ANSI_COLOR(1;32) " Ptt$歐" ANSI_RESET, + prints(ANSI_COLOR(1;32) "你現在有 " ANSI_COLOR(1;31) "%u" ANSI_COLOR(1;32) " " MONEYNAME "$歐" ANSI_RESET, cuser.money); getdata(23, 0, ANSI_COLOR(1;32) "繼續奮鬥[" ANSI_COLOR(1;37) "y/n" ANSI_COLOR(1;32) "]" ANSI_RESET ": ", |