Commit Graph

38 Commits

Author SHA1 Message Date
sin365
a23a9ca5c6 standardized code comments 2026-02-26 17:31:44 +08:00
akiragatsu 皓月狩魂
ee88fd7218 fixed 2025-12-10 18:09:32 +08:00
akiragatsu 皓月狩魂
38d11fdabf Resolve the issue of G1 and GG, gacha cat not being usable. Already compatible
Mainly, there are differences in the MHFG low version network protocol when pkt.ShopType=1 or 2 in handleMgMhfEnumerationShop. Conducted code judgment and differentiation processing.

If you need to configure the optional material list among the three options,
Configure directly in gacha_detries
The same Entry Type can be merged and displayed in GG
In addition, the prizes are also directly configured in the gacha-entries table,
MHFG1~GG does not use the gacha_items table throughout the entire process, which meets the lottery function of MHFG with a more single function
In addition, the MHFG function itself is relatively simple
Example of lottery configuration for G1~GG:

eg:
					gachaname:test
					entry:
						itemgroup:
							group1:(choose one of the two) ITEM_1_ID:7 COUNT:1  ITEM_1_ID:8 COUNT:2
							group2:ITEM_1_ID:9 COUNT:3
						reward:
							reward1: ITEM_ID:1 COUNT:4 weight:10%
							reward1: ITEM_ID:2 COUNT:5 weight:90%

table:gacha_shop
					|id|min_gr|min_hr|name|url_bannel|url_feature|url_thmubnail|wide|recommendded|gacha_type|hidden|
|1|0|0|test|null|null|null|f|f|3|t|

table:gacha_entries
					|id|gacha_id|entry_type|item_type|item_number|item_quantity|weight|rarity|rolls|frontier_points|daily_limit|name|
|1|1|0|7|7|1|0|0|0|0|0|null|
|4|1|0|7|8|2|0|0|0|0|0|null|
|5|1|1|7|9|3|0|0|0|0|0|null|
|8|1|100|7|1|4|1000|0|0|0|0|null|
|9|1|100|7|2|5|9000|0|0|0|0|null|
2025-12-10 17:56:55 +08:00
wish
4376ed6678 partial backport EnumerateShop 2023-11-29 23:41:06 +11:00
wish
c996975bf1 correct EnumerateShop response 2023-11-29 21:38:32 +11:00
wish
e914cf406b limit EnumerateShop responses 2023-11-29 21:37:41 +11:00
wish
aa77b52233 add legacy support for Frontier Point exchanges 2023-11-23 00:00:23 +11:00
wish
f9d7f56ccb fix Frontier Point exchanges 2023-11-22 23:54:59 +11:00
wish
0550fb21b5 parse & handle PlayFreeGacha 2023-11-22 22:59:36 +11:00
wish
ab6c86ce8e optimise Gacha code & fix rarity bug 2023-11-22 22:54:18 +11:00
wish
f2c7986d82 hide Gacha before it was reworked 2023-07-31 21:17:40 +10:00
wish
ade4d7ea21 additional Gacha functionality 2023-07-30 23:25:31 +10:00
wish
a042cef5b1 fix possible infinite loop in gacha rolls 2023-03-30 23:32:10 +11:00
wish
40d5c67902 merge shop enumeration fixes from feature/diva 2023-03-12 22:05:42 +11:00
wish
e811dd1274 initial time fix 2023-03-04 21:43:10 +11:00
wish
a47303bec2 remove unused code 2023-02-18 18:05:51 +11:00
wish
a7aa0f1c33 separate out gacha function code 2023-02-18 18:05:33 +11:00
wish
66b13c8f58 rearrange gacha functions 2023-02-18 17:20:54 +11:00
wish
9b866967b8 add stepup and box gacha rewards to storage 2023-02-18 15:58:38 +11:00
wish
dfe4998649 implement box gacha 2023-02-18 15:57:17 +11:00
wish
7d5ec5a67e correctly enumerate box gacha 2023-02-18 14:55:45 +11:00
wish
0fcacc24a0 implement stepup gacha, fix unfulfilled rewards 2023-02-18 12:36:17 +11:00
wish
c3306de2ee fix gacha rewards overflowing 2023-02-18 10:43:47 +11:00
wish
8e6fa5e349 fix gacha reward handling 2023-02-17 00:22:58 +11:00
wish
036c4adba1 fix gacha koban my mission exchange 2023-02-15 23:31:14 +11:00
wish
e73d4a03f4 fix gacha rolling and add guaranteed rewards 2023-02-15 23:30:42 +11:00
wish
e1986cb58b create transactGacha function 2023-02-15 00:22:28 +11:00
wish
403b5f1c7f add support for multiple rolls 2023-02-15 00:13:43 +11:00
wish
9805991c95 track gacha coin spending correctly 2023-02-13 23:41:01 +11:00
wish
452404e48c fix gacha enumeration recommendation tag 2023-02-13 23:40:17 +11:00
wish
7d4559b589 variable changes 2023-01-15 21:36:50 +11:00
wish
e1df9fca04 fix p2w currency enumeration 2023-01-15 20:42:17 +11:00
wish
341276c0ff implement normal gacha functionality 2023-01-15 19:55:08 +11:00
wish
3913316310 code cleanup 2022-11-26 08:37:33 +11:00
wish
d21ecf2b31 shop enumeration pass 2 2022-11-21 11:42:19 +11:00
wish
9103debe99 shop enumeration first pass 2022-11-21 09:27:29 +11:00
wish
2570dda066 revert road shop changes 2022-08-04 10:34:22 +10:00
wish
2c0e7a5267 repository cleanup 2022-07-29 03:25:23 +10:00