Bombsquad-Ballistica-Modded.../dist/ba_root
𝔾𝕦𝕘𝕘𝕤 91fde7f05e
Fix: Correct Bomb init arguments and animate_array parameter in elPatronPowerup.py
This pull request resolves two critical issues in `elPatronPowerup.py`:

---

🔧 Issue 1: Bomb initialization failed
-  Error:
  TypeError: Bomb.__init__() takes 1 positional argument but 8 were given
- 🔍 Cause:
  self._pm_old_bomb(...) was passing multiple positional arguments instead of keyword arguments.
-  Fix:
  Replaced with keyword-based argument passing:
  self._pm_old_bomb(
      position=position,
      velocity=velocity,
      bomb_type=new_bomb_type,
      blast_radius=blast_radius,
      bomb_scale=bomb_scale,
      source_player=source_player,
      owner=owner
  )

---

🎨 Issue 2: animate_array() received too many arguments
-  Error:
  TypeError: animate_array() takes 4 positional arguments but 5 were given
- 🔍 Cause:
  An unnecessary True was passed as a fifth argument.
-  Fix:
  Removed the extra argument:
  bs.animate_array(self.texts[type], 'color', 3, {
      0: (1, 0, 0),
      0.2: (1, 0.5, 0),
      0.4: (1, 1, 0),
      0.6: (0, 1, 0),
      0.8: (0, 1, 1),
      1.0: (1, 0, 1),
      1.2: (1, 0, 0)
  })

---
2025-06-18 20:05:10 +05:00
..
mods Fix: Correct Bomb init arguments and animate_array parameter in elPatronPowerup.py 2025-06-18 20:05:10 +05:00
config.json updating to 1.7.41 2025-05-26 01:11:57 +05:30
config.json.prev updating to 1.7.41 2025-05-26 01:11:57 +05:30