From 8e99d02945ffd28e17c7483a311d85839e408f80 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 26 Sep 2018 23:16:17 +0800 Subject: send god card --- csrc/cards.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'csrc/cards.c') 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) { -- cgit v1.2.3