diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-27 11:11:20 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-27 11:11:20 +0800 |
commit | 066989369dd49bf4a82b2eef8f827d4882f58ae1 (patch) | |
tree | 6b59b4f197b32a131340cb4ebbf4cc9dfcb1fce7 /mbbsd | |
parent | 52492ca04b153e2716d09c5239715aab3068b453 (diff) | |
download | pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar.gz pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar.bz2 pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar.lz pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar.xz pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.tar.zst pttbbs-066989369dd49bf4a82b2eef8f827d4882f58ae1.zip |
- fixed: ten-half may be played without having PMONEY.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4325 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/card.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mbbsd/card.c b/mbbsd/card.c index 6332deee..db2f1a54 100644 --- a/mbbsd/card.c +++ b/mbbsd/card.c @@ -548,14 +548,21 @@ g_card_jack(void) { int db; char buf[3]; + int times = 0; setutmpmode(JACK_CARD); while (1) { reload_money(); - if (cuser.money < JACK) { + if (cuser.money < PMONEY) { outs("您的錢不夠唷!去多發表些有意義的文章再來~~~"); return 0; } + if (times++ % 5 == 0) + { + move(b_lines-2, 0); clrtoeol(); + outs(ANSI_COLOR(1;31) + "警告: 本遊戲由 PttGames 看板評鑑為黑店,請小心!" ANSI_RESET); + } getdata(b_lines - 1, 0, "確定要玩黑傑克嗎 一次十元唷?(Y/N)?[N]", buf, 3, LCECHO); if ((*buf != 'y') && (*buf != 'Y')) @@ -646,7 +653,7 @@ g_ten_helf(void) setutmpmode(TENHALF); while (1) { reload_money(); - if (cuser.money < TEN_HALF) { + if (cuser.money < PMONEY) { outs("您的錢不夠唷!去多發表些有意義的文章再來~~~"); return 0; } |