mirror of
https://github.com/KabKebab/GS13.git
synced 2026-02-09 23:27:37 +00:00
more stuff
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
|
||||
/datum/antagonist/abductor/get_admin_commands()
|
||||
. = ..()
|
||||
.["Equip"] = CALLBACK(src,.proc/admin_equip)
|
||||
.["Equip"] = CALLBACK(src, PROC_REF(admin_equip))
|
||||
|
||||
/datum/antagonist/abductor/proc/admin_equip(mob/admin)
|
||||
if(!ishuman(owner.current))
|
||||
|
||||
@@ -479,7 +479,7 @@
|
||||
/datum/antagonist/changeling/get_admin_commands()
|
||||
. = ..()
|
||||
if(stored_profiles.len && (owner.current.real_name != first_prof.name))
|
||||
.["Transform to initial appearance."] = CALLBACK(src,.proc/admin_restore_appearance)
|
||||
.["Transform to initial appearance."] = CALLBACK(src, PROC_REF(admin_restore_appearance))
|
||||
|
||||
/datum/antagonist/changeling/proc/admin_restore_appearance(mob/admin)
|
||||
if(!stored_profiles.len || !iscarbon(owner.current))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
/obj/structure/destructible/clockwork/reflector/ComponentInitialize()
|
||||
. = ..()
|
||||
AddComponent(/datum/component/simple_rotation,ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_VERBS ,null,CALLBACK(src,PROC_REF(can_be_rotated),CALLBACK(src,.proc/after_rotation)))
|
||||
AddComponent(/datum/component/simple_rotation,ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_VERBS ,null,CALLBACK(src,PROC_REF(can_be_rotated),CALLBACK(src, PROC_REF(after_rotation))))
|
||||
|
||||
/obj/structure/destructible/clockwork/reflector/bullet_act(obj/item/projectile/P)
|
||||
if(!anchored || !allowed_projectile_typecache[P.type] || !(P.dir in GLOB.cardinals))
|
||||
@@ -83,4 +83,4 @@
|
||||
anchored = !anchored
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "secure" : "unsecure"] \the [src].</span>")
|
||||
I.play_tool_sound(src)
|
||||
return TRUE
|
||||
return TRUE
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
|
||||
/datum/antagonist/clockcult/get_admin_commands()
|
||||
. = ..()
|
||||
.["Give slab"] = CALLBACK(src,.proc/admin_give_slab)
|
||||
.["Give slab"] = CALLBACK(src, PROC_REF(admin_give_slab))
|
||||
|
||||
/datum/antagonist/clockcult/proc/admin_give_slab(mob/admin)
|
||||
if(!SSticker.mode.equip_servant(owner.current))
|
||||
|
||||
@@ -171,8 +171,8 @@
|
||||
|
||||
/datum/antagonist/cult/get_admin_commands()
|
||||
. = ..()
|
||||
.["Dagger"] = CALLBACK(src,.proc/admin_give_dagger)
|
||||
.["Dagger and Metal"] = CALLBACK(src,.proc/admin_give_metal)
|
||||
.["Dagger"] = CALLBACK(src, PROC_REF(admin_give_dagger))
|
||||
.["Dagger and Metal"] = CALLBACK(src, PROC_REF(admin_give_metal))
|
||||
|
||||
/datum/antagonist/cult/proc/admin_give_dagger(mob/admin)
|
||||
if(!equip_cultist(FALSE))
|
||||
|
||||
@@ -118,7 +118,7 @@ GLOBAL_LIST_INIT(devil_suffix, list(" the Red", " the Soulless", " the Master",
|
||||
|
||||
/datum/antagonist/devil/get_admin_commands()
|
||||
. = ..()
|
||||
.["Toggle ascendable"] = CALLBACK(src,.proc/admin_toggle_ascendable)
|
||||
.["Toggle ascendable"] = CALLBACK(src, PROC_REF(admin_toggle_ascendable))
|
||||
|
||||
|
||||
/datum/antagonist/devil/proc/admin_toggle_ascendable(mob/admin)
|
||||
|
||||
@@ -126,8 +126,8 @@
|
||||
|
||||
/datum/antagonist/nukeop/get_admin_commands()
|
||||
. = ..()
|
||||
.["Send to base"] = CALLBACK(src,.proc/admin_send_to_base)
|
||||
.["Tell code"] = CALLBACK(src,.proc/admin_tell_code)
|
||||
.["Send to base"] = CALLBACK(src, PROC_REF(admin_send_to_base))
|
||||
.["Tell code"] = CALLBACK(src, PROC_REF(admin_tell_code))
|
||||
|
||||
/datum/antagonist/nukeop/proc/admin_send_to_base(mob/admin)
|
||||
owner.current.forceMove(pick(GLOB.nukeop_start))
|
||||
|
||||
@@ -84,8 +84,8 @@
|
||||
|
||||
/datum/antagonist/overthrow/get_admin_commands()
|
||||
. = ..()
|
||||
.["Give storage with random item"] = CALLBACK(src,.proc/equip_overthrow)
|
||||
.["Give overthrow boss equip"] = CALLBACK(src,.proc/equip_initial_overthrow_agent)
|
||||
.["Give storage with random item"] = CALLBACK(src, PROC_REF(equip_overthrow))
|
||||
.["Give overthrow boss equip"] = CALLBACK(src, PROC_REF(equip_initial_overthrow_agent))
|
||||
|
||||
// Dynamically creates the HUD for the team if it doesn't exist already, inserting it into the global huds list, and assigns it to the user. The index is saved into a var owned by the team datum.
|
||||
/datum/antagonist/overthrow/proc/update_overthrow_icons_added(datum/mind/traitor_mind)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
target.team = src
|
||||
target.find_target()
|
||||
objectives += target
|
||||
addtimer(CALLBACK(src,.proc/update_objectives),OBJECTIVE_UPDATING_TIME,TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(update_objectives)),OBJECTIVE_UPDATING_TIME,TIMER_UNIQUE)
|
||||
|
||||
/datum/team/overthrow/proc/update_objectives()
|
||||
var/datum/objective/overthrow/heads/heads_obj = locate() in objectives
|
||||
@@ -38,4 +38,4 @@
|
||||
M.objectives += heads_obj
|
||||
heads_obj.find_targets()
|
||||
|
||||
addtimer(CALLBACK(src,.proc/update_objectives),OBJECTIVE_UPDATING_TIME,TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(update_objectives)),OBJECTIVE_UPDATING_TIME,TIMER_UNIQUE)
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
/datum/antagonist/rev/get_admin_commands()
|
||||
. = ..()
|
||||
.["Promote"] = CALLBACK(src,.proc/admin_promote)
|
||||
.["Promote"] = CALLBACK(src, PROC_REF(admin_promote))
|
||||
|
||||
/datum/antagonist/rev/proc/admin_promote(mob/admin)
|
||||
var/datum/mind/O = owner
|
||||
@@ -105,10 +105,10 @@
|
||||
/datum/antagonist/rev/head/get_admin_commands()
|
||||
. = ..()
|
||||
. -= "Promote"
|
||||
.["Take flash"] = CALLBACK(src,.proc/admin_take_flash)
|
||||
.["Give flash"] = CALLBACK(src,.proc/admin_give_flash)
|
||||
.["Repair flash"] = CALLBACK(src,.proc/admin_repair_flash)
|
||||
.["Demote"] = CALLBACK(src,.proc/admin_demote)
|
||||
.["Take flash"] = CALLBACK(src, PROC_REF(admin_take_flash))
|
||||
.["Give flash"] = CALLBACK(src, PROC_REF(admin_give_flash))
|
||||
.["Repair flash"] = CALLBACK(src, PROC_REF(admin_repair_flash))
|
||||
.["Demote"] = CALLBACK(src, PROC_REF(admin_demote))
|
||||
|
||||
/datum/antagonist/rev/head/proc/admin_take_flash(mob/admin)
|
||||
var/list/L = owner.current.get_contents()
|
||||
@@ -267,7 +267,7 @@
|
||||
for(var/datum/mind/M in members)
|
||||
M.objectives |= objectives
|
||||
|
||||
addtimer(CALLBACK(src,.proc/update_objectives),HEAD_UPDATE_PERIOD,TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(update_objectives)),HEAD_UPDATE_PERIOD,TIMER_UNIQUE)
|
||||
|
||||
/datum/team/revolution/proc/head_revolutionaries()
|
||||
. = list()
|
||||
@@ -293,7 +293,7 @@
|
||||
var/datum/antagonist/rev/rev = new_leader.has_antag_datum(/datum/antagonist/rev)
|
||||
rev.promote()
|
||||
|
||||
addtimer(CALLBACK(src,.proc/update_heads),HEAD_UPDATE_PERIOD,TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(update_heads)),HEAD_UPDATE_PERIOD,TIMER_UNIQUE)
|
||||
|
||||
|
||||
/datum/team/revolution/roundend_report()
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
/datum/antagonist/wizard/get_admin_commands()
|
||||
. = ..()
|
||||
.["Send to Lair"] = CALLBACK(src,.proc/admin_send_to_lair)
|
||||
.["Send to Lair"] = CALLBACK(src, PROC_REF(admin_send_to_lair))
|
||||
|
||||
/datum/antagonist/wizard/proc/admin_send_to_lair(mob/admin)
|
||||
owner.current.forceMove(pick(GLOB.wizardstart))
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
ROTATION_ALTCLICK | ROTATION_CLOCKWISE | ROTATION_COUNTERCLOCKWISE | ROTATION_FLIP | ROTATION_VERBS,
|
||||
null,
|
||||
null,
|
||||
CALLBACK(src,.proc/after_rotation)
|
||||
CALLBACK(src, PROC_REF(after_rotation))
|
||||
)
|
||||
|
||||
/obj/item/assembly/infra/proc/after_rotation()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
threat.title = "Business proposition"
|
||||
threat.content = "This is [ship_name]. Pay up [payoff] credits or you'll walk the plank."
|
||||
threat.possible_answers = list("We'll pay.","No way.")
|
||||
threat.answer_callback = CALLBACK(src,.proc/answered)
|
||||
threat.answer_callback = CALLBACK(src, PROC_REF(answered))
|
||||
SScommunications.send_message(threat,unique = TRUE)
|
||||
|
||||
/datum/round_event/pirates/proc/answered()
|
||||
@@ -206,7 +206,7 @@
|
||||
. = ..()
|
||||
if(. == DOCKING_SUCCESS && !is_reserved_level(new_dock.z))
|
||||
engines_cooling = TRUE
|
||||
addtimer(CALLBACK(src,.proc/reset_cooldown),engine_cooldown,TIMER_UNIQUE)
|
||||
addtimer(CALLBACK(src, PROC_REF(reset_cooldown)),engine_cooldown,TIMER_UNIQUE)
|
||||
|
||||
/obj/docking_port/mobile/pirate/proc/reset_cooldown()
|
||||
engines_cooling = FALSE
|
||||
@@ -379,7 +379,7 @@
|
||||
status_report = "Sending..."
|
||||
pad.visible_message("<span class='notice'>[pad] starts charging up.</span>")
|
||||
pad.icon_state = pad.warmup_state
|
||||
sending_timer = addtimer(CALLBACK(src,.proc/send),warmup_time, TIMER_STOPPABLE)
|
||||
sending_timer = addtimer(CALLBACK(src, PROC_REF(send)),warmup_time, TIMER_STOPPABLE)
|
||||
|
||||
/obj/machinery/computer/piratepad_control/proc/stop_sending()
|
||||
if(!sending)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
/obj/item/greentext/Initialize(mapload)
|
||||
. = ..()
|
||||
GLOB.poi_list |= src
|
||||
roundend_callback = CALLBACK(src,.proc/check_winner)
|
||||
roundend_callback = CALLBACK(src, PROC_REF(check_winner))
|
||||
SSticker.OnRoundend(roundend_callback)
|
||||
|
||||
/obj/item/greentext/equipped(mob/living/user as mob)
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
/mob/living/simple_animal/hostile/handle_automated_movement()
|
||||
. = ..()
|
||||
if(dodging && target && in_melee && isturf(loc) && isturf(target.loc))
|
||||
var/datum/cb = CALLBACK(src,.proc/sidestep)
|
||||
var/datum/cb = CALLBACK(src, PROC_REF(sidestep))
|
||||
if(sidestep_per_cycle > 1) //For more than one just spread them equally - this could changed to some sensible distribution later
|
||||
var/sidestep_delay = SSnpcpool.wait / sidestep_per_cycle
|
||||
for(var/i in 1 to sidestep_per_cycle)
|
||||
|
||||
@@ -180,7 +180,7 @@ GLOBAL_LIST_INIT(food_reagents, build_reagents_to_food()) //reagentid = related
|
||||
if(SSpersistence.initialized)
|
||||
UpdateInfo()
|
||||
else
|
||||
SSticker.OnRoundstart(CALLBACK(src,.proc/UpdateInfo))
|
||||
SSticker.OnRoundstart(CALLBACK(src, PROC_REF(UpdateInfo)))
|
||||
|
||||
/obj/item/paper/secretrecipe/proc/UpdateInfo()
|
||||
var/datum/chemical_reaction/recipe = get_chemical_reaction(recipe_id)
|
||||
|
||||
Reference in New Issue
Block a user