pmdsky-debug-py 5.1.11__py3-none-any.whl → 5.1.13__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.
@@ -1024,9 +1024,9 @@ class JpItcmArm9Functions:
1024
1024
  None,
1025
1025
  (
1026
1026
  "Call LoadFileInPack after looking up the global Pack archive by its"
1027
- " identifier\n\nr0: pack file identifier\nr1: [output] target buffer\nr2:"
1028
- " file index\nreturn: number of read bytes (identical to the length of the"
1029
- " pack from the Table of Content)"
1027
+ " identifier\n\nr0: pack file identifier\nr1: file index\nr2: [output]"
1028
+ " target buffer\nreturn: number of read bytes (identical to the length of"
1029
+ " the pack from the Table of Content)"
1030
1030
  ),
1031
1031
  )
1032
1032
 
@@ -2592,17 +2592,30 @@ class JpItcmArm9Functions:
2592
2592
  None,
2593
2593
  None,
2594
2594
  (
2595
- "Note: unverified, ported from Irdkwia's notes\n\nr0: wan_table_ptr\nr1:"
2595
+ "Always delete an entry if the file is allocated externally"
2596
+ " (file_externally_allocated is set), otherwise, decrease the reference"
2597
+ " counter. If it reach 0, delete the sprite.\n\nr0: wan_table_ptr\nr1:"
2596
2598
  " wan_id"
2597
2599
  ),
2598
2600
  )
2599
2601
 
2602
+ AllocateWanTableEntry = Symbol(
2603
+ None,
2604
+ None,
2605
+ None,
2606
+ (
2607
+ "Return the identifier to a free wan table entry (-1 if none are"
2608
+ " avalaible). The entry is zeroed.\n\nr0: wan_table_ptr\nreturn: the entry"
2609
+ " id in wan_table"
2610
+ ),
2611
+ )
2612
+
2600
2613
  FindWanTableEntry = Symbol(
2601
2614
  None,
2602
2615
  None,
2603
2616
  None,
2604
2617
  (
2605
- "Appears to search in the given table (in practice always seems to be"
2618
+ "Search in the given table (in practice always seems to be"
2606
2619
  " LOADED_WAN_TABLE_PTR) for an entry with the given file name.\n\nr0: table"
2607
2620
  " pointer\nr1: file name\nreturn: index of the found file, if found, or -1"
2608
2621
  " if not found"
@@ -2614,8 +2627,19 @@ class JpItcmArm9Functions:
2614
2627
  None,
2615
2628
  None,
2616
2629
  (
2617
- "wan_id = -1 if it is not loaded\n\nNote: unverified, ported from Irdkwia's"
2618
- " notes\n\nr0: wan_table_ptr\nr1: bin_file_id\nr2: file_id\nreturn: wan_id"
2630
+ "Look up a sprite with the provided pack_id and file_index in the wan"
2631
+ " table.\n\nr0: wan_table_ptr\nr1: pack_id\nr2: file_index\nreturn: sprite"
2632
+ " id in the wan table, -1 if not found"
2633
+ ),
2634
+ )
2635
+
2636
+ InitWanTable = Symbol(
2637
+ None,
2638
+ None,
2639
+ None,
2640
+ (
2641
+ "Initialize the input WAN table with 0x60 free entries (it needs a length"
2642
+ " of 0x1510 bytes)\n\nr0: wan_table_ptr"
2619
2643
  ),
2620
2644
  )
2621
2645
 
@@ -2631,6 +2655,32 @@ class JpItcmArm9Functions:
2631
2655
  ),
2632
2656
  )
2633
2657
 
2658
+ LoadWanTableEntryFromPack = Symbol(
2659
+ None,
2660
+ None,
2661
+ None,
2662
+ (
2663
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2664
+ " allocate a new one and load the optionally compressed sprite.\n\nr0:"
2665
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3: allocation"
2666
+ " flags\nstack[0]: compressed\nreturn: the entry id in wan_table"
2667
+ ),
2668
+ )
2669
+
2670
+ LoadWanTableEntryFromPackUseProvidedMemory = Symbol(
2671
+ None,
2672
+ None,
2673
+ None,
2674
+ (
2675
+ "Return an already allocated entry for this sprite if it exists, otherwise"
2676
+ " allocate a new one and load the optionally compressed sprite into the"
2677
+ " provided memory area. Mark the sprite as externally allocated.\n\nr0:"
2678
+ " wan_table_ptr\nr1: pack_id\nr2: file_index\nr3:"
2679
+ " sprite_storage_ptr\nstack[0]: compressed\nreturn: the entry id in"
2680
+ " wan_table"
2681
+ ),
2682
+ )
2683
+
2634
2684
  ReplaceWanFromBinFile = Symbol(
2635
2685
  None,
2636
2686
  None,
@@ -12621,6 +12671,16 @@ class JpItcmOverlay10Data:
12621
12671
  ),
12622
12672
  )
12623
12673
 
12674
+ KECLEON_SHOP_BOOST_CHANCE_MULTIPLIER = Symbol(
12675
+ None,
12676
+ None,
12677
+ None,
12678
+ (
12679
+ "The boosted kecleon shop spawn chance multiplier (~1.2) as a binary"
12680
+ " fixed-point number (8 fraction bits)."
12681
+ ),
12682
+ )
12683
+
12624
12684
  HIDDEN_STAIRS_SPAWN_CHANCE_MULTIPLIER = Symbol(
12625
12685
  None,
12626
12686
  None,
@@ -13305,8 +13365,10 @@ class JpItcmOverlay11Functions:
13305
13365
  None,
13306
13366
  None,
13307
13367
  (
13308
- "Note: unverified, ported from Irdkwia's notes\n\nr0: [output]"
13309
- " bg_attr_str\nr1: bg_id"
13368
+ "Open and read an entry from the MAP_BG/bg_list.dat\n\nDocumentation on"
13369
+ " this format can be found"
13370
+ " here:\nhttps://github.com/SkyTemple/skytemple-files/tree/55b3017631a8a1b0f106111ef91a901dc394c6df/skytemple_files/graphics/bg_list_dat\n\nr0:"
13371
+ " [output] The entry\nr1: background ID"
13310
13372
  ),
13311
13373
  )
13312
13374
 
@@ -13583,6 +13645,10 @@ class JpItcmOverlay11Data:
13583
13645
 
13584
13646
  GROUND_STATE_MAP = Symbol(None, None, None, "[Runtime]")
13585
13647
 
13648
+ GROUND_STATE_WEATHER = Symbol(
13649
+ None, None, None, "[Runtime] Same structure format as GROUND_STATE_MAP"
13650
+ )
13651
+
13586
13652
  GROUND_STATE_PTRS = Symbol(
13587
13653
  None,
13588
13654
  None,
@@ -16430,6 +16496,127 @@ class JpItcmOverlay29Functions:
16430
16496
  ),
16431
16497
  )
16432
16498
 
16499
+ ApplyMudTrapEffect = Symbol(
16500
+ None,
16501
+ None,
16502
+ None,
16503
+ (
16504
+ "Randomly lowers attack, special attack, defense, or special defense of the"
16505
+ " defender by 3 stages.\n\nr0: attacker entity pointer\nr1: defender entity"
16506
+ " pointer"
16507
+ ),
16508
+ )
16509
+
16510
+ ApplyStickyTrapEffect = Symbol(
16511
+ None,
16512
+ None,
16513
+ None,
16514
+ (
16515
+ "If the defender is the leader, randomly try to make something in the bag"
16516
+ " sticky. Otherwise, try to make the item the monster is holding"
16517
+ " sticky.\n\nr0: attacker entity pointer\nr1: defender entity pointer"
16518
+ ),
16519
+ )
16520
+
16521
+ ApplyGrimyTrapEffect = Symbol(
16522
+ None,
16523
+ None,
16524
+ None,
16525
+ (
16526
+ "If the defender is the leader, randomly try to turn food items in the"
16527
+ " toolbox into\ngrimy food. Otherwise, try to make the food item the"
16528
+ " monster is holding grimy food.\n\nr0: attacker entity pointer\nr1:"
16529
+ " defender entity pointer"
16530
+ ),
16531
+ )
16532
+
16533
+ ApplyPitfallTrapEffect = Symbol(
16534
+ None,
16535
+ None,
16536
+ None,
16537
+ (
16538
+ "If the defender is the leader, end the current floor unless it has a"
16539
+ " rescue point.\nOtherwise, make the entity faint and ignore reviver seeds."
16540
+ " If not called by a random\ntrap, break the grate on the pitfall"
16541
+ " trap.\n\nr0: attacker entity pointer\nr1: defender entity pointer\nr2:"
16542
+ " tile pointer\nr3: bool caused by random trap"
16543
+ ),
16544
+ )
16545
+
16546
+ ApplySummonTrapEffect = Symbol(
16547
+ None,
16548
+ None,
16549
+ None,
16550
+ (
16551
+ "Randomly spawns 2-4 enemy monsters around the position. The entity is only"
16552
+ " used for\nlogging messages.\n\nr0: entity pointer\nr1: position"
16553
+ ),
16554
+ )
16555
+
16556
+ ApplyPpZeroTrapEffect = Symbol(
16557
+ None,
16558
+ None,
16559
+ None,
16560
+ (
16561
+ "Tries to reduce the PP of one of the defender's moves to 0.\n\nr0:"
16562
+ " attacker entity pointer\nr1: defender entity pointer"
16563
+ ),
16564
+ )
16565
+
16566
+ ApplyPokemonTrapEffect = Symbol(
16567
+ None,
16568
+ None,
16569
+ None,
16570
+ (
16571
+ "Turns item in the same room as the tile at the position (usually just the"
16572
+ " entities's\nposition) into monsters. If the position is in a hallway,"
16573
+ " convert items in a 3x3 area\ncentered on the position into"
16574
+ " monsters.\n\nr0: entity pointer\nr1: position"
16575
+ ),
16576
+ )
16577
+
16578
+ ApplyTripTrapEffect = Symbol(
16579
+ None,
16580
+ None,
16581
+ None,
16582
+ (
16583
+ "Tries to drop the defender's item and places it on the floor.\n\nr0:"
16584
+ " attacker entity pointer\nr1: defender entity pointer"
16585
+ ),
16586
+ )
16587
+
16588
+ ApplyToxicSpikesTrapEffect = Symbol(
16589
+ None,
16590
+ None,
16591
+ None,
16592
+ (
16593
+ "Tries to inflict 10 damage on the defender and then tries to poison"
16594
+ " them.\n\nr0: attacker entity pointer\nr1: defender entity pointer"
16595
+ ),
16596
+ )
16597
+
16598
+ ApplyRandomTrapEffect = Symbol(
16599
+ None,
16600
+ None,
16601
+ None,
16602
+ (
16603
+ "Selects a random trap that isn't a wonder tile and isn't a random trap and"
16604
+ " calls\nApplyTrapEffect on all monsters that is different from the trap's"
16605
+ " team.\n\nr0: Triggered trap\nr1: User\nr2: Target, normally same as"
16606
+ " user\nr3: Tile that contains the trap\nstack[0]: position"
16607
+ ),
16608
+ )
16609
+
16610
+ ApplyGrudgeTrapEffect = Symbol(
16611
+ None,
16612
+ None,
16613
+ None,
16614
+ (
16615
+ "Spawns several monsters around the position and gives all monsters on the"
16616
+ " floor the\ngrudge status condition.\n\nr0: entity pointer\nr1: position"
16617
+ ),
16618
+ )
16619
+
16433
16620
  ApplyTrapEffect = Symbol(
16434
16621
  None,
16435
16622
  None,
@@ -16437,11 +16624,20 @@ class JpItcmOverlay29Functions:
16437
16624
  (
16438
16625
  "Performs the effect of a triggered trap.\n\nThe trap's animation happens"
16439
16626
  " before this function is called.\n\nr0: Triggered trap\nr1: User\nr2:"
16440
- " Target, normally same as user\nr3: Tile that contains the trap\nreturn:"
16441
- " True if the trap should be destroyed after the effect is applied"
16627
+ " Target, normally same as user\nr3: Tile that contains the trap\nstack[0]:"
16628
+ " position\nstack[1]: trap ID\nstack[2]: bool caused by random"
16629
+ " trap\nreturn: True if the trap should be destroyed after the effect is"
16630
+ " applied"
16442
16631
  ),
16443
16632
  )
16444
16633
 
16634
+ RevealTrapsNearby = Symbol(
16635
+ None,
16636
+ None,
16637
+ None,
16638
+ "Reveals traps within the monster's viewing range.\n\nr0: entity pointer",
16639
+ )
16640
+
16445
16641
  DebugRecruitingEnabled = Symbol(
16446
16642
  None,
16447
16643
  None,
@@ -16802,6 +16998,20 @@ class JpItcmOverlay29Functions:
16802
16998
  ),
16803
16999
  )
16804
17000
 
17001
+ TryEndStatusWithAbility = Symbol(
17002
+ None,
17003
+ None,
17004
+ None,
17005
+ (
17006
+ "Checks if any of the defender's active abilities would end one of their"
17007
+ " current status\nconditions. For example, if the ability Own Tempo will"
17008
+ " stop confusion.\n\nCalled after changing a monster's ability with skill"
17009
+ " swap, role play, or trace to\nremove statuses the monster should no"
17010
+ " longer be affected by.\n\nr0: attacker entity pointer\nr1: defender"
17011
+ " entity pointer"
17012
+ ),
17013
+ )
17014
+
16805
17015
  ExclusiveItemEffectIsActive = Symbol(
16806
17016
  None,
16807
17017
  None,
@@ -18723,6 +18933,16 @@ class JpItcmOverlay29Functions:
18723
18933
  ),
18724
18934
  )
18725
18935
 
18936
+ TryResetStatChanges = Symbol(
18937
+ None,
18938
+ None,
18939
+ None,
18940
+ (
18941
+ "Tries to reset the stat changes of the defender.\n\nr0: attacker entity"
18942
+ " pointer\nr1: defender entity pointer\nr3: bool to force animation"
18943
+ ),
18944
+ )
18945
+
18726
18946
  MirrorMoveIsActive = Symbol(
18727
18947
  None,
18728
18948
  None,
@@ -19025,7 +19245,21 @@ class JpItcmOverlay29Functions:
19025
19245
  "Creates an explosion if possible.\n\nThe target monster is considered the"
19026
19246
  " source of the explosion.\n\nr0: user entity pointer\nr1: target entity"
19027
19247
  " pointer\nr2: coordinates where the explosion should take place"
19028
- " (unverified)\nr3: ?\nstack[0]: ?\nstack[1]: damage source (normally"
19248
+ " (center)\nr3: explosion radius (only works correctly with 1 and"
19249
+ " 2)\nstack[0]: damage type\nstack[1]: damage source"
19250
+ ),
19251
+ )
19252
+
19253
+ TryAftermathExplosion = Symbol(
19254
+ None,
19255
+ None,
19256
+ None,
19257
+ (
19258
+ "Creates the explosion for the ability aftermath if possible.\n\nThe target"
19259
+ " monster is considered the source of the explosion.\n\nr0: user entity"
19260
+ " pointer\nr1: target entity pointer\nr2: coordinates where the explosion"
19261
+ " should take place (center)\nr3: explosion radius (only works correctly"
19262
+ " with 1 and 2)\nstack[0]: damage type\nstack[1]: damage source (normally"
19029
19263
  " DAMAGE_SOURCE_EXPLOSION)"
19030
19264
  ),
19031
19265
  )
@@ -20511,6 +20745,19 @@ class JpItcmOverlay29Functions:
20511
20745
  ),
20512
20746
  )
20513
20747
 
20748
+ GetFinalKecleonShopSpawnChance = Symbol(
20749
+ None,
20750
+ None,
20751
+ None,
20752
+ (
20753
+ "Gets the kecleon shop spawn chance for the floor.\n\nWhen"
20754
+ " dungeon::boost_kecleon_shop_spawn_chance is false, returns the same value"
20755
+ " as the input. When it's true, returns the input (chance * 1.2).\n\nr0:"
20756
+ " base kecleon shop spawn chance,"
20757
+ " floor_properties::kecleon_shop_spawn_chance\nreturn: int"
20758
+ ),
20759
+ )
20760
+
20514
20761
  ResetHiddenStairsSpawn = Symbol(
20515
20762
  None,
20516
20763
  None,