mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Merge branch 'haha' of https://github.com/lolman360/Citadel-Station-13 into haha
This commit is contained in:
@@ -86,11 +86,8 @@
|
||||
var/obj/item/ammo_box/AM = A
|
||||
for(var/obj/item/ammo_casing/AC in AM.stored_ammo)
|
||||
if(load_delay || AM.load_delay)
|
||||
var/loadtime = load_delay
|
||||
if(AM.load_delay > load_delay)
|
||||
loadtime = AM.load_delay
|
||||
if(do_after(user, loadtime, target = src))
|
||||
else
|
||||
var/loadtime = max(AM.load_delay, load_delay)
|
||||
if(!do_after(user, loadtime, target = src))
|
||||
return FALSE
|
||||
var/did_load = give_round(AC, replace_spent)
|
||||
if(did_load)
|
||||
|
||||
@@ -53,10 +53,8 @@
|
||||
..()
|
||||
if (istype(A, /obj/item/ammo_box/magazine))
|
||||
var/obj/item/ammo_box/magazine/AM = A
|
||||
if(AM.load_delay)
|
||||
if(do_after(user, AM.load_delay, target = src))
|
||||
else
|
||||
return FALSE
|
||||
if(AM.load_delay && !do_after(user, AM.load_delay, target = src))
|
||||
return FALSE
|
||||
if (!magazine && istype(AM, mag_type))
|
||||
if(user.transferItemToLoc(AM, src))
|
||||
magazine = AM
|
||||
|
||||
Reference in New Issue
Block a user