Update the codebase to 515. (#15553)

* Update the codebase to 515.

* edit that

* WHOOPS

* maor

* maybe works

* libcall and shit

* do that too

* remove that

* auxtools isnt updated so get rid of it

* actually remove auxtools lol

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-01-23 21:21:37 +01:00
committed by GitHub
parent 1d359b64e3
commit dd482c63af
326 changed files with 672 additions and 833 deletions

View File

@@ -25,7 +25,7 @@
for(var/i = 1, i <= max_ammo - 1, i++)
var/obj/C = new ammo_type()
add_ammo(C)
addtimer(CALLBACK(src, .proc/check_ammo), 5) // if we don't have any ammo in 5 deciseconds, we're an empty pile, which is worthless, so self-delete
addtimer(CALLBACK(src, PROC_REF(check_ammo)), 5) // if we don't have any ammo in 5 deciseconds, we're an empty pile, which is worthless, so self-delete
/obj/item/ammo_pile/examine(mob/user)
. = ..()

View File

@@ -326,7 +326,7 @@
var/obj/item/gun/SG = user.get_inactive_hand()
if(istype(SG))
var/decreased_accuracy = (SG.w_class * 2) - SG.offhand_accuracy
addtimer(CALLBACK(SG, .proc/Fire, target, user, clickparams, pointblank, reflex, decreased_accuracy, TRUE), 5)
addtimer(CALLBACK(SG, PROC_REF(Fire), target, user, clickparams, pointblank, reflex, decreased_accuracy, TRUE), 5)
//actually attempt to shoot
var/turf/targloc = get_turf(target) //cache this in case target gets deleted during shooting, e.g. if it was a securitron that got destroyed.
@@ -403,7 +403,7 @@
if (muzzle_flash)
set_light(muzzle_flash)
addtimer(CALLBACK(src, /atom/.proc/set_light, 0), 2, TIMER_UNIQUE | TIMER_OVERRIDE)
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, set_light), 0), 2, TIMER_UNIQUE | TIMER_OVERRIDE)
update_icon()
if(i < burst)
@@ -460,7 +460,7 @@
if(muzzle_flash)
set_light(muzzle_flash)
addtimer(CALLBACK(src, /atom/.proc/set_light, 0), 2)
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, set_light), 0), 2)
if(recoil)
shake_camera(user, recoil + 1, recoil)
@@ -790,7 +790,7 @@
/obj/item/gun/pickup(mob/user)
..()
queue_icon_update()
addtimer(CALLBACK(src, .proc/update_maptext), 1)
addtimer(CALLBACK(src, PROC_REF(update_maptext)), 1)
if(is_wieldable)
unwield()

View File

@@ -32,7 +32,7 @@
spikes++
update_icon()
if (spikes < max_spikes)
addtimer(CALLBACK(src, .proc/regen_spike), spike_gen_time, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(regen_spike)), spike_gen_time, TIMER_UNIQUE)
/obj/item/gun/launcher/spikethrower/examine(mob/user)
..(user)
@@ -57,7 +57,7 @@
/obj/item/gun/launcher/spikethrower/consume_next_projectile()
if(spikes < 1) return null
spikes--
addtimer(CALLBACK(src, .proc/regen_spike), spike_gen_time, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(regen_spike)), spike_gen_time, TIMER_UNIQUE)
return new /obj/item/spike(src)
//This gun only functions for vaurca warriors. The on-sprite is too huge to render properly on other sprites.

View File

@@ -96,7 +96,7 @@
update_maptext()
update_icon()
addtimer(CALLBACK(src, .proc/try_recharge), recharge_time * 2 SECONDS, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(try_recharge)), recharge_time * 2 SECONDS, TIMER_UNIQUE)
/obj/item/gun/energy/consume_next_projectile()
if(!power_supply)
@@ -106,7 +106,7 @@
if(!power_supply.checked_use(charge_cost))
return null
if(self_recharge)
addtimer(CALLBACK(src, .proc/try_recharge), recharge_time * 2 SECONDS, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(try_recharge)), recharge_time * 2 SECONDS, TIMER_UNIQUE)
return new projectile_type(src)
/obj/item/gun/energy/proc/get_external_power_supply()

View File

@@ -170,7 +170,7 @@
if(!capacitor)
return null
if (self_recharge)
addtimer(CALLBACK(src, .proc/try_recharge), recharge_time * 2 SECONDS, TIMER_UNIQUE)
addtimer(CALLBACK(src, PROC_REF(try_recharge)), recharge_time * 2 SECONDS, TIMER_UNIQUE)
var/obj/item/projectile/beam/A = new projectile_type(src)
A.damage = capacitor.damage
var/damage_coeff = 1

View File

@@ -156,11 +156,11 @@
..()
if(source)
to_chat(user, "<span class='notice'>\The [src] snaps back onto \the [source].</span>")
INVOKE_ASYNC(source, /obj/item/minigunpack/.proc/remove_gun)
INVOKE_ASYNC(source, TYPE_PROC_REF(/obj/item/minigunpack, remove_gun))
source.update_icon()
user.update_inv_back()
/obj/item/gun/projectile/automatic/rifle/minigun/Move()
..()
if(loc != source.loc)
INVOKE_ASYNC(source, /obj/item/minigunpack/.proc/remove_gun)
INVOKE_ASYNC(source, TYPE_PROC_REF(/obj/item/minigunpack, remove_gun))

View File

@@ -671,12 +671,12 @@
rotate.Turn(angle)
I.transform = rotate
// Need to do this in order to prevent the ping from being deleted
addtimer(CALLBACK(I, /image/.proc/flick_overlay, src, 3), 1)
addtimer(CALLBACK(I, TYPE_PROC_REF(/image, flick_overlay), src, 3), 1)
/image/proc/flick_overlay(var/atom/A, var/duration)
A.overlays.Add(src)
addtimer(CALLBACK(src, .proc/flick_remove_overlay, A), duration)
addtimer(CALLBACK(src, PROC_REF(flick_remove_overlay), A), duration)
/image/proc/flick_remove_overlay(var/atom/A)
if(A)

View File

@@ -75,7 +75,7 @@
H.name += " [pick(last_names)]"
H.real_name = H.name
INVOKE_ASYNC(H, /mob/living/carbon/human.proc/set_species, randomize)
INVOKE_ASYNC(H, TYPE_PROC_REF(/mob/living/carbon/human, set_species), randomize)
H.universal_speak = 1
if(new_mob)

View File

@@ -158,7 +158,7 @@
var/area/A = get_area(target)
if(A && A.has_gravity())
A.gravitychange(FALSE)
addtimer(CALLBACK(src, .proc/turnongravity), 150)
addtimer(CALLBACK(src, PROC_REF(turnongravity)), 150)
if(istype(target, /obj/machinery/gravity_generator/main))
var/obj/machinery/gravity_generator/main/T = target