diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-26 23:48:05 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-26 23:48:05 +0800 |
commit | 85e01a789d0143ca55abba777dcb8d02ce57adc1 (patch) | |
tree | 6c406ff5e492252f96d09d525e158bebad1cb4d6 | |
parent | 8e99d02945ffd28e17c7483a311d85839e408f80 (diff) | |
download | rich4-85e01a789d0143ca55abba777dcb8d02ce57adc1.tar.xz |
invite god card
-rw-r--r-- | csrc/cards.c | 31 |
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) { |