Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUG] Projectiles incorrectly reading power in on_hit()

Short summary:

Certain projectiles in define a specific on_hit() proc. Some of these check the power var to decide whether or not an effect should happen based on how much power the bullet has lost after being fired. However, all of these projectiles as far as I can tell have been incorrectly checking the power var. This leads to these conditional statements always occurring. In order to fix this, I have simply added the third argument that is defined in the on_hit() proc in the into the children defined in This allows /obj/projectile/ to be passed into the on_hit function, which then allows for power to be properly checked.

Forum Jump:

Users browsing this thread: 1 Guest(s)