pmdsky-debug-py 10.0.48__py3-none-any.whl → 10.0.50__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pmdsky_debug_py/jp.py CHANGED
@@ -3661,6 +3661,15 @@ class JpArm9Functions:
3661
3661
  None,
3662
3662
  )
3663
3663
 
3664
+ CopyAndInterleaveWrapper = Symbol(
3665
+ [0x1C048],
3666
+ [0x201C048],
3667
+ None,
3668
+ "CopyAndInterleaveWrapper",
3669
+ "Calls CopyAndInterleave with the passed len divided by 2.\n\nr0: dst\nr1: src\nr2: len (in bytes, will be divided by 2 in the call to CopyAndInterleave)\nr3: val",
3670
+ None,
3671
+ )
3672
+
3664
3673
  InitAnimationControl = Symbol(
3665
3674
  [0x1C0A8],
3666
3675
  [0x201C0A8],
@@ -4251,7 +4260,7 @@ class JpArm9Functions:
4251
4260
  [0x2024B44],
4252
4261
  None,
4253
4262
  "GetRankString",
4254
- "Gets the string corresponding to the player's current explorer rank.\n\nr0: [output] Pointer to the buffer where the string will be written\nr1: First 16 bits contain the rank, next 4 are some sort of bitflags\nreturn: r0 if flags are 0, pointer to some static address otherwise",
4263
+ "Gets the string corresponding to the player's current explorer rank.\n\nr0: [output] Pointer to the buffer where the string will be written (if flags are 0)\nr1: First 16 bits contain the rank, next 4 are some sort of bitflags\nreturn: r0 if flags are 0, pointer to some static address otherwise",
4255
4264
  None,
4256
4265
  )
4257
4266
 
@@ -11025,7 +11034,7 @@ class JpItcmFunctions:
11025
11034
  [0x20B4BE0],
11026
11035
  None,
11027
11036
  "CopyAndInterleave",
11028
- "Copies data from src to dst, placing the last 4 bits of val after every 4 bits copied.\n\nIn total, the number of bytes copied from src will be 2 * len, while the number of bytes pasted will be 4 * len.\n\nr0: [output] dst\nr1: src\nr2: len (in words)\nr3: val",
11037
+ "Copies data from src to dst, placing the last 4 bits of val after every 4 bits copied.\n\nIn total, the number of bytes copied from src will be len, while the number of bytes pasted will be 2 * len.\n\nr0: [output] dst\nr1: src\nr2: len (in bytes)\nr3: val",
11029
11038
  None,
11030
11039
  )
11031
11040
 
@@ -27977,6 +27986,24 @@ class JpOverlay29Functions:
27977
27986
  None,
27978
27987
  )
27979
27988
 
27989
+ LoadWeather3DFiles = Symbol(
27990
+ [0x5C394],
27991
+ [0x2339C74],
27992
+ None,
27993
+ "LoadWeather3DFiles",
27994
+ "Loads the 1001.wte, 1005.wte, and 1031.wte files in dungeon.bin, which are used for the 3D effects for the tileset weather as well as the Sandstorm/Fog weather conditions.\n\nNo params.",
27995
+ None,
27996
+ )
27997
+
27998
+ RenderWeather3D = Symbol(
27999
+ [0x5C5A8],
28000
+ [0x2339E88],
28001
+ None,
28002
+ "RenderWeather3D",
28003
+ "Renders the 3D effects for the tileset weather as well as the Sandstorm/Fog weather conditions.\n\nNo params.",
28004
+ None,
28005
+ )
28006
+
27980
28007
  GetMinimapData = Symbol(
27981
28008
  [0x5CBFC],
27982
28009
  [0x233A4DC],
@@ -27995,6 +28022,15 @@ class JpOverlay29Functions:
27995
28022
  None,
27996
28023
  )
27997
28024
 
28025
+ FlashLeaderIcon = Symbol(
28026
+ [0x5D508],
28027
+ [0x233ADE8],
28028
+ None,
28029
+ "FlashLeaderIcon",
28030
+ "Seems to control flashing the leader's icon on the minimap when r0 = 0? Doesn't seem to ever be called when r0 = 1.\n\nr0: ?",
28031
+ None,
28032
+ )
28033
+
27998
28034
  UpdateMinimap = Symbol(
27999
28035
  [0x5D7CC],
28000
28036
  [0x233B0AC],
@@ -30113,6 +30149,15 @@ class JpOverlay29Data:
30113
30149
  "struct damage_negating_exclusive_eff_entry[28]",
30114
30150
  )
30115
30151
 
30152
+ TWO_TURN_STATUSES = Symbol(
30153
+ [0x76400],
30154
+ [0x2353CE0],
30155
+ 0xB,
30156
+ "TWO_TURN_STATUSES",
30157
+ "Lists all status IDs that are for two-turn moves. The last entry is null.",
30158
+ "struct status_two_turn_id_8[11]",
30159
+ )
30160
+
30116
30161
  TWO_TURN_MOVES_AND_STATUSES = Symbol(
30117
30162
  [0x7644C],
30118
30163
  [0x2353D2C],
@@ -31539,9 +31584,9 @@ class JpRamFunctions:
31539
31584
  class JpRamData:
31540
31585
 
31541
31586
  DEFAULT_MEMORY_ARENA_MEMORY = Symbol(
31542
- None,
31543
- None,
31544
- None,
31587
+ [0xB6420],
31588
+ [0x20B6420],
31589
+ 0x1E6400,
31545
31590
  "DEFAULT_MEMORY_ARENA_MEMORY",
31546
31591
  "The memory region for the default memory arena.\n\nThe length is defined by DEFAULT_MEMORY_ARENA_SIZE.\n\nOne mode that uses this region for heap allocations is dungeon mode.",
31547
31592
  "uint8_t[1991680]",
@@ -31638,18 +31683,18 @@ class JpRamData:
31638
31683
  )
31639
31684
 
31640
31685
  TOUCHSCREEN_STATUS = Symbol(
31641
- None,
31642
- None,
31643
- None,
31686
+ [0x2A4E3C],
31687
+ [0x22A4E3C],
31688
+ 0x104,
31644
31689
  "TOUCHSCREEN_STATUS",
31645
31690
  "Status of the touchscreen, including the coordinates of the currently pressed position in pixels.",
31646
31691
  "struct touchscreen_status",
31647
31692
  )
31648
31693
 
31649
31694
  BAG_ITEMS = Symbol(
31650
- None,
31651
- None,
31652
- None,
31695
+ [0x2A5084],
31696
+ [0x22A5084],
31697
+ 0x12C,
31653
31698
  "BAG_ITEMS",
31654
31699
  "Array of item structs within the player's bag.\n\nWhile the game only allows a maximum of 48 items during normal play, it seems to read up to 50 item slots if filled.\n\ntype: struct item[50]",
31655
31700
  "struct item[50]",
@@ -31750,18 +31795,36 @@ class JpRamData:
31750
31795
  )
31751
31796
 
31752
31797
  AUDIO_COMMANDS_BUFFER = Symbol(
31753
- None,
31754
- None,
31755
- None,
31798
+ [0x2A64B0],
31799
+ [0x22A64B0],
31800
+ 0x200,
31756
31801
  "AUDIO_COMMANDS_BUFFER",
31757
31802
  "Buffer used to store audio commands. 16 entries in total. Seems like entries are removed at some point (maybe after the commands are read or after they finish executing).",
31758
31803
  "struct audio_command[16]",
31759
31804
  )
31760
31805
 
31761
- CURSOR_16_SPRITE_ID = Symbol(
31806
+ SOUND_MEMORY_ARENA_PTR = Symbol(
31762
31807
  None,
31763
31808
  None,
31764
31809
  None,
31810
+ "SOUND_MEMORY_ARENA_PTR",
31811
+ "Pointer to SOUND_MEMORY_ARENA.",
31812
+ "struct mem_arena*",
31813
+ )
31814
+
31815
+ WINDOW_LIST = Symbol(
31816
+ [0x2AA0E8],
31817
+ [0x22AA0E8],
31818
+ 0x1180,
31819
+ "WINDOW_LIST",
31820
+ "Array of all window structs. Newly created window structs are taken from slots in this array.\n\nNote that this array isn't strictly ordered in any way. A newly created window will occupy the first available slot. If a window in an early slot is destroyed, windows that are still active in later slots won't be shifted back unless destroyed and recreated.\n\ntype: struct window_list",
31821
+ "struct window_list",
31822
+ )
31823
+
31824
+ CURSOR_16_SPRITE_ID = Symbol(
31825
+ [0x2AC470],
31826
+ [0x22AC470],
31827
+ 0x2,
31765
31828
  "CURSOR_16_SPRITE_ID",
31766
31829
  "Id of the 'FONT/cursor_16.wan' sprite loaded in WAN_TABLE",
31767
31830
  "uint16_t",
@@ -31777,63 +31840,45 @@ class JpRamData:
31777
31840
  )
31778
31841
 
31779
31842
  CURSOR_ANIMATION_CONTROL = Symbol(
31780
- None,
31781
- None,
31782
- None,
31843
+ [0x2AC48C],
31844
+ [0x22AC48C],
31845
+ 0x7C,
31783
31846
  "CURSOR_ANIMATION_CONTROL",
31784
31847
  "animation_control of 'FONT/cursor.wan'",
31785
31848
  "struct animation_control*",
31786
31849
  )
31787
31850
 
31788
31851
  CURSOR_16_ANIMATION_CONTROL = Symbol(
31789
- None,
31790
- None,
31791
- None,
31852
+ [0x2AC508],
31853
+ [0x22AC508],
31854
+ 0x7C,
31792
31855
  "CURSOR_16_ANIMATION_CONTROL",
31793
31856
  "animation_control of 'FONT/cursor_16.wan'",
31794
31857
  "struct animation_control*",
31795
31858
  )
31796
31859
 
31797
31860
  ALERT_SPRITE_ID = Symbol(
31798
- None,
31799
- None,
31800
- None,
31861
+ [0x2AC584],
31862
+ [0x22AC584],
31863
+ 0x2,
31801
31864
  "ALERT_SPRITE_ID",
31802
31865
  "Id of the 'FONT/alert.wan' sprite loaded in WAN_TABLE",
31803
31866
  "uint16_t",
31804
31867
  )
31805
31868
 
31806
31869
  ALERT_ANIMATION_CONTROL = Symbol(
31807
- None,
31808
- None,
31809
- None,
31870
+ [0x2AC588],
31871
+ [0x22AC588],
31872
+ 0x7C,
31810
31873
  "ALERT_ANIMATION_CONTROL",
31811
31874
  "animation_control of 'FONT/alter.wan'",
31812
31875
  "struct animation_control*",
31813
31876
  )
31814
31877
 
31815
- SOUND_MEMORY_ARENA_PTR = Symbol(
31816
- None,
31817
- None,
31818
- None,
31819
- "SOUND_MEMORY_ARENA_PTR",
31820
- "Pointer to SOUND_MEMORY_ARENA.",
31821
- "struct mem_arena*",
31822
- )
31823
-
31824
- WINDOW_LIST = Symbol(
31825
- None,
31826
- None,
31827
- None,
31828
- "WINDOW_LIST",
31829
- "Array of all window structs. Newly created window structs are taken from slots in this array.\n\nNote that this array isn't strictly ordered in any way. A newly created window will occupy the first available slot. If a window in an early slot is destroyed, windows that are still active in later slots won't be shifted back unless destroyed and recreated.\n\ntype: struct window_list",
31830
- "struct window_list",
31831
- )
31832
-
31833
31878
  LAST_NEW_MOVE = Symbol(
31834
- None,
31835
- None,
31836
- None,
31879
+ [0x2AC658],
31880
+ [0x22AC658],
31881
+ 0x8,
31837
31882
  "LAST_NEW_MOVE",
31838
31883
  "Move struct of the last new move introduced when learning a new move. Persists even after the move selection is made in the menu.\n\ntype: struct move",
31839
31884
  "struct move",
@@ -31867,18 +31912,18 @@ class JpRamData:
31867
31912
  )
31868
31913
 
31869
31914
  KAOMADO_STREAM = Symbol(
31870
- None,
31871
- None,
31872
- None,
31915
+ [0x2ACC6C],
31916
+ [0x22ACC6C],
31917
+ 0x48,
31873
31918
  "KAOMADO_STREAM",
31874
31919
  "The file stream utilized for all Kaomado portrait loads.\n\ntype: struct file_stream",
31875
31920
  "struct file_stream",
31876
31921
  )
31877
31922
 
31878
31923
  PENDING_DUNGEON_ID = Symbol(
31879
- None,
31880
- None,
31881
- None,
31924
+ [0x2ACCB8],
31925
+ [0x22ACCB8],
31926
+ 0x1,
31882
31927
  "PENDING_DUNGEON_ID",
31883
31928
  "The ID of the selected dungeon when setting off from the overworld.\n\nControls the text and map location during the 'map cutscene' just before entering a dungeon, as well as the actual dungeon loaded afterwards.\n\nThis field is actually part of a larger struct that also contains PENDING_STARTING_FLOOR.\n\ntype: struct dungeon_id_8",
31884
31929
  "struct dungeon_id_8",
@@ -31894,9 +31939,9 @@ class JpRamData:
31894
31939
  )
31895
31940
 
31896
31941
  PLAY_TIME_SECONDS = Symbol(
31897
- None,
31898
- None,
31899
- None,
31942
+ [0x2ACE50],
31943
+ [0x22ACE50],
31944
+ 0x4,
31900
31945
  "PLAY_TIME_SECONDS",
31901
31946
  "The player's total play time in seconds.",
31902
31947
  "uint32_t",
@@ -31912,27 +31957,27 @@ class JpRamData:
31912
31957
  )
31913
31958
 
31914
31959
  TEAM_NAME = Symbol(
31915
- None,
31916
- None,
31917
- None,
31960
+ [0x2AD0D4],
31961
+ [0x22AD0D4],
31962
+ 0x5,
31918
31963
  "TEAM_NAME",
31919
- "The team name.\n\nA null-terminated string, with a maximum length of 10. Presumably encoded with the ANSI/Shift JIS encoding the game typically uses.\n\nThis is presumably part of a larger struct, together with other nearby data.",
31920
- "char[10]",
31964
+ "The team name.\n\nA null-terminated string, with a maximum length of 10 (or 5 in JP). Presumably encoded with the ANSI/Shift JIS encoding the game typically uses.\n\nThis is presumably part of a larger struct, together with other nearby data.",
31965
+ "",
31921
31966
  )
31922
31967
 
31923
31968
  LEVEL_UP_DATA_MONSTER_ID = Symbol(
31924
- None,
31925
- None,
31926
- None,
31969
+ [0x2AD0E4],
31970
+ [0x22AD0E4],
31971
+ 0x2,
31927
31972
  "LEVEL_UP_DATA_MONSTER_ID",
31928
31973
  "ID of the monster whose level-up data is currently stored in LEVEL_UP_DATA_DECOMPRESS_BUFFER.",
31929
31974
  "struct monster_id_16",
31930
31975
  )
31931
31976
 
31932
31977
  LEVEL_UP_DATA_DECOMPRESS_BUFFER = Symbol(
31933
- None,
31934
- None,
31935
- None,
31978
+ [0x2AD0E8],
31979
+ [0x22AD0E8],
31980
+ 0x4B0,
31936
31981
  "LEVEL_UP_DATA_DECOMPRESS_BUFFER",
31937
31982
  "Buffer used to stored a monster's decompressed level up data. Used by GetLvlUpEntry.\n\nExact size is a guess (100 levels * 12 bytes per entry = 1200 = 0x4B0).",
31938
31983
  "struct level_up_entry[100]",
@@ -31971,8 +32016,8 @@ class JpRamData:
31971
32016
  CLR_IMG = Symbol([0x2BAD7C], [0x22BAD7C], None, "CLR_IMG", "", "undefined4")
31972
32017
 
31973
32018
  THREAD_INFO_STRUCT = Symbol(
31974
- None,
31975
- None,
32019
+ [0x2BAE00],
32020
+ [0x22BAE00],
31976
32021
  None,
31977
32022
  "THREAD_INFO_STRUCT",
31978
32023
  "thread_info struct that contains global state about threads",
@@ -32007,18 +32052,18 @@ class JpRamData:
32007
32052
  )
32008
32053
 
32009
32054
  LOCK_NOTIFY_ARRAY = Symbol(
32010
- None,
32011
- None,
32012
- None,
32055
+ [0x326414],
32056
+ [0x2326414],
32057
+ 0x18,
32013
32058
  "LOCK_NOTIFY_ARRAY",
32014
- "Used to notify scripts waiting for a certain lock to unlock so they can resume their execution.\n\n1 byte per lock. Exact size isn't confirmed, it could potentially be longer.",
32059
+ "Used to notify scripts waiting for a certain lock to unlock so they can resume their execution.\n\n1 byte per lock.",
32015
32060
  "bool[20]",
32016
32061
  )
32017
32062
 
32018
32063
  GROUND_MEMORY_ARENA_1 = Symbol(
32019
- None,
32020
- None,
32021
- None,
32064
+ [0x326520],
32065
+ [0x2326520],
32066
+ 0x1C,
32022
32067
  "GROUND_MEMORY_ARENA_1",
32023
32068
  "This is a top-level memory arena used for some things in ground mode.\n\nIt's used for user_flags 8, 15, and 16.\n\nIncluding the allocator metadata, this arena occupies 0x64000 bytes of space.\n\ntype: struct mem_arena",
32024
32069
  "struct mem_arena",
@@ -32056,117 +32101,117 @@ class JpRamData:
32056
32101
  )
32057
32102
 
32058
32103
  LOADED_ATTACK_SPRITE_DATA = Symbol(
32059
- None,
32060
- None,
32061
- None,
32104
+ [0x37DC2C],
32105
+ [0x237DC2C],
32106
+ 0x4,
32062
32107
  "LOADED_ATTACK_SPRITE_DATA",
32063
32108
  "[Runtime] Pointer to the dynamically allocated structure relating to the currently loaded attack sprite, in dungeon mode.\n\ntype: struct loaded_attack_sprite_data*",
32064
32109
  "struct loaded_attack_sprite_data*",
32065
32110
  )
32066
32111
 
32067
32112
  AI_THROWN_ITEM_DIRECTION_IS_USED = Symbol(
32068
- None,
32069
- None,
32070
- None,
32113
+ [0x37DC50],
32114
+ [0x237DC50],
32115
+ 0x8,
32071
32116
  "AI_THROWN_ITEM_DIRECTION_IS_USED",
32072
32117
  "[Runtime] Used in GetPossibleAiThrownItemDirections to indicate whether a certain direction enum value is already being used or not.",
32073
32118
  "bool[8]",
32074
32119
  )
32075
32120
 
32076
- AI_THROWN_ITEM_DIRECTIONS = Symbol(
32077
- None,
32078
- None,
32079
- None,
32080
- "AI_THROWN_ITEM_DIRECTIONS",
32081
- "[Runtime] Used to store the directions output by GetPossibleAiThrownItemDirections.",
32082
- "uint32_t[8]",
32083
- )
32084
-
32085
32121
  AI_THROWN_ITEM_PROBABILITIES = Symbol(
32086
- None,
32087
- None,
32088
- None,
32122
+ [0x37DC58],
32123
+ [0x237DC58],
32124
+ 0x20,
32089
32125
  "AI_THROWN_ITEM_PROBABILITIES",
32090
32126
  "[Runtime] Used to store the probabilities matching the directions in THROWN_ITEM_DIRECTIONS.",
32091
32127
  "uint32_t[8]",
32092
32128
  )
32093
32129
 
32130
+ AI_THROWN_ITEM_DIRECTIONS = Symbol(
32131
+ [0x37DC78],
32132
+ [0x237DC78],
32133
+ 0x20,
32134
+ "AI_THROWN_ITEM_DIRECTIONS",
32135
+ "[Runtime] Used to store the directions output by GetPossibleAiThrownItemDirections.",
32136
+ "uint32_t[8]",
32137
+ )
32138
+
32094
32139
  ROLLOUT_ICE_BALL_MISSED = Symbol(
32095
- None,
32096
- None,
32097
- None,
32140
+ [0x37DCE9],
32141
+ [0x237DCE9],
32142
+ 0x1,
32098
32143
  "ROLLOUT_ICE_BALL_MISSED",
32099
32144
  "[Runtime] Appears to be set to true whenever a hit from Rollout or Ice Ball fails to deal damage.",
32100
32145
  "bool",
32101
32146
  )
32102
32147
 
32103
32148
  MULTIHIT_FATIGUE_MOVE_USED = Symbol(
32104
- None,
32105
- None,
32106
- None,
32149
+ [0x37DCEA],
32150
+ [0x237DCEA],
32151
+ 0x1,
32107
32152
  "MULTIHIT_FATIGUE_MOVE_USED",
32108
32153
  "[Runtime] Appears to be set to true whenever a multihit fatigue move deals damage.",
32109
32154
  "bool",
32110
32155
  )
32111
32156
 
32112
32157
  TWINEEDLE_HIT_TRACKER = Symbol(
32113
- None,
32114
- None,
32115
- None,
32158
+ [0x37DCEB],
32159
+ [0x237DCEB],
32160
+ 0x1,
32116
32161
  "TWINEEDLE_HIT_TRACKER",
32117
32162
  "[Runtime] Appears to be set to true whenever Twineedle hits and deals damage. So that even if the second attack misses, it will still try to poison the target.",
32118
32163
  "bool",
32119
32164
  )
32120
32165
 
32121
32166
  RAPID_SPIN_BINDING_REMOVAL = Symbol(
32122
- None,
32123
- None,
32124
- None,
32167
+ [0x37DCED],
32168
+ [0x237DCED],
32169
+ 0x1,
32125
32170
  "RAPID_SPIN_BINDING_REMOVAL",
32126
32171
  "[Runtime] Appears to be set to true when using Rapid Spin to later remove any binding effects and Leech Seed.",
32127
32172
  "bool",
32128
32173
  )
32129
32174
 
32130
32175
  ROLLOUT_ICE_BALL_SUCCESSIVE_HITS = Symbol(
32131
- None,
32132
- None,
32133
- None,
32176
+ [0x37DCF0],
32177
+ [0x237DCF0],
32178
+ 0x4,
32134
32179
  "ROLLOUT_ICE_BALL_SUCCESSIVE_HITS",
32135
32180
  "[Runtime] Seems to count the number of successive hits by Rollout or Ice Ball.",
32136
32181
  "int",
32137
32182
  )
32138
32183
 
32139
32184
  MULTIHIT_MOVE_SUCCESSIVE_HITS = Symbol(
32140
- None,
32141
- None,
32142
- None,
32185
+ [0x37DCF8],
32186
+ [0x237DCF8],
32187
+ 0x4,
32143
32188
  "MULTIHIT_MOVE_SUCCESSIVE_HITS",
32144
32189
  "[Runtime] Seems to count the number of successive hits for multihit moves. This is used by Twineedle to check to attempt to apply Poison after the second attack.",
32145
32190
  "int",
32146
32191
  )
32147
32192
 
32148
32193
  TRIPLE_KICK_SUCCESSIVE_HITS = Symbol(
32149
- None,
32150
- None,
32151
- None,
32194
+ [0x37DCFC],
32195
+ [0x237DCFC],
32196
+ 0x4,
32152
32197
  "TRIPLE_KICK_SUCCESSIVE_HITS",
32153
32198
  "[Runtime] Seems to count the number of successive hits by Triple Kick.",
32154
32199
  "int",
32155
32200
  )
32156
32201
 
32157
32202
  METRONOME_NEXT_INDEX = Symbol(
32158
- None,
32159
- None,
32160
- None,
32203
+ [0x37DD08],
32204
+ [0x237DD08],
32205
+ 0x4,
32161
32206
  "METRONOME_NEXT_INDEX",
32162
32207
  "[Runtime] The index into METRONOME_TABLE for the next usage of Metronome.",
32163
32208
  "int",
32164
32209
  )
32165
32210
 
32166
32211
  FLOOR_GENERATION_STATUS = Symbol(
32167
- None,
32168
- None,
32169
- None,
32212
+ [0x37E23C],
32213
+ [0x237E23C],
32214
+ 0x40,
32170
32215
  "FLOOR_GENERATION_STATUS",
32171
32216
  "[Runtime] Status data related to generation of the current floor in a dungeon.\n\nThis data is populated as the dungeon floor is generated.\n\ntype: struct floor_generation_status",
32172
32217
  "struct floor_generation_status",