pmdsky-debug-py 5.1.5__py3-none-any.whl → 5.1.7__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.
@@ -1 +1 @@
1
- RELEASE = "v0.5.1+c60c2796f4"
1
+ RELEASE = "v0.5.1+e93062f83a"
pmdsky_debug_py/eu.py CHANGED
@@ -3299,8 +3299,8 @@ class EuArm9Functions:
3299
3299
  [0x202F984],
3300
3300
  None,
3301
3301
  (
3302
- "Note: unverified, ported from Irdkwia's notes\n\nr0: dbox_id\nr1:"
3303
- " portrait_ptr"
3302
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: dbox_id\nr1: portrait"
3303
+ " box pointer"
3304
3304
  ),
3305
3305
  )
3306
3306
 
@@ -3948,13 +3948,20 @@ class EuArm9Functions:
3948
3948
  ),
3949
3949
  )
3950
3950
 
3951
- SetPortraitMonsterId = Symbol(
3951
+ InitPortraitBox = Symbol(
3952
+ None,
3953
+ None,
3954
+ None,
3955
+ "Initializes a struct portrait_box.\n\nr0: portrait box pointer",
3956
+ )
3957
+
3958
+ InitPortraitBoxWithMonsterId = Symbol(
3952
3959
  [0x4DB0C],
3953
3960
  [0x204DB0C],
3954
3961
  None,
3955
3962
  (
3956
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3957
- " monster ID"
3963
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3964
+ " pointer\nr1: monster ID"
3958
3965
  ),
3959
3966
  )
3960
3967
 
@@ -3963,8 +3970,8 @@ class EuArm9Functions:
3963
3970
  [0x204DB2C],
3964
3971
  None,
3965
3972
  (
3966
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3967
- " expression_id"
3973
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3974
+ " pointer\nr1: expression_id"
3968
3975
  ),
3969
3976
  )
3970
3977
 
@@ -3972,7 +3979,10 @@ class EuArm9Functions:
3972
3979
  [0x4DB3C],
3973
3980
  [0x204DB3C],
3974
3981
  None,
3975
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1: attr",
3982
+ (
3983
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3984
+ " pointer\nr1: attr"
3985
+ ),
3976
3986
  )
3977
3987
 
3978
3988
  SetPortraitAttrStruct = Symbol(
@@ -3980,8 +3990,8 @@ class EuArm9Functions:
3980
3990
  [0x204DB80],
3981
3991
  None,
3982
3992
  (
3983
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3984
- " attr_ptr"
3993
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3994
+ " pointer\nr1: attr_ptr"
3985
3995
  ),
3986
3996
  )
3987
3997
 
@@ -3991,7 +4001,7 @@ class EuArm9Functions:
3991
4001
  None,
3992
4002
  (
3993
4003
  "If buffer_portrait is null, it only checks if it exists\n\nNote:"
3994
- " unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
4004
+ " unverified, ported from Irdkwia's notes\n\nr0: portrait box pointer\nr1:"
3995
4005
  " buffer_portrait\nreturn: exists"
3996
4006
  ),
3997
4007
  )
@@ -5175,7 +5185,7 @@ class EuArm9Functions:
5175
5185
  "Note: unverified, ported from Irdkwia's notes\n\nNo params.",
5176
5186
  )
5177
5187
 
5178
- IsNotNickname = Symbol(
5188
+ StrcmpMonsterName = Symbol(
5179
5189
  [0x5332C],
5180
5190
  [0x205332C],
5181
5191
  None,
@@ -5456,108 +5466,186 @@ class EuArm9Functions:
5456
5466
  "Note: unverified, ported from Irdkwia's notes\n\nr0: recruit_str",
5457
5467
  )
5458
5468
 
5459
- GetMember = Symbol(
5469
+ IsValidTeamMember = Symbol(
5470
+ None,
5471
+ None,
5472
+ None,
5473
+ (
5474
+ "Returns whether or not the team member at the given index is valid for the"
5475
+ " current game mode.\n\nDuring normal play, this will only be false for the"
5476
+ " special-episode-reserved indexes (2, 3, 4). During special episodes, this"
5477
+ " will be false for the hero and partner (0, 1).\n\nr0: team member"
5478
+ " index\nreturn: bool"
5479
+ ),
5480
+ )
5481
+
5482
+ IsMainCharacter = Symbol(
5483
+ None,
5484
+ None,
5485
+ None,
5486
+ (
5487
+ "Returns whether or not the team member at the given index is a 'main"
5488
+ " character'.\n\nDuring normal play, this will only be true for the hero"
5489
+ " and partner (0, 1). During special episodes, this will be true for the"
5490
+ " special-episode-reserved indexes (2, 3, 4).\n\nr0: team member"
5491
+ " index\nreturn: bool"
5492
+ ),
5493
+ )
5494
+
5495
+ GetTeamMember = Symbol(
5460
5496
  [0x55924],
5461
5497
  [0x2055924],
5462
5498
  None,
5463
- "Note: unverified, ported from Irdkwia's notes\n\nr0: member_idx\nreturn: ?",
5499
+ (
5500
+ "Gets the team member at the given index.\n\nr0: team member index\nreturn:"
5501
+ " ground monster pointer"
5502
+ ),
5464
5503
  )
5465
5504
 
5466
- GetHeroStrIdIfExists = Symbol(
5505
+ GetHeroMemberIdx = Symbol(
5467
5506
  [0x559CC],
5468
5507
  [0x20559CC],
5469
5508
  None,
5470
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5509
+ (
5510
+ "Returns the team member index of the hero (0) if the hero is valid,"
5511
+ " otherwise return -1.\n\nreturn: team member index"
5512
+ ),
5471
5513
  )
5472
5514
 
5473
- GetPartnerStrIdIfExists = Symbol(
5515
+ GetPartnerMemberIdx = Symbol(
5474
5516
  [0x559F8],
5475
5517
  [0x20559F8],
5476
5518
  None,
5477
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5519
+ (
5520
+ "Returns the team member index of the partner (1) if the partner is valid,"
5521
+ " otherwise return -1.\n\nreturn: team member index"
5522
+ ),
5478
5523
  )
5479
5524
 
5480
- GetFirstTeamMemberStrIdIfExists = Symbol(
5525
+ GetMainCharacter1MemberIdx = Symbol(
5481
5526
  [0x55A24],
5482
5527
  [0x2055A24],
5483
5528
  None,
5484
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5529
+ (
5530
+ "Returns the team member index of the first main character for the given"
5531
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5532
+ " the hero (0). During special episodes, this will be 2.\n\nreturn: team"
5533
+ " member index"
5534
+ ),
5485
5535
  )
5486
5536
 
5487
- GetSecondTeamMemberStrIdIfExists = Symbol(
5537
+ GetMainCharacter2MemberIdx = Symbol(
5488
5538
  [0x55A68],
5489
5539
  [0x2055A68],
5490
5540
  None,
5491
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5541
+ (
5542
+ "Returns the team member index of the second main character for the given"
5543
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5544
+ " the partner (1). During special episodes, this will be 3 if there's a"
5545
+ " second main character.\n\nreturn: team member index"
5546
+ ),
5492
5547
  )
5493
5548
 
5494
- GetThirdTeamMemberStrIdIfExists = Symbol(
5549
+ GetMainCharacter3MemberIdx = Symbol(
5495
5550
  [0x55AAC],
5496
5551
  [0x2055AAC],
5497
5552
  None,
5498
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5553
+ (
5554
+ "Returns the team member index of the third main character for the given"
5555
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5556
+ " invalid (-1). During special episodes, this will be 4 if there's a third"
5557
+ " main character.\n\nreturn: team member index"
5558
+ ),
5499
5559
  )
5500
5560
 
5501
- GetHeroData = Symbol(
5561
+ GetHero = Symbol(
5502
5562
  [0x55AEC],
5503
5563
  [0x2055AEC],
5504
5564
  None,
5505
5565
  (
5506
- "Returns the ground monster data of the hero (first slot in Chimecho"
5507
- " Assembly)\n\nreturn: Monster data"
5566
+ "Returns the ground monster data of the hero.\n\nreturn: ground monster"
5567
+ " pointer"
5508
5568
  ),
5509
5569
  )
5510
5570
 
5511
- GetPartnerData = Symbol(
5571
+ GetPartner = Symbol(
5512
5572
  [0x55B14],
5513
5573
  [0x2055B14],
5514
5574
  None,
5515
5575
  (
5516
- "Returns the ground monster data of the partner (second slot in Chimecho"
5517
- " Assembly)\n\nreturn: Monster data"
5576
+ "Returns the ground monster data of the partner.\n\nreturn: ground monster"
5577
+ " pointer"
5518
5578
  ),
5519
5579
  )
5520
5580
 
5521
- GetFirstTeamMemberData = Symbol(
5581
+ GetMainCharacter1 = Symbol(
5522
5582
  [0x55B40],
5523
5583
  [0x2055B40],
5524
5584
  None,
5525
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5585
+ (
5586
+ "Returns the ground monster data of the first main character for the given"
5587
+ " game mode.\n\nIn normal play, this will be the hero. During special"
5588
+ " episodes, this will be the first special episode main character (index"
5589
+ " 2).\n\nreturn: ground monster pointer"
5590
+ ),
5526
5591
  )
5527
5592
 
5528
- GetSecondTeamMemberData = Symbol(
5593
+ GetMainCharacter2 = Symbol(
5529
5594
  [0x55B88],
5530
5595
  [0x2055B88],
5531
5596
  None,
5532
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5597
+ (
5598
+ "Returns the ground monster data of the second main character for the given"
5599
+ " game mode, or null if invalid.\n\nIn normal play, this will be the"
5600
+ " partner. During special episodes, this will be the second special episode"
5601
+ " main character (index 3) if one is present.\n\nreturn: ground monster"
5602
+ " pointer"
5603
+ ),
5533
5604
  )
5534
5605
 
5535
- GetThirdTeamMemberData = Symbol(
5606
+ GetMainCharacter3 = Symbol(
5536
5607
  [0x55BD0],
5537
5608
  [0x2055BD0],
5538
5609
  None,
5539
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5610
+ (
5611
+ "Returns the ground monster data of the third main character for the given"
5612
+ " game mode, or null if invalid.\n\nIn normal play, this will be null."
5613
+ " During special episodes, this will be the third special episode main"
5614
+ " character (index 4) if one is present.\n\nreturn: ground monster pointer"
5615
+ ),
5540
5616
  )
5541
5617
 
5542
- GetFirstEmptyRecruitSlot = Symbol(
5618
+ GetFirstEmptyMemberIdx = Symbol(
5543
5619
  [0x55CE0],
5544
5620
  [0x2055CE0],
5545
5621
  None,
5546
5622
  (
5547
- "Returns -1 if there is none\n\nNote: unverified, ported from Irdkwia's"
5548
- " notes\n\nr0: ?\nreturn: ?"
5623
+ "Gets the first unoccupied team member index (in the Chimecho Assembly), or"
5624
+ " -1 if there is none.\n\nIf valid, this will always be at least 5, since"
5625
+ " indexes 0-4 are reserved for main characters.\n\nr0: ?\nreturn: team"
5626
+ " member index of the first available slot"
5549
5627
  ),
5550
5628
  )
5551
5629
 
5552
- CheckTeamMemberField8 = Symbol(
5630
+ IsMonsterNotNicknamed = Symbol(
5631
+ None,
5632
+ None,
5633
+ None,
5634
+ (
5635
+ "Checks if the string_buffer matches the name of the species\n\nr0: ground"
5636
+ " monster pointer\nreturn: bool"
5637
+ ),
5638
+ )
5639
+
5640
+ CheckTeamMemberIdx = Symbol(
5553
5641
  [0x565E0],
5554
5642
  [0x20565E0],
5555
5643
  None,
5556
5644
  (
5557
- "Checks if a value obtained from team_member::field_0x8 is equal to certain"
5558
- " values.\n\nThis is known to return true for some or all of the guest"
5559
- " monsters.\n\nr0: Value read from team_member::field_0x8\nreturn: True if"
5560
- " the value is equal to 0x55AA or 0x5AA5"
5645
+ "Checks if a team member's member index (team_member::member_idx) is equal"
5646
+ " to certain values.\n\nThis is known to return true for some or all of the"
5647
+ " guest monsters.\n\nr0: member index\nreturn: True if the value is equal"
5648
+ " to 0x55AA or 0x5AA5"
5561
5649
  ),
5562
5650
  )
5563
5651
 
@@ -5572,25 +5660,32 @@ class EuArm9Functions:
5572
5660
  ),
5573
5661
  )
5574
5662
 
5575
- GetTeamMemberData = Symbol(
5663
+ SetActiveTeam = Symbol(
5664
+ None,
5665
+ None,
5666
+ None,
5667
+ "Sets the specified team to active in TEAM_MEMBER_TABLE.\n\nr0: team ID",
5668
+ )
5669
+
5670
+ GetActiveTeamMember = Symbol(
5576
5671
  [0x56708],
5577
5672
  [0x2056708],
5578
5673
  None,
5579
5674
  (
5580
- "Returns a struct containing information about a team member.\n\nIrdkwia's"
5581
- " notes (note the discrepancy): GetEquivalentTeamID\n r0: str_id\n "
5582
- " return: team_id, -1 if not in team\n\nr0: Index\nreturn: Pointer to"
5583
- " struct containing team member information"
5675
+ "Returns a struct containing information about the active team member in"
5676
+ " the given slot index.\n\nr0: roster index\nreturn: team member pointer,"
5677
+ " or null if index is -1"
5584
5678
  ),
5585
5679
  )
5586
5680
 
5587
- GetTeamMember = Symbol(
5681
+ GetActiveRosterIndex = Symbol(
5588
5682
  [0x56738],
5589
5683
  [0x2056738],
5590
5684
  None,
5591
5685
  (
5592
- "Null pointer if -1\n\nNote: unverified, ported from Irdkwia's notes\n\nr0:"
5593
- " team_id\nreturn: team member"
5686
+ "Searches for the roster index for the given team member within the current"
5687
+ " active roster.\n\nr0: team member index\nreturn: roster index if the team"
5688
+ " member is active, -1 otherwise"
5594
5689
  ),
5595
5690
  )
5596
5691
 
@@ -7827,7 +7922,12 @@ class EuArm9Data:
7827
7922
  ),
7828
7923
  )
7829
7924
 
7830
- GAME_MODE = Symbol([0xB088C], [0x20B088C], 0x1, "[Runtime]\n\ntype: uint8_t")
7925
+ GAME_MODE = Symbol(
7926
+ [0xB088C],
7927
+ [0x20B088C],
7928
+ 0x1,
7929
+ "[Runtime] Game mode, see enum game_mode for possible values.\n\ntype: uint8_t",
7930
+ )
7831
7931
 
7832
7932
  GLOBAL_PROGRESS_PTR = Symbol(
7833
7933
  [0xB0890], [0x20B0890], 0x4, "[Runtime]\n\ntype: struct global_progress*"
@@ -7854,8 +7954,8 @@ class EuArm9Data:
7854
7954
  ),
7855
7955
  )
7856
7956
 
7857
- PARTY_MONSTERS_PTR = Symbol(
7858
- [0xB1364], [0x20B1364], 0x4, "Note: unverified, ported from Irdkwia's notes"
7957
+ TEAM_MEMBER_TABLE_PTR = Symbol(
7958
+ [0xB1364], [0x20B1364], 0x4, "Pointer to TEAM_MEMBER_TABLE"
7859
7959
  )
7860
7960
 
7861
7961
  MISSION_LIST_PTR = Symbol(
@@ -17743,6 +17843,28 @@ class EuOverlay29Functions:
17743
17843
  ),
17744
17844
  )
17745
17845
 
17846
+ EndSleepClassStatus = Symbol(
17847
+ None,
17848
+ None,
17849
+ None,
17850
+ (
17851
+ "Cures the target's sleep, sleepless, nightmare, yawn or napping status due"
17852
+ " to the action of the user, and prints the event to the log.\n\nr0:"
17853
+ " pointer to user\nr1: pointer to target"
17854
+ ),
17855
+ )
17856
+
17857
+ EndBurnClassStatus = Symbol(
17858
+ None,
17859
+ None,
17860
+ None,
17861
+ (
17862
+ "Cures the target's burned, poisoned, badly poisoned or paralysis status"
17863
+ " due to the action of the user, and prints the event to the log.\n\nr0:"
17864
+ " pointer to user\nr1: pointer to target"
17865
+ ),
17866
+ )
17867
+
17746
17868
  EndFrozenClassStatus = Symbol(
17747
17869
  [0x2A104],
17748
17870
  [0x2306C84],
@@ -17766,6 +17888,74 @@ class EuOverlay29Functions:
17766
17888
  ),
17767
17889
  )
17768
17890
 
17891
+ EndReflectClassStatus = Symbol(
17892
+ None,
17893
+ None,
17894
+ None,
17895
+ (
17896
+ "Removes the target's reflect, safeguard, light screen, counter, magic"
17897
+ " coat, wish, protect, mirror coat, endure, mini counter?, mirror move,"
17898
+ " conversion 2, vital throw, mist, metal burst, aqua ring or lucky chant"
17899
+ " status due to the action of the user, and prints the event to the"
17900
+ " log.\n\nr0: pointer to user\nr1: pointer to target"
17901
+ ),
17902
+ )
17903
+
17904
+ EndLeechSeedClassStatus = Symbol(
17905
+ None,
17906
+ None,
17907
+ None,
17908
+ (
17909
+ "Cures the target's leech seed or destiny bond status due to the action of"
17910
+ " the user, and prints the event to the log.\n\nr0: pointer to user\nr1:"
17911
+ " pointer to target"
17912
+ ),
17913
+ )
17914
+
17915
+ EndSureShotClassStatus = Symbol(
17916
+ None,
17917
+ None,
17918
+ None,
17919
+ (
17920
+ "Removes the target's sure shot, whiffer, set damage or focus energy status"
17921
+ " due to the action of the user, and prints the event to the log.\n\nr0:"
17922
+ " pointer to user\nr1: pointer to target"
17923
+ ),
17924
+ )
17925
+
17926
+ EndMuzzledStatus = Symbol(
17927
+ None,
17928
+ None,
17929
+ None,
17930
+ (
17931
+ "Removes the target's muzzled status due to the action of the user, and"
17932
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17933
+ " target"
17934
+ ),
17935
+ )
17936
+
17937
+ EndMiracleEyeStatus = Symbol(
17938
+ None,
17939
+ None,
17940
+ None,
17941
+ (
17942
+ "Removes the target's miracle eye status due to the action of the user, and"
17943
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17944
+ " target"
17945
+ ),
17946
+ )
17947
+
17948
+ EndMagnetRiseStatus = Symbol(
17949
+ None,
17950
+ None,
17951
+ None,
17952
+ (
17953
+ "Removes the target's magnet rise status due to the action of the user, and"
17954
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17955
+ " target"
17956
+ ),
17957
+ )
17958
+
17769
17959
  TryTriggerMonsterHouse = Symbol(
17770
17960
  [0x2BDF8],
17771
17961
  [0x2308978],
@@ -22426,7 +22616,9 @@ class EuOverlay31Data:
22426
22616
  None, None, None, "Note: unverified, ported from Irdkwia's notes"
22427
22617
  )
22428
22618
 
22429
- OVERLAY31_JP_STRING = Symbol(None, None, None, "\n\n----  初期ポジション=%d ----- \n")
22619
+ OVERLAY31_JP_STRING = Symbol(
22620
+ None, None, None, "\n\n----  初期ポジション=%d ----- \n"
22621
+ )
22430
22622
 
22431
22623
  DUNGEON_D_BOX_LAYOUT_14 = Symbol(
22432
22624
  None, None, None, "Note: unverified, ported from Irdkwia's notes"
@@ -23059,32 +23251,15 @@ class EuRamData:
23059
23251
  ),
23060
23252
  )
23061
23253
 
23062
- TEAM_MEMBER_LIST = Symbol(
23254
+ TEAM_MEMBER_TABLE = Symbol(
23063
23255
  [0x2AC720],
23064
23256
  [0x22AC720],
23065
- 0x936C,
23066
- (
23067
- "List of all team members and persistent information about them.\n\nAppears"
23068
- " to be ordered in chronological order of recruitment. The first five"
23069
- " entries appear to be fixed:\n 1. Hero\n 2. Partner\n 3. Grovyle\n 4."
23070
- " Dusknoir\n 5. Celebi\nSubsequent entries are normal recruits.\n\nIf a"
23071
- " member is released, all subsequent members will be shifted up (so there"
23072
- " should be no gaps in the list).\n\ntype: struct ground_monster[555]"
23073
- ),
23074
- )
23075
-
23076
- TEAM_ACTIVE_ROSTER = Symbol(
23077
- [0x2B5A8C],
23078
- [0x22B5A8C],
23079
- 0x2D8,
23257
+ 0x9878,
23080
23258
  (
23081
- "List of all currently active team members and relevant information about"
23082
- " them.\n\nListed in team order. The first four entries correspond to the"
23083
- " team in normal modes of play. The last three entries are always for"
23084
- " Grovyle, Dusknoir, and Celebi (in that order).\n\nThis struct is updated"
23085
- " relatively infrequently. For example, in dungeon mode, it's typically"
23086
- " only updated at the start of the floor; refer to DUNGEON_STRUCT instead"
23087
- " for live data.\n\ntype: struct team_member[7]"
23259
+ "Table with all team members, persistent information about them, and"
23260
+ " information about which ones are currently active.\n\nSee the comments on"
23261
+ " struct team_member_table for more information.\n\ntype: struct"
23262
+ " team_member_table"
23088
23263
  ),
23089
23264
  )
23090
23265