Files
Bubberstation/code/modules/projectiles/projectile/bullets/special.dm
tralezab 6c01cc2c01 every case of initialize that should have mapload, does (#61623)
## About The Pull Request

stop forgetting to include mapload, if you don't include it then every single subtype past it by default doesn't include it

for example, `obj/item` didn't include mapload so every single item by default didn't fill in mapload

![](https://media.discordapp.net/attachments/823293417186000909/875122648605147146/image0.gif)

## Regex used:

procs without args, not even regex

`/Initialize()`

procs with args
`\/Initialize\((?!mapload)((.)*\w)?`

cleanup of things i didn't want to mapload:
`\/datum\/(.)*\/Initialize\(mapload`
2021-09-24 17:56:50 -04:00

39 lines
822 B
Plaintext

// Honker
/obj/projectile/bullet/honker
name = "banana"
damage = 0
movement_type = FLYING
projectile_piercing = ALL
nodamage = TRUE
hitsound = 'sound/items/bikehorn.ogg'
icon = 'icons/obj/hydroponics/harvest.dmi'
icon_state = "banana"
range = 200
embedding = null
shrapnel_type = null
/obj/projectile/bullet/honker/Initialize(mapload)
. = ..()
SpinAnimation()
/obj/projectile/bullet/honker/on_hit(atom/target, blocked = FALSE)
. = ..()
var/mob/M = target
if(istype(M))
if(M.anti_magic_check())
return BULLET_ACT_BLOCK
else
M.slip(100, M.loc, GALOSHES_DONT_HELP|SLIDE, 0, FALSE)
// Mime
/obj/projectile/bullet/mime
damage = 40
/obj/projectile/bullet/mime/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
M.silent = max(M.silent, 10)