diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-26 23:16:17 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-26 23:16:17 +0800 |
commit | 8e99d02945ffd28e17c7483a311d85839e408f80 (patch) | |
tree | 6ec47c3b5ea2e122f502ec2bc116ee212f4f8d50 /csrc | |
parent | 82dc6f263f267775f3df18345129815b271a7611 (diff) | |
download | rich4-8e99d02945ffd28e17c7483a311d85839e408f80.tar.xz |
send god card
Diffstat (limited to 'csrc')
-rw-r--r-- | csrc/cards.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/csrc/cards.c b/csrc/cards.c index 68423a5..54cc8a9 100644 --- a/csrc/cards.c +++ b/csrc/cards.c @@ -1098,6 +1098,35 @@ int sleep_walking_card() return esi; } +int send_god_card () +{ + dl = players[current_player].f64; + if (dl != 0) { + eax = dl; + fcn.0040e14d(eax); + ebx = 1; + } + dh = players[current_player].god_info; + if (dh != 0) { + edx = dh - 1; + eax = edx * 3; + eax = byte [eax*8 + 0x496d08]; + if (eax == 5 || eax == 6 || ecx == 7 || eax == 8 || eax == 10 || eax == 15) { + fcn.0040e32c(current_player); + consume_a_card(current_player, 22); + int c = players[current_player].character; + player_say(current_player, 0, card_strings[c][0][21]); + return 1; + } + } + if (ebx == 0) + return 0; + consume_a_card(current_player, 22); + int c = players[current_player].character; + player_say(current_player, 0, card_strings[c][0][21]); + return ebx; +} + int tortoise_walking_card() { if (players[current_player].who_plays == 1) { |