pmdsky-debug-py 10.2.19__py3-none-any.whl → 10.2.22__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
@@ -6447,7 +6447,70 @@ class JpArm9Functions:
6447
6447
  [0x204C00C],
6448
6448
  None,
6449
6449
  "CalcScriptVariables",
6450
- "Performs a calculation on two loaded script variables.\n\nr0: script variable 1\nr1: script variable 2\nr2: calculation to perform on the script variables\nreturn: calculation result",
6450
+ "Performs a calculation on two loaded script variables.\n\nr0: script variable value 1\nr1: script variable value 2\nr2: calculation to perform on the script variables\nreturn: calculation result",
6451
+ None,
6452
+ )
6453
+
6454
+ CompareScriptVariables = Symbol(
6455
+ [0x4C0F8],
6456
+ [0x204C0F8],
6457
+ None,
6458
+ "CompareScriptVariables",
6459
+ "Compares two loaded script variables and returns the comparison result.\n\nr0: script variable value 1\nr1: script variable value 2\nr2: comparison to perform on the script variables\nreturn: comparison result",
6460
+ None,
6461
+ )
6462
+
6463
+ CalcScriptVariablesVeneer = Symbol(
6464
+ [0x4C22C],
6465
+ [0x204C22C],
6466
+ None,
6467
+ "CalcScriptVariablesVeneer",
6468
+ "Likely a linker-generated veneer for CalcScriptVariables.\n\nSee https://developer.arm.com/documentation/dui0474/k/image-structure-and-generation/linker-generated-veneers/what-is-a-veneer-\n\nr0: script variable value 1\nr1: script variable value 2\nr2: calculation to perform on the script variables\nreturn: calculation result",
6469
+ None,
6470
+ )
6471
+
6472
+ CalcAndUpdateScriptVarWithOtherValue = Symbol(
6473
+ [0x4C238],
6474
+ [0x204C238],
6475
+ None,
6476
+ "CalcAndUpdateScriptVarWithOtherValue",
6477
+ "Runs a calculation on a script variable, then sets the script variable to the calculation result.\n\nr0: pointer to the local variable table\nr1: script variable ID\nr2: other value to use in the calculation\nr3: calculation to perform on the script variables",
6478
+ None,
6479
+ )
6480
+
6481
+ CalcAndUpdateScriptVarWithOtherScriptVar = Symbol(
6482
+ [0x4C270],
6483
+ [0x204C270],
6484
+ None,
6485
+ "CalcAndUpdateScriptVarWithOtherScriptVar",
6486
+ "Runs a calculation on a script variable, then sets the script variable to the calculation result.\n\nr0: pointer to the local variable table\nr1: script variable ID\nr2: other script variable to use in the calculation\nr3: calculation to perform on the script variables",
6487
+ None,
6488
+ )
6489
+
6490
+ CompareScriptVariablesVeneer = Symbol(
6491
+ [0x4C2BC],
6492
+ [0x204C2BC],
6493
+ None,
6494
+ "CompareScriptVariablesVeneer",
6495
+ "Likely a linker-generated veneer for CompareScriptVariables.\n\nSee https://developer.arm.com/documentation/dui0474/k/image-structure-and-generation/linker-generated-veneers/what-is-a-veneer-\n\nr0: script variable value 1\nr1: script variable value 2\nr2: comparison to perform on the script variables\nreturn: comparison result",
6496
+ None,
6497
+ )
6498
+
6499
+ LoadAndCompareScriptVarAndValue = Symbol(
6500
+ [0x4C2C8],
6501
+ [0x204C2C8],
6502
+ None,
6503
+ "LoadAndCompareScriptVarAndValue",
6504
+ "Runs a comparison on a script variable and another value, then returns the comparison result.\n\nr0: pointer to the local variable table\nr1: script variable ID\nr2: other script variable to use in the comparison\nr3: comparison to perform on the script variables\nreturn: comparison result",
6505
+ None,
6506
+ )
6507
+
6508
+ LoadAndCompareScriptVars = Symbol(
6509
+ [0x4C2E8],
6510
+ [0x204C2E8],
6511
+ None,
6512
+ "LoadAndCompareScriptVars",
6513
+ "Runs a comparison on two script variables, then returns the comparison result.\n\nr0: pointer to the local variable table\nr1: script variable ID\nr2: other script variable to use in the comparison\nr3: comparison to perform on the script variables\nreturn: comparison result",
6451
6514
  None,
6452
6515
  )
6453
6516
 
@@ -6496,6 +6559,15 @@ class JpArm9Functions:
6496
6559
  None,
6497
6560
  )
6498
6561
 
6562
+ LoadScriptVarValuePair = Symbol(
6563
+ [0x4C93C],
6564
+ [0x204C93C],
6565
+ None,
6566
+ "LoadScriptVarValuePair",
6567
+ "Loads values [val0, val1] from a script variable.\n\nr0: script variable ID\nr1: Pointer to store index 0 of the script variable.\nr2: Pointer to store index 1 of the script variable.",
6568
+ None,
6569
+ )
6570
+
6499
6571
  SetScenarioScriptVar = Symbol(
6500
6572
  [0x4C978],
6501
6573
  [0x204C978],
@@ -6505,6 +6577,51 @@ class JpArm9Functions:
6505
6577
  None,
6506
6578
  )
6507
6579
 
6580
+ IsStoryBeforePoint = Symbol(
6581
+ [0x4CA28],
6582
+ [0x204CA28],
6583
+ None,
6584
+ "IsStoryBeforePoint",
6585
+ "Checks if the current story progress is before a certain point in the story.\n\nr0: script variable ID\nr1: story chapter to compare to\nr2: story chapter subsection to compare to\nreturn: whether the story progress is before the given chapter and subsection.",
6586
+ None,
6587
+ )
6588
+
6589
+ IsStoryBeforeOrAtPoint = Symbol(
6590
+ [0x4CA94],
6591
+ [0x204CA94],
6592
+ None,
6593
+ "IsStoryBeforeOrAtPoint",
6594
+ "Checks if the current story progress is before or at a certain point in the story.\n\nr0: script variable ID\nr1: story chapter to compare to\nr2: story chapter subsection to compare to\nreturn: whether the story progress is before or at the given chapter and subsection.",
6595
+ None,
6596
+ )
6597
+
6598
+ IsStoryAtPoint = Symbol(
6599
+ [0x4CB0C],
6600
+ [0x204CB0C],
6601
+ None,
6602
+ "IsStoryAtPoint",
6603
+ "Checks if the current story progress is at a certain point in the story.\n\nr0: script variable ID\nr1: story chapter to compare to\nr2: story chapter subsection to compare to\nreturn: whether the story progress is at the given chapter and subsection.",
6604
+ None,
6605
+ )
6606
+
6607
+ IsStoryAtOrAfterPoint = Symbol(
6608
+ [0x4CB68],
6609
+ [0x204CB68],
6610
+ None,
6611
+ "IsStoryAtOrAfterPoint",
6612
+ "Checks if the current story progress is at or after a certain point in the story.\n\nr0: script variable ID\nr1: story chapter to compare to\nr2: story chapter subsection to compare to\nreturn: whether the story progress is at or after the given chapter and subsection.",
6613
+ None,
6614
+ )
6615
+
6616
+ IsStoryAfterPoint = Symbol(
6617
+ [0x4CBE0],
6618
+ [0x204CBE0],
6619
+ None,
6620
+ "IsStoryAfterPoint",
6621
+ "Checks if the current story progress is after a certain point in the story.\n\nr0: script variable ID\nr1: story chapter to compare to\nr2: story chapter subsection to compare to\nreturn: whether the story progress is after the given chapter and subsection.",
6622
+ None,
6623
+ )
6624
+
6508
6625
  GetSpecialEpisodeType = Symbol(
6509
6626
  [0x4CC4C],
6510
6627
  [0x204CC4C],
@@ -6523,6 +6640,24 @@ class JpArm9Functions:
6523
6640
  None,
6524
6641
  )
6525
6642
 
6643
+ GetDebugSpecialEpisodeNumber = Symbol(
6644
+ [0x4CC78],
6645
+ [0x204CC78],
6646
+ None,
6647
+ "GetDebugSpecialEpisodeNumber",
6648
+ "Gets the value of DEBUG_SPECIAL_EPISODE_NUMBER.\n\nreturn: value of DEBUG_SPECIAL_EPISODE_NUMBER",
6649
+ None,
6650
+ )
6651
+
6652
+ SetDebugSpecialEpisodeNumber = Symbol(
6653
+ [0x4CC88],
6654
+ [0x204CC88],
6655
+ None,
6656
+ "SetDebugSpecialEpisodeNumber",
6657
+ "Sets the value of DEBUG_SPECIAL_EPISODE_NUMBER.\n\nr0: new value of DEBUG_SPECIAL_EPISODE_NUMBER",
6658
+ None,
6659
+ )
6660
+
6526
6661
  GetExecuteSpecialEpisodeType = Symbol(
6527
6662
  [0x4CC98],
6528
6663
  [0x204CC98],
@@ -6541,6 +6676,60 @@ class JpArm9Functions:
6541
6676
  None,
6542
6677
  )
6543
6678
 
6679
+ SetSpecialEpisodeOpen = Symbol(
6680
+ [0x4CCD8],
6681
+ [0x204CCD8],
6682
+ None,
6683
+ "SetSpecialEpisodeOpen",
6684
+ "Sets the value of the script variable SPECIAL_EPISODE_OPEN, which indicates if a special episode is unlocked.\n\nr0: special episode type\nr1: new SPECIAL_EPISODE_OPEN value",
6685
+ None,
6686
+ )
6687
+
6688
+ IsSpecialEpisodeOpenMismatch = Symbol(
6689
+ [0x4CD00],
6690
+ [0x204CD00],
6691
+ None,
6692
+ "IsSpecialEpisodeOpenMismatch",
6693
+ "Checks if there is a mismatch between the values of the script variables SPECIAL_EPISODE_OPEN and VAR_SPECIAL_EPISODE_OPEN_OLD.\nThis checks for all special episodes at once.\n\nreturn: bool",
6694
+ None,
6695
+ )
6696
+
6697
+ IsSpecialEpisodeOpenOld = Symbol(
6698
+ [0x4CD28],
6699
+ [0x204CD28],
6700
+ None,
6701
+ "IsSpecialEpisodeOpenOld",
6702
+ "Checks if the SPECIAL_EPISODE_OPEN_OLD script variable is set to true.\n\nr0: special episode type\nreturn: bool",
6703
+ None,
6704
+ )
6705
+
6706
+ SetSpecialEpisodeOpenOld = Symbol(
6707
+ [0x4CD54],
6708
+ [0x204CD54],
6709
+ None,
6710
+ "SetSpecialEpisodeOpenOld",
6711
+ "Sets the value of the script variable SPECIAL_EPISODE_OPEN_OLD.\n\nr0: special episode type\nr1: new SPECIAL_EPISODE_OPEN_OLD value",
6712
+ None,
6713
+ )
6714
+
6715
+ IsSpecialEpisodeBeaten = Symbol(
6716
+ [0x4CD7C],
6717
+ [0x204CD7C],
6718
+ None,
6719
+ "IsSpecialEpisodeBeaten",
6720
+ "Checks if a special episode is beaten from the SPECIAL_EPISODE_CONQUEST script variable.\n\nr0: special episode type\nreturn: bool",
6721
+ None,
6722
+ )
6723
+
6724
+ SetSpecialEpisodeBeaten = Symbol(
6725
+ [0x4CDA8],
6726
+ [0x204CDA8],
6727
+ None,
6728
+ "SetSpecialEpisodeBeaten",
6729
+ "Sets the value of the script variable SPECIAL_EPISODE_CONQUEST, which indicates if a special episode is beaten.\n\nr0: special episode type\nr1: new SPECIAL_EPISODE_CONQUEST value",
6730
+ None,
6731
+ )
6732
+
6544
6733
  HasPlayedOldGame = Symbol(
6545
6734
  [0x4CDD0],
6546
6735
  [0x204CDD0],
@@ -6559,6 +6748,15 @@ class JpArm9Functions:
6559
6748
  None,
6560
6749
  )
6561
6750
 
6751
+ SetPerformanceFlagWithChecks = Symbol(
6752
+ [0x4CE8C],
6753
+ [0x204CE8C],
6754
+ None,
6755
+ "SetPerformanceFlagWithChecks",
6756
+ "Sets the value of one of the flags in VAR_PERFORMANCE_PROGRESS_LIST, with some edge cases.\n\nList of cases where the function behaves differently:\n- If the requested flag is 0, sets the flag to false if the new value is 0, and true otherwise\n- If the requested flag is 7 and GAME_MODE == GAME_MODE_SPECIAL_EPISODE, the flag is not set\n\nr0: ID of the flag to get\nr1: Value to set the flag to.",
6757
+ None,
6758
+ )
6759
+
6562
6760
  GetScenarioBalance = Symbol(
6563
6761
  [0x4CEF4],
6564
6762
  [0x204CEF4],
@@ -9571,6 +9769,22 @@ class JpArm9Functions:
9571
9769
 
9572
9770
  IsMoveRangeString19 = _Deprecated("IsMoveRangeString19", IsMoveRangeStringUser)
9573
9771
 
9772
+ InitScenarioProgressScriptVars = _Deprecated(
9773
+ "InitScenarioProgressScriptVars", InitScenarioScriptVars
9774
+ )
9775
+
9776
+ SetScenarioProgressScriptVar = _Deprecated(
9777
+ "SetScenarioProgressScriptVar", SetScenarioScriptVar
9778
+ )
9779
+
9780
+ GetResolvedPerformanceProgressFlag = _Deprecated(
9781
+ "GetResolvedPerformanceProgressFlag", GetPerformanceFlagWithChecks
9782
+ )
9783
+
9784
+ SetResolvedPerformanceProgressFlag = _Deprecated(
9785
+ "SetResolvedPerformanceProgressFlag", SetPerformanceFlagWithChecks
9786
+ )
9787
+
9574
9788
  GetLowKickMultiplier = _Deprecated("GetLowKickMultiplier", GetWeightMultiplier)
9575
9789
 
9576
9790
  GetActorMatchingStorageId = _Deprecated(
@@ -10089,15 +10303,33 @@ class JpArm9Data:
10089
10303
  "struct partner_talk_kind_table_entry[11]",
10090
10304
  )
10091
10305
 
10092
- EVENT_FLAG_PROG_POS_INFO = Symbol(
10306
+ EVENT_FLAG_PROG_POS_INFO_CALC_SCRIPT_VARIABLES = Symbol(
10093
10307
  [0x9E280],
10094
10308
  [0x209E280],
10095
10309
  0x8,
10096
- "EVENT_FLAG_PROG_POS_INFO",
10310
+ "EVENT_FLAG_PROG_POS_INFO_CALC_SCRIPT_VARIABLES",
10097
10311
  "Debug information used to log an error with an unrecognized operation in CalcScriptVariables.",
10098
10312
  "struct prog_pos_info",
10099
10313
  )
10100
10314
 
10315
+ EVENT_FLAG_PROG_POS_INFO_COMPARE_SCRIPT_VARIABLES = Symbol(
10316
+ [0x9E288],
10317
+ [0x209E288],
10318
+ 0x8,
10319
+ "EVENT_FLAG_PROG_POS_INFO_COMPARE_SCRIPT_VARIABLES",
10320
+ "Debug information used to log an error with an unrecognized operation in CompareScriptVariables.",
10321
+ "struct prog_pos_info",
10322
+ )
10323
+
10324
+ EVENT_FLAG_FILE_NAME = Symbol(
10325
+ [0x9E290],
10326
+ [0x209E290],
10327
+ 0x10,
10328
+ "EVENT_FLAG_FILE_NAME",
10329
+ "The file name 'event_flag.c', used for debug logging.",
10330
+ "",
10331
+ )
10332
+
10101
10333
  SCRIPT_VARS_LOCALS = Symbol(
10102
10334
  [0x9E2A0],
10103
10335
  [0x209E2A0],
@@ -10107,15 +10339,42 @@ class JpArm9Data:
10107
10339
  "struct script_local_var_table",
10108
10340
  )
10109
10341
 
10110
- EVENT_FLAG_EXPANSION_ERROR = Symbol(
10342
+ EVENT_FLAG_CALC_SCRIPT_VARIABLES_ERROR = Symbol(
10111
10343
  [0x9E2FC],
10112
10344
  [0x209E2FC],
10113
10345
  0x20,
10114
- "EVENT_FLAG_EXPANSION_ERROR",
10346
+ "EVENT_FLAG_CALC_SCRIPT_VARIABLES_ERROR",
10115
10347
  "Error log message for an unrecognized operation in CalcScriptVariables.",
10116
10348
  "",
10117
10349
  )
10118
10350
 
10351
+ EVENT_FLAG_COMPARE_SCRIPT_VARIABLES_ERROR = Symbol(
10352
+ [0x9E31C],
10353
+ [0x209E31C],
10354
+ 0x1C,
10355
+ "EVENT_FLAG_COMPARE_SCRIPT_VARIABLES_ERROR",
10356
+ "Error log message for an unrecognized operation in CompareScriptVariables.",
10357
+ "",
10358
+ )
10359
+
10360
+ EVENT_FLAG_GAME_MODE_DEBUG_MSG = Symbol(
10361
+ [0x9E338],
10362
+ [0x209E338],
10363
+ 0x20,
10364
+ "EVENT_FLAG_GAME_MODE_DEBUG_MSG",
10365
+ "Debug log message when EventFlagResume runs.",
10366
+ "",
10367
+ )
10368
+
10369
+ EVENT_FLAG_BACKUP_DEBUG_MSG = Symbol(
10370
+ [0x9E358],
10371
+ [0x209E358],
10372
+ 0x20,
10373
+ "EVENT_FLAG_BACKUP_DEBUG_MSG",
10374
+ "Debug log message when EventFlagBackup runs.",
10375
+ "",
10376
+ )
10377
+
10119
10378
  SCRIPT_VARS = Symbol(
10120
10379
  [0x9EC44],
10121
10380
  [0x209EC44],
@@ -10125,6 +10384,15 @@ class JpArm9Data:
10125
10384
  "struct script_var_table",
10126
10385
  )
10127
10386
 
10387
+ SCENARIO_CALC_DEBUG_MSG = Symbol(
10388
+ [0x9F374],
10389
+ [0x209F374],
10390
+ 0x28,
10391
+ "SCENARIO_CALC_DEBUG_MSG",
10392
+ "Debug log message with the old and new scenario values when SetScenarioScriptVar runs.",
10393
+ "",
10394
+ )
10395
+
10128
10396
  PORTRAIT_LAYOUTS = Symbol(
10129
10397
  [0x9F3E8],
10130
10398
  [0x209F3E8],
@@ -11620,6 +11888,14 @@ class JpArm9Data:
11620
11888
  "EXCLUSIVE_ITEM_ATTACK_BOOSTS", EXCLUSIVE_ITEM_STAT_BOOST_DATA
11621
11889
  )
11622
11890
 
11891
+ EVENT_FLAG_PROG_POS_INFO = _Deprecated(
11892
+ "EVENT_FLAG_PROG_POS_INFO", EVENT_FLAG_PROG_POS_INFO_CALC_SCRIPT_VARIABLES
11893
+ )
11894
+
11895
+ EVENT_FLAG_EXPANSION_ERROR = _Deprecated(
11896
+ "EVENT_FLAG_EXPANSION_ERROR", EVENT_FLAG_CALC_SCRIPT_VARIABLES_ERROR
11897
+ )
11898
+
11623
11899
  DIRECTORY_FILES_EXTRACTED = _Deprecated(
11624
11900
  "DIRECTORY_FILES_EXTRACTED", PACK_FILES_OPENED
11625
11901
  )
@@ -35015,6 +35291,15 @@ class JpRamData:
35015
35291
  "struct move",
35016
35292
  )
35017
35293
 
35294
+ OPTIONS = Symbol(
35295
+ [0x2AC85C],
35296
+ [0x22AC85C],
35297
+ 0x9,
35298
+ "OPTIONS",
35299
+ "The game's options as controlled by the player through the Others -> Options menu\n\nThe option for 'Grids On/Off' is not stored here.\n\ntype: struct options",
35300
+ "struct options",
35301
+ )
35302
+
35018
35303
  SCRIPT_VARS_VALUES = Symbol(
35019
35304
  [0x2AC868],
35020
35305
  [0x22AC868],