summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-15 23:39:20 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-16 13:27:07 +0800
commit967f970fde8bffc0dd0974275cf45ada0b542497 (patch)
tree3e02d6ac6034a0cca526d5e35ede37da77781233
parent134eb09a0fcb950750d06077c7971f1b52ce8363 (diff)
downloadrich4-967f970fde8bffc0dd0974275cf45ada0b542497.tar.xz
fortune call table
-rw-r--r--csrc/fortune.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/csrc/fortune.c b/csrc/fortune.c
index e120f82..317f327 100644
--- a/csrc/fortune.c
+++ b/csrc/fortune.c
@@ -2,6 +2,9 @@
struct housing_land *hlands; // @0x498e84
+typedef void (*fortune_call(int));
+fortune_call fortune_call_table[];
+
int fcn.0044bb4b(int *v)
{
switch (*v) {
@@ -311,3 +314,54 @@ void bank_reject_a_month(int a0)
}
}
}
+
+fortune_call fortune_call_table[] = {
+ break_down_a_house,
+ remove_a_land,
+ fake_loan,
+ bank_reject_a_month,
+ invade_bank_computer,
+ get_one_card_from_each_player,
+ travel_abroad,
+ kidnapped_by_alien,
+ lose_stock,
+ sell_all_the_stock,
+ moto_stolen,
+ car_destroyed,
+ drowned_to_hospital,
+ fall_off_moto,
+ fined_when_crossing_road,
+ fcn.0044cf1e, fcn.0044d06d,
+ invite_others_meal,
+ fined_for_throwing_trash,
+ fined_for_your_dog,
+ pick_money_on_road,
+ pick_money_on_road2,
+ pick_money_on_road3,
+ lose_wallet,
+ lose_wallet2,
+ get_heritage,
+ scammed_money,
+ win_lottery,
+ win_lottery2,
+ win_lottery3,
+ pay_assurance,
+ get_assurance,
+ sell_all_cards_and_tools,
+ goto_prison_for_drunk,
+ goto_prison_for_taste,
+ goto_prison_for_drug,
+ goto_prison_for_drug2,
+ goto_prison_for_drunk2,
+ goto_prison_for_parade,
+ goto_prison_for_catching_animal,
+ goto_prison_for_selling_treasure,
+ goto_prison_for_seducing,
+ goto_prison_for_taste2,
+ goto_prison_for_drug3,
+ goto_prison_for_poisoning,
+ goto_prison_for_guns,
+ goto_prison_for_hitting_police,
+ goto_prison_for_catching_animal2,
+ goto_prison_for_selling_secret
+};