summaryrefslogtreecommitdiff
path: root/csrc/cards.c
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-09-26 23:48:05 +0800
committerIru Cai <mytbk920423@gmail.com>2018-09-26 23:48:05 +0800
commit85e01a789d0143ca55abba777dcb8d02ce57adc1 (patch)
tree6c406ff5e492252f96d09d525e158bebad1cb4d6 /csrc/cards.c
parent8e99d02945ffd28e17c7483a311d85839e408f80 (diff)
downloadrich4-85e01a789d0143ca55abba777dcb8d02ce57adc1.tar.xz
invite god card
Diffstat (limited to 'csrc/cards.c')
-rw-r--r--csrc/cards.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/csrc/cards.c b/csrc/cards.c
index 54cc8a9..267091e 100644
--- a/csrc/cards.c
+++ b/csrc/cards.c
@@ -1127,6 +1127,37 @@ int send_god_card ()
return ebx;
}
+int invite_god_card ()
+{
+ if (players[current_player].who_plays == 1) {
+ esi = fcn.00444d1a();
+ } else {
+ esi = fcn.0041e6f2(0);
+ }
+
+ if (esi == 0)
+ return 0;
+
+ consume_a_card(current_player, 23);
+ int c = players[current_player].character;
+ player_say(current_player, 0, card_strings[c][0][22]);
+ eax = esi - 1;
+ ebx = eax * 3;
+ edi = word [ebx * 8 + 0x496d0a];
+ word [ebx * 8 + 0x496d0a] = 0;
+ player_action_2(0, 0, 1);
+
+ int _eax = edi * 40 + dw_498e80;
+ sub.WINMM.dll_timeGetTime_669(esi,
+ (int16_t) word [eax], (int16_t) word [eax + 2],
+ players[current_player].f8, players[current_player].f10, 0);
+
+ word [ebx * 8 + 0x496d0a] = di;
+ fcn.0040ead7(current_player, (u32)(u16)di, esi);
+ fcn_41d546();
+ return esi;
+}
+
int tortoise_walking_card()
{
if (players[current_player].who_plays == 1) {