Fixes Riot Dart Damage Exploit (#71261)

Fixes an issue where riot darts would do damage even if they had no pen
in them if recovered after being fired while modified to be able to
accept pens
## About The Pull Request
Fixes an issue where riot darts would do damage even if they had no pen
in them if recovered after being fired while modified to be able to
accept pens
Fixes #71084 
## Why It's Good For The Game
bug bad
## Changelog
🆑
fix: Riot darts no longer do damage with no pen inserted if recovered
after being fired while modified to accept pens.
/🆑
This commit is contained in:
SkeletalElite
2022-11-22 07:17:27 +00:00
committed by GitHub
parent 2267945d07
commit b449dbbfb7
@@ -21,14 +21,13 @@
newcasing.modified = modified
var/obj/projectile/bullet/reusable/foam_dart/newdart = newcasing.loaded_projectile
newdart.modified = modified
if(modified)
newdart.damage = 5
newdart.nodamage = FALSE
newdart.damage_type = damage_type
if(pen)
newdart.pen = pen
pen.forceMove(newdart)
pen = null
newdart.damage = 5
newdart.nodamage = FALSE
newdart.update_appearance()