[MDB IGNORE] ballistic gun repath & lazyinit ammo & casing flags & reorganiation (#4908)

## About The Pull Request

tin

## Why It's Good For The Game

memory improvements & code efficiency

## Changelog

nah

Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2023-01-05 19:10:40 -08:00
committed by GitHub
co-authored by silicons
parent d6adc13865
commit fd91cb3b08
157 changed files with 1423 additions and 1366 deletions
+3 -3
View File
@@ -46,10 +46,10 @@
var/obj/item/gun/energy/energy_gun = G
P = new energy_gun.projectile_type()
else if(istype(I, /obj/item/gun/projectile))
var/obj/item/gun/projectile/projectile_gun = G
else if(istype(I, /obj/item/gun/ballistic))
var/obj/item/gun/ballistic/projectile_gun = G
var/obj/item/ammo_casing/ammo = projectile_gun.chambered
P = ammo.BB
P = ammo.get_projectile()
else
to_chat(user, "<span class='warning'>DPS calculation by this verb is not supported for \the [G]'s type. Energy or Ballistic only, sorry.</span>")