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.
pmdsky_debug_py/jp.py CHANGED
@@ -3297,8 +3297,8 @@ class JpArm9Functions:
3297
3297
  [0x202F9D4],
3298
3298
  None,
3299
3299
  (
3300
- "Note: unverified, ported from Irdkwia's notes\n\nr0: dbox_id\nr1:"
3301
- " portrait_ptr"
3300
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: dbox_id\nr1: portrait"
3301
+ " box pointer"
3302
3302
  ),
3303
3303
  )
3304
3304
 
@@ -3946,13 +3946,20 @@ class JpArm9Functions:
3946
3946
  ),
3947
3947
  )
3948
3948
 
3949
- SetPortraitMonsterId = Symbol(
3949
+ InitPortraitBox = Symbol(
3950
+ None,
3951
+ None,
3952
+ None,
3953
+ "Initializes a struct portrait_box.\n\nr0: portrait box pointer",
3954
+ )
3955
+
3956
+ InitPortraitBoxWithMonsterId = Symbol(
3950
3957
  [0x4DB34],
3951
3958
  [0x204DB34],
3952
3959
  None,
3953
3960
  (
3954
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3955
- " monster ID"
3961
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3962
+ " pointer\nr1: monster ID"
3956
3963
  ),
3957
3964
  )
3958
3965
 
@@ -3961,8 +3968,8 @@ class JpArm9Functions:
3961
3968
  [0x204DB54],
3962
3969
  None,
3963
3970
  (
3964
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3965
- " expression_id"
3971
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3972
+ " pointer\nr1: expression_id"
3966
3973
  ),
3967
3974
  )
3968
3975
 
@@ -3970,7 +3977,10 @@ class JpArm9Functions:
3970
3977
  [0x4DB64],
3971
3978
  [0x204DB64],
3972
3979
  None,
3973
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1: attr",
3980
+ (
3981
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3982
+ " pointer\nr1: attr"
3983
+ ),
3974
3984
  )
3975
3985
 
3976
3986
  SetPortraitAttrStruct = Symbol(
@@ -3978,8 +3988,8 @@ class JpArm9Functions:
3978
3988
  [0x204DBA8],
3979
3989
  None,
3980
3990
  (
3981
- "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
3982
- " attr_ptr"
3991
+ "Note: unverified, ported from Irdkwia's notes\n\nr0: portrait box"
3992
+ " pointer\nr1: attr_ptr"
3983
3993
  ),
3984
3994
  )
3985
3995
 
@@ -3989,7 +3999,7 @@ class JpArm9Functions:
3989
3999
  None,
3990
4000
  (
3991
4001
  "If buffer_portrait is null, it only checks if it exists\n\nNote:"
3992
- " unverified, ported from Irdkwia's notes\n\nr0: portrait_ptr\nr1:"
4002
+ " unverified, ported from Irdkwia's notes\n\nr0: portrait box pointer\nr1:"
3993
4003
  " buffer_portrait\nreturn: exists"
3994
4004
  ),
3995
4005
  )
@@ -5173,7 +5183,7 @@ class JpArm9Functions:
5173
5183
  "Note: unverified, ported from Irdkwia's notes\n\nNo params.",
5174
5184
  )
5175
5185
 
5176
- IsNotNickname = Symbol(
5186
+ StrcmpMonsterName = Symbol(
5177
5187
  [0x532E8],
5178
5188
  [0x20532E8],
5179
5189
  None,
@@ -5454,108 +5464,186 @@ class JpArm9Functions:
5454
5464
  "Note: unverified, ported from Irdkwia's notes\n\nr0: recruit_str",
5455
5465
  )
5456
5466
 
5457
- GetMember = Symbol(
5467
+ IsValidTeamMember = Symbol(
5468
+ None,
5469
+ None,
5470
+ None,
5471
+ (
5472
+ "Returns whether or not the team member at the given index is valid for the"
5473
+ " current game mode.\n\nDuring normal play, this will only be false for the"
5474
+ " special-episode-reserved indexes (2, 3, 4). During special episodes, this"
5475
+ " will be false for the hero and partner (0, 1).\n\nr0: team member"
5476
+ " index\nreturn: bool"
5477
+ ),
5478
+ )
5479
+
5480
+ IsMainCharacter = Symbol(
5481
+ None,
5482
+ None,
5483
+ None,
5484
+ (
5485
+ "Returns whether or not the team member at the given index is a 'main"
5486
+ " character'.\n\nDuring normal play, this will only be true for the hero"
5487
+ " and partner (0, 1). During special episodes, this will be true for the"
5488
+ " special-episode-reserved indexes (2, 3, 4).\n\nr0: team member"
5489
+ " index\nreturn: bool"
5490
+ ),
5491
+ )
5492
+
5493
+ GetTeamMember = Symbol(
5458
5494
  [0x55944],
5459
5495
  [0x2055944],
5460
5496
  None,
5461
- "Note: unverified, ported from Irdkwia's notes\n\nr0: member_idx\nreturn: ?",
5497
+ (
5498
+ "Gets the team member at the given index.\n\nr0: team member index\nreturn:"
5499
+ " ground monster pointer"
5500
+ ),
5462
5501
  )
5463
5502
 
5464
- GetHeroStrIdIfExists = Symbol(
5503
+ GetHeroMemberIdx = Symbol(
5465
5504
  [0x559EC],
5466
5505
  [0x20559EC],
5467
5506
  None,
5468
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5507
+ (
5508
+ "Returns the team member index of the hero (0) if the hero is valid,"
5509
+ " otherwise return -1.\n\nreturn: team member index"
5510
+ ),
5469
5511
  )
5470
5512
 
5471
- GetPartnerStrIdIfExists = Symbol(
5513
+ GetPartnerMemberIdx = Symbol(
5472
5514
  [0x55A18],
5473
5515
  [0x2055A18],
5474
5516
  None,
5475
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5517
+ (
5518
+ "Returns the team member index of the partner (1) if the partner is valid,"
5519
+ " otherwise return -1.\n\nreturn: team member index"
5520
+ ),
5476
5521
  )
5477
5522
 
5478
- GetFirstTeamMemberStrIdIfExists = Symbol(
5523
+ GetMainCharacter1MemberIdx = Symbol(
5479
5524
  [0x55A44],
5480
5525
  [0x2055A44],
5481
5526
  None,
5482
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5527
+ (
5528
+ "Returns the team member index of the first main character for the given"
5529
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5530
+ " the hero (0). During special episodes, this will be 2.\n\nreturn: team"
5531
+ " member index"
5532
+ ),
5483
5533
  )
5484
5534
 
5485
- GetSecondTeamMemberStrIdIfExists = Symbol(
5535
+ GetMainCharacter2MemberIdx = Symbol(
5486
5536
  [0x55A88],
5487
5537
  [0x2055A88],
5488
5538
  None,
5489
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5539
+ (
5540
+ "Returns the team member index of the second main character for the given"
5541
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5542
+ " the partner (1). During special episodes, this will be 3 if there's a"
5543
+ " second main character.\n\nreturn: team member index"
5544
+ ),
5490
5545
  )
5491
5546
 
5492
- GetThirdTeamMemberStrIdIfExists = Symbol(
5547
+ GetMainCharacter3MemberIdx = Symbol(
5493
5548
  [0x55ACC],
5494
5549
  [0x2055ACC],
5495
5550
  None,
5496
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: ?",
5551
+ (
5552
+ "Returns the team member index of the third main character for the given"
5553
+ " game mode, if valid, otherwise return -1.\n\nIn normal play, this will be"
5554
+ " invalid (-1). During special episodes, this will be 4 if there's a third"
5555
+ " main character.\n\nreturn: team member index"
5556
+ ),
5497
5557
  )
5498
5558
 
5499
- GetHeroData = Symbol(
5559
+ GetHero = Symbol(
5500
5560
  [0x55B0C],
5501
5561
  [0x2055B0C],
5502
5562
  None,
5503
5563
  (
5504
- "Returns the ground monster data of the hero (first slot in Chimecho"
5505
- " Assembly)\n\nreturn: Monster data"
5564
+ "Returns the ground monster data of the hero.\n\nreturn: ground monster"
5565
+ " pointer"
5506
5566
  ),
5507
5567
  )
5508
5568
 
5509
- GetPartnerData = Symbol(
5569
+ GetPartner = Symbol(
5510
5570
  [0x55B34],
5511
5571
  [0x2055B34],
5512
5572
  None,
5513
5573
  (
5514
- "Returns the ground monster data of the partner (second slot in Chimecho"
5515
- " Assembly)\n\nreturn: Monster data"
5574
+ "Returns the ground monster data of the partner.\n\nreturn: ground monster"
5575
+ " pointer"
5516
5576
  ),
5517
5577
  )
5518
5578
 
5519
- GetFirstTeamMemberData = Symbol(
5579
+ GetMainCharacter1 = Symbol(
5520
5580
  [0x55B60],
5521
5581
  [0x2055B60],
5522
5582
  None,
5523
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5583
+ (
5584
+ "Returns the ground monster data of the first main character for the given"
5585
+ " game mode.\n\nIn normal play, this will be the hero. During special"
5586
+ " episodes, this will be the first special episode main character (index"
5587
+ " 2).\n\nreturn: ground monster pointer"
5588
+ ),
5524
5589
  )
5525
5590
 
5526
- GetSecondTeamMemberData = Symbol(
5591
+ GetMainCharacter2 = Symbol(
5527
5592
  [0x55BA8],
5528
5593
  [0x2055BA8],
5529
5594
  None,
5530
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5595
+ (
5596
+ "Returns the ground monster data of the second main character for the given"
5597
+ " game mode, or null if invalid.\n\nIn normal play, this will be the"
5598
+ " partner. During special episodes, this will be the second special episode"
5599
+ " main character (index 3) if one is present.\n\nreturn: ground monster"
5600
+ " pointer"
5601
+ ),
5531
5602
  )
5532
5603
 
5533
- GetThirdTeamMemberData = Symbol(
5604
+ GetMainCharacter3 = Symbol(
5534
5605
  [0x55BF0],
5535
5606
  [0x2055BF0],
5536
5607
  None,
5537
- "Note: unverified, ported from Irdkwia's notes\n\nreturn: Monster data",
5608
+ (
5609
+ "Returns the ground monster data of the third main character for the given"
5610
+ " game mode, or null if invalid.\n\nIn normal play, this will be null."
5611
+ " During special episodes, this will be the third special episode main"
5612
+ " character (index 4) if one is present.\n\nreturn: ground monster pointer"
5613
+ ),
5538
5614
  )
5539
5615
 
5540
- GetFirstEmptyRecruitSlot = Symbol(
5616
+ GetFirstEmptyMemberIdx = Symbol(
5541
5617
  [0x55D00],
5542
5618
  [0x2055D00],
5543
5619
  None,
5544
5620
  (
5545
- "Returns -1 if there is none\n\nNote: unverified, ported from Irdkwia's"
5546
- " notes\n\nr0: ?\nreturn: ?"
5621
+ "Gets the first unoccupied team member index (in the Chimecho Assembly), or"
5622
+ " -1 if there is none.\n\nIf valid, this will always be at least 5, since"
5623
+ " indexes 0-4 are reserved for main characters.\n\nr0: ?\nreturn: team"
5624
+ " member index of the first available slot"
5625
+ ),
5626
+ )
5627
+
5628
+ IsMonsterNotNicknamed = Symbol(
5629
+ None,
5630
+ None,
5631
+ None,
5632
+ (
5633
+ "Checks if the string_buffer matches the name of the species\n\nr0: ground"
5634
+ " monster pointer\nreturn: bool"
5547
5635
  ),
5548
5636
  )
5549
5637
 
5550
- CheckTeamMemberField8 = Symbol(
5638
+ CheckTeamMemberIdx = Symbol(
5551
5639
  [0x565C4],
5552
5640
  [0x20565C4],
5553
5641
  None,
5554
5642
  (
5555
- "Checks if a value obtained from team_member::field_0x8 is equal to certain"
5556
- " values.\n\nThis is known to return true for some or all of the guest"
5557
- " monsters.\n\nr0: Value read from team_member::field_0x8\nreturn: True if"
5558
- " the value is equal to 0x55AA or 0x5AA5"
5643
+ "Checks if a team member's member index (team_member::member_idx) is equal"
5644
+ " to certain values.\n\nThis is known to return true for some or all of the"
5645
+ " guest monsters.\n\nr0: member index\nreturn: True if the value is equal"
5646
+ " to 0x55AA or 0x5AA5"
5559
5647
  ),
5560
5648
  )
5561
5649
 
@@ -5570,25 +5658,32 @@ class JpArm9Functions:
5570
5658
  ),
5571
5659
  )
5572
5660
 
5573
- GetTeamMemberData = Symbol(
5661
+ SetActiveTeam = Symbol(
5662
+ None,
5663
+ None,
5664
+ None,
5665
+ "Sets the specified team to active in TEAM_MEMBER_TABLE.\n\nr0: team ID",
5666
+ )
5667
+
5668
+ GetActiveTeamMember = Symbol(
5574
5669
  [0x56728],
5575
5670
  [0x2056728],
5576
5671
  None,
5577
5672
  (
5578
- "Returns a struct containing information about a team member.\n\nIrdkwia's"
5579
- " notes (note the discrepancy): GetEquivalentTeamID\n r0: str_id\n "
5580
- " return: team_id, -1 if not in team\n\nr0: Index\nreturn: Pointer to"
5581
- " struct containing team member information"
5673
+ "Returns a struct containing information about the active team member in"
5674
+ " the given slot index.\n\nr0: roster index\nreturn: team member pointer,"
5675
+ " or null if index is -1"
5582
5676
  ),
5583
5677
  )
5584
5678
 
5585
- GetTeamMember = Symbol(
5679
+ GetActiveRosterIndex = Symbol(
5586
5680
  [0x56758],
5587
5681
  [0x2056758],
5588
5682
  None,
5589
5683
  (
5590
- "Null pointer if -1\n\nNote: unverified, ported from Irdkwia's notes\n\nr0:"
5591
- " team_id\nreturn: team member"
5684
+ "Searches for the roster index for the given team member within the current"
5685
+ " active roster.\n\nr0: team member index\nreturn: roster index if the team"
5686
+ " member is active, -1 otherwise"
5592
5687
  ),
5593
5688
  )
5594
5689
 
@@ -7812,7 +7907,12 @@ class JpArm9Data:
7812
7907
  ),
7813
7908
  )
7814
7909
 
7815
- GAME_MODE = Symbol([0xB17E4], [0x20B17E4], 0x1, "[Runtime]\n\ntype: uint8_t")
7910
+ GAME_MODE = Symbol(
7911
+ [0xB17E4],
7912
+ [0x20B17E4],
7913
+ 0x1,
7914
+ "[Runtime] Game mode, see enum game_mode for possible values.\n\ntype: uint8_t",
7915
+ )
7816
7916
 
7817
7917
  GLOBAL_PROGRESS_PTR = Symbol(
7818
7918
  None, None, None, "[Runtime]\n\ntype: struct global_progress*"
@@ -7839,8 +7939,8 @@ class JpArm9Data:
7839
7939
  ),
7840
7940
  )
7841
7941
 
7842
- PARTY_MONSTERS_PTR = Symbol(
7843
- [0xB22BC], [0x20B22BC], 0x4, "Note: unverified, ported from Irdkwia's notes"
7942
+ TEAM_MEMBER_TABLE_PTR = Symbol(
7943
+ [0xB22BC], [0x20B22BC], 0x4, "Pointer to TEAM_MEMBER_TABLE"
7844
7944
  )
7845
7945
 
7846
7946
  MISSION_LIST_PTR = Symbol(
@@ -17503,6 +17603,28 @@ class JpOverlay29Functions:
17503
17603
  ),
17504
17604
  )
17505
17605
 
17606
+ EndSleepClassStatus = Symbol(
17607
+ None,
17608
+ None,
17609
+ None,
17610
+ (
17611
+ "Cures the target's sleep, sleepless, nightmare, yawn or napping status due"
17612
+ " to the action of the user, and prints the event to the log.\n\nr0:"
17613
+ " pointer to user\nr1: pointer to target"
17614
+ ),
17615
+ )
17616
+
17617
+ EndBurnClassStatus = Symbol(
17618
+ None,
17619
+ None,
17620
+ None,
17621
+ (
17622
+ "Cures the target's burned, poisoned, badly poisoned or paralysis status"
17623
+ " due to the action of the user, and prints the event to the log.\n\nr0:"
17624
+ " pointer to user\nr1: pointer to target"
17625
+ ),
17626
+ )
17627
+
17506
17628
  EndFrozenClassStatus = Symbol(
17507
17629
  [0x29EC8],
17508
17630
  [0x23077A8],
@@ -17526,6 +17648,74 @@ class JpOverlay29Functions:
17526
17648
  ),
17527
17649
  )
17528
17650
 
17651
+ EndReflectClassStatus = Symbol(
17652
+ None,
17653
+ None,
17654
+ None,
17655
+ (
17656
+ "Removes the target's reflect, safeguard, light screen, counter, magic"
17657
+ " coat, wish, protect, mirror coat, endure, mini counter?, mirror move,"
17658
+ " conversion 2, vital throw, mist, metal burst, aqua ring or lucky chant"
17659
+ " status due to the action of the user, and prints the event to the"
17660
+ " log.\n\nr0: pointer to user\nr1: pointer to target"
17661
+ ),
17662
+ )
17663
+
17664
+ EndLeechSeedClassStatus = Symbol(
17665
+ None,
17666
+ None,
17667
+ None,
17668
+ (
17669
+ "Cures the target's leech seed or destiny bond status due to the action of"
17670
+ " the user, and prints the event to the log.\n\nr0: pointer to user\nr1:"
17671
+ " pointer to target"
17672
+ ),
17673
+ )
17674
+
17675
+ EndSureShotClassStatus = Symbol(
17676
+ None,
17677
+ None,
17678
+ None,
17679
+ (
17680
+ "Removes the target's sure shot, whiffer, set damage or focus energy status"
17681
+ " due to the action of the user, and prints the event to the log.\n\nr0:"
17682
+ " pointer to user\nr1: pointer to target"
17683
+ ),
17684
+ )
17685
+
17686
+ EndMuzzledStatus = Symbol(
17687
+ None,
17688
+ None,
17689
+ None,
17690
+ (
17691
+ "Removes the target's muzzled status due to the action of the user, and"
17692
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17693
+ " target"
17694
+ ),
17695
+ )
17696
+
17697
+ EndMiracleEyeStatus = Symbol(
17698
+ None,
17699
+ None,
17700
+ None,
17701
+ (
17702
+ "Removes the target's miracle eye status due to the action of the user, and"
17703
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17704
+ " target"
17705
+ ),
17706
+ )
17707
+
17708
+ EndMagnetRiseStatus = Symbol(
17709
+ None,
17710
+ None,
17711
+ None,
17712
+ (
17713
+ "Removes the target's magnet rise status due to the action of the user, and"
17714
+ " prints the event to the log.\n\nr0: pointer to user\nr1: pointer to"
17715
+ " target"
17716
+ ),
17717
+ )
17718
+
17529
17719
  TryTriggerMonsterHouse = Symbol(
17530
17720
  [0x2BBA0],
17531
17721
  [0x2309480],
@@ -22068,7 +22258,9 @@ class JpOverlay31Data:
22068
22258
  None, None, None, "Note: unverified, ported from Irdkwia's notes"
22069
22259
  )
22070
22260
 
22071
- OVERLAY31_JP_STRING = Symbol(None, None, None, "\n\n----  初期ポジション=%d ----- \n")
22261
+ OVERLAY31_JP_STRING = Symbol(
22262
+ None, None, None, "\n\n----  初期ポジション=%d ----- \n"
22263
+ )
22072
22264
 
22073
22265
  DUNGEON_D_BOX_LAYOUT_14 = Symbol(
22074
22266
  None, None, None, "Note: unverified, ported from Irdkwia's notes"
@@ -22696,32 +22888,15 @@ class JpRamData:
22696
22888
  ),
22697
22889
  )
22698
22890
 
22699
- TEAM_MEMBER_LIST = Symbol(
22700
- None,
22701
- None,
22702
- None,
22703
- (
22704
- "List of all team members and persistent information about them.\n\nAppears"
22705
- " to be ordered in chronological order of recruitment. The first five"
22706
- " entries appear to be fixed:\n 1. Hero\n 2. Partner\n 3. Grovyle\n 4."
22707
- " Dusknoir\n 5. Celebi\nSubsequent entries are normal recruits.\n\nIf a"
22708
- " member is released, all subsequent members will be shifted up (so there"
22709
- " should be no gaps in the list).\n\ntype: struct ground_monster[555]"
22710
- ),
22711
- )
22712
-
22713
- TEAM_ACTIVE_ROSTER = Symbol(
22891
+ TEAM_MEMBER_TABLE = Symbol(
22714
22892
  None,
22715
22893
  None,
22716
22894
  None,
22717
22895
  (
22718
- "List of all currently active team members and relevant information about"
22719
- " them.\n\nListed in team order. The first four entries correspond to the"
22720
- " team in normal modes of play. The last three entries are always for"
22721
- " Grovyle, Dusknoir, and Celebi (in that order).\n\nThis struct is updated"
22722
- " relatively infrequently. For example, in dungeon mode, it's typically"
22723
- " only updated at the start of the floor; refer to DUNGEON_STRUCT instead"
22724
- " for live data.\n\ntype: struct team_member[7]"
22896
+ "Table with all team members, persistent information about them, and"
22897
+ " information about which ones are currently active.\n\nSee the comments on"
22898
+ " struct team_member_table for more information.\n\ntype: struct"
22899
+ " team_member_table"
22725
22900
  ),
22726
22901
  )
22727
22902