Removes a lot of redefined procs (#26186)

* aaaaaaaaaaaaaaa

* Forgor

* Adds missing /proc/

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-07-30 15:19:32 +02:00
committed by GitHub
parent cbeedfca9f
commit b497e4c925
76 changed files with 154 additions and 450 deletions
+2 -8
View File
@@ -13,12 +13,6 @@
var/obj/item/assembly/a_left = null
var/obj/item/assembly/a_right = null
/obj/item/assembly_holder/proc/attach(obj/item/D, obj/item/D2, mob/user)
return
/obj/item/assembly_holder/proc/process_activation(obj/item/D)
return
/obj/item/assembly_holder/IsAssemblyHolder()
return TRUE
@@ -29,7 +23,7 @@
a_right.holder = null
return ..()
/obj/item/assembly_holder/attach(obj/item/D, obj/item/D2, mob/user)
/obj/item/assembly_holder/proc/attach(obj/item/D, obj/item/D2, mob/user)
if(!D || !D2)
return FALSE
if(!isassembly(D) || !isassembly(D2))
@@ -191,7 +185,7 @@
qdel(src)
/obj/item/assembly_holder/process_activation(obj/D, normal = TRUE, special = TRUE)
/obj/item/assembly_holder/proc/process_activation(obj/D, normal = TRUE, special = TRUE)
if(!D)
return FALSE
if(normal && a_right && a_left)
-4
View File
@@ -59,10 +59,6 @@
..()
ADD_TRAIT(user, TRAIT_CAN_VIEW_HEALTH, "HEALTH[UID()]")
/obj/item/gps/dropped(mob/user, silent)
REMOVE_TRAIT(user, TRAIT_CAN_VIEW_HEALTH, "HEALTH[UID()]")
return ..()
/obj/item/assembly/health/proc/toggle_scan()
if(!secured)
return FALSE
@@ -216,6 +216,9 @@
if(!building)
first_run()
if(!master_is_operating())
elect_master()
/obj/machinery/alarm/Destroy()
SStgui.close_uis(wires)
GLOB.air_alarms -= src
@@ -231,11 +234,6 @@
apply_preset(AALARM_PRESET_HUMAN) // Don't cycle.
GLOB.air_alarm_repository.update_cache(src)
/obj/machinery/alarm/Initialize(mapload)
. = ..()
if(!master_is_operating())
elect_master()
/obj/machinery/alarm/proc/master_is_operating()
if(!alarm_area)
alarm_area = get_area(src)
@@ -13,7 +13,7 @@
var/id = null
/obj/machinery/atmospherics/binary/volume_pump/can_be_pulled(user, grab_state, force, show_message)
/obj/machinery/atmospherics/binary/passive_gate/can_be_pulled(user, grab_state, force, show_message)
return FALSE
/obj/machinery/atmospherics/binary/passive_gate/CtrlClick(mob/living/user)
@@ -15,9 +15,6 @@
/obj/machinery/atmospherics/binary/valve/examine(mob/user)
. = ..()
. += "It is currently [open ? "open" : "closed"]."
/obj/machinery/atmospherics/binary/valve/examine(mob/user)
. = ..()
. += "<span class='notice'>Click this to turn the valve. If red, the pipes on each end are separated. Otherwise, they are connected.</span>"
/obj/machinery/atmospherics/binary/valve/open
@@ -43,6 +43,10 @@
/obj/machinery/atmospherics/unary/thermomachine/examine(mob/user)
. = ..()
. += "<span class='notice'>Cools or heats the gas of the connected pipenet, uses a large amount of electricity while activated.</span>"
. += "<span class='notice'>The thermostat is set to [target_temperature]K ([(T0C - target_temperature) * -1]C).</span>"
if(in_range(user, src) || isobserver(user))
. += "<span class='notice'>The status display reads: Efficiency <b>[(heat_capacity / 5000) * 100]%</b>.</span>"
. += "<span class='notice'>Temperature range <b>[min_temperature]K - [max_temperature]K ([(T0C - min_temperature) * -1]C - [(T0C-max_temperature) * -1]C)</b>.</span>"
/obj/machinery/atmospherics/unary/thermomachine/proc/swap_function()
cooling = !cooling
@@ -84,14 +88,6 @@
else
icon_state = icon_state_off
/obj/machinery/atmospherics/unary/thermomachine/examine(mob/user)
. = ..()
. += "<span class='notice'>The thermostat is set to [target_temperature]K ([(T0C - target_temperature) * -1]C).</span>"
if(in_range(user, src) || isobserver(user))
. += "<span class='notice'>The status display reads: Efficiency <b>[(heat_capacity / 5000) * 100]%</b>.</span>"
. += "<span class='notice'>Temperature range <b>[min_temperature]K - [max_temperature]K ([(T0C - min_temperature) * -1]C - [(T0C-max_temperature) * -1]C)</b>.</span>"
/obj/machinery/atmospherics/unary/thermomachine/process_atmos()
if(!on)
return
@@ -40,6 +40,8 @@
/obj/machinery/atmospherics/unary/vent_pump/examine(mob/user)
. = ..()
. += "<span class='notice'>This pumps the contents of the attached pipenet out into the atmosphere. Can be controlled from an Air Alarm.</span>"
if(welded)
. += "It seems welded shut."
/obj/machinery/atmospherics/unary/vent_pump/on
on = TRUE
@@ -243,11 +245,6 @@
continue
W.forceMove(get_turf(src))
/obj/machinery/atmospherics/unary/vent_pump/examine(mob/user)
. = ..()
if(welded)
. += "It seems welded shut."
/obj/machinery/atmospherics/unary/vent_pump/power_change()
if(!..())
return
@@ -44,6 +44,8 @@
/obj/machinery/atmospherics/unary/vent_scrubber/examine(mob/user)
. = ..()
. += "<span class='notice'>This filters the atmosphere of harmful gas. Filtered gas goes straight into the connected pipenet. Controlled by an Air Alarm.</span>"
if(welded)
. += "It seems welded shut."
/obj/machinery/atmospherics/unary/vent_scrubber/Destroy()
if(initial_loc)
@@ -51,11 +53,6 @@
return ..()
/obj/machinery/atmospherics/unary/vent_scrubber/examine(mob/user)
. = ..()
if(welded)
. += "It seems welded shut."
/obj/machinery/atmospherics/unary/vent_scrubber/update_overlays()
. = ..()
plane = FLOOR_PLANE
-14
View File
@@ -227,17 +227,3 @@
/// The current fullscreen state for /client/toggle_fullscreen()
var/fullscreen = FALSE
/client/vv_edit_var(var_name, var_value)
switch(var_name)
// I know we will never be in a world where admins are editing client vars to let people bypass TOS
// But guess what, if I have the ability to overengineer something, I am going to do it
if("tos_consent")
return FALSE
// Dont fuck with this
if("cui_entries")
return FALSE
// or this
if("jbh")
return FALSE
return ..()
+4 -4
View File
@@ -47,6 +47,7 @@
/obj/item/clothing/head/helmet/space/hardsuit/Destroy()
STOP_PROCESSING(SSobj, src)
QDEL_NULL(soundloop)
suit = null
return ..()
/obj/item/clothing/head/helmet/space/hardsuit/attack_self(mob/user)
@@ -181,10 +182,6 @@
QDEL_NULL(jetpack)
return ..()
/obj/item/clothing/head/helmet/space/hardsuit/Destroy()
suit = null
return ..()
/obj/item/clothing/suit/space/hardsuit/proc/MakeHelmet()
if(!helmettype)
return
@@ -230,6 +227,8 @@
/obj/item/clothing/suit/space/hardsuit/equipped(mob/user, slot)
..()
if(helmettype && slot != SLOT_HUD_OUTER_SUIT)
RemoveHelmet()
if(jetpack)
if(slot == SLOT_HUD_OUTER_SUIT)
for(var/X in jetpack.actions)
@@ -238,6 +237,7 @@
/obj/item/clothing/suit/space/hardsuit/dropped(mob/user)
..()
RemoveHelmet()
if(jetpack)
for(var/X in jetpack.actions)
var/datum/action/A = X
-11
View File
@@ -5,13 +5,6 @@
..()
ToggleHelmet()
/obj/item/clothing/suit/space/hardsuit/equipped(mob/user, slot)
if(!helmettype)
return
if(slot != SLOT_HUD_OUTER_SUIT)
RemoveHelmet()
..()
/obj/item/clothing/suit/space/hardsuit/proc/RemoveHelmet()
if(!helmet)
return
@@ -28,10 +21,6 @@
else
helmet.forceMove(src)
/obj/item/clothing/suit/space/hardsuit/dropped()
..()
RemoveHelmet()
/obj/item/clothing/suit/space/hardsuit/proc/ToggleHelmet()
var/mob/living/carbon/human/H = src.loc
if(!helmettype)
+2 -5
View File
@@ -204,6 +204,8 @@
. = ..()
var/datum/action/innate/communicate_overmind_blob/overmind_chat = new
overmind_chat.Grant(src)
if(name == "blobbernaut")
name = "blobbernaut ([rand(1, 1000)])"
/datum/action/innate/communicate_overmind_blob
name = "Speak with the overmind"
@@ -228,11 +230,6 @@
adjustFireLoss(0.2)
..()
/mob/living/simple_animal/hostile/blob/blobbernaut/Initialize(mapload)
. = ..()
if(name == "blobbernaut")
name = "blobbernaut ([rand(1, 1000)])"
/mob/living/simple_animal/hostile/blob/blobbernaut/death(gibbed)
// Only execute the below if we successfully died
. = ..()
-27
View File
@@ -48,16 +48,6 @@
/atom/proc/extinguish_light(force = FALSE)
return
// If we have opacity, make sure to tell (potentially) affected light sources.
/atom/movable/Destroy()
var/turf/T = loc
. = ..()
if(opacity && istype(T))
var/old_has_opaque_atom = T.has_opaque_atom
T.recalc_atom_opacity()
if(old_has_opaque_atom != T.has_opaque_atom)
T.reconsider_lights()
// Should always be used to change the opacity of an atom.
// It notifies (potentially) affected light sources so they can update (if needed).
/atom/proc/set_opacity(new_opacity)
@@ -78,23 +68,6 @@
if(old_has_opaque_atom != T.has_opaque_atom)
T.reconsider_lights()
/atom/vv_edit_var(var_name, var_value)
switch(var_name)
if("light_range")
set_light(l_range=var_value)
return TRUE
if("light_power")
set_light(l_power=var_value)
return TRUE
if("light_color")
set_light(l_color=var_value)
return TRUE
return ..()
/atom/proc/flash_lighting_fx(_range = FLASH_LIGHT_RANGE, _power = FLASH_LIGHT_POWER, _color = LIGHT_COLOR_WHITE, _duration = FLASH_LIGHT_DURATION, _reset_lighting = TRUE)
return
-8
View File
@@ -27,8 +27,6 @@
component_parts += new /obj/item/stack/sheet/glass(null)
RefreshParts()
/obj/machinery/mineral/equipment_vendor/Initialize(mapload)
. = ..()
prize_list = list()
prize_list["Gear"] = list(
EQUIPMENT("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 800),
@@ -313,8 +311,6 @@
component_parts += new /obj/item/stack/sheet/glass(null)
RefreshParts()
/obj/machinery/mineral/equipment_vendor/golem/Initialize()
. = ..()
desc += "\nIt seems a few selections have been added."
prize_list["Extra"] += list(
EQUIPMENT("Extra ID", /obj/item/card/id/golem, 250),
@@ -344,8 +340,6 @@
component_parts += new /obj/item/stack/sheet/glass(null)
RefreshParts()
/obj/machinery/mineral/equipment_vendor/labor/Initialize()
. = ..()
prize_list = list()
prize_list["Scum"] += list(
EQUIPMENT("Trauma Kit", /obj/item/stack/medical/bruise_pack/advanced, 150),
@@ -388,8 +382,6 @@
component_parts += new /obj/item/stack/sheet/glass(null)
RefreshParts()
/obj/machinery/mineral/equipment_vendor/explorer/Initialize(mapload)
. = ..()
prize_list = list()
prize_list["Equipment"] = list(
EQUIPMENT("Advanced Scanner", /obj/item/t_scanner/adv_mining_scanner, 800),
@@ -164,13 +164,6 @@
return threatcount
/mob/living/carbon/alien/death(gibbed)
. = ..()
if(!.)
return
deathrattle()
/mob/living/carbon/alien/proc/deathrattle()
var/alien_message = deathrattle_message()
for(var/mob/living/carbon/alien/M in GLOB.player_list)
@@ -72,3 +72,5 @@
playsound(loc, death_sound, 80, TRUE, 1)
visible_message("<B>[src]</B> [death_message]")
update_icons()
deathrattle()
@@ -4,28 +4,6 @@
. += GLOB.configuration.movement.human_delay
. += dna.species.movement_delay(src)
/mob/living/carbon/human/Process_Spacemove(movement_dir = 0)
if(..())
return TRUE
//Do we have a working jetpack?
var/obj/item/tank/jetpack/thrust
if(istype(back, /obj/item/tank/jetpack))
thrust = back
else if(istype(wear_suit, /obj/item/clothing/suit/space/hardsuit))
var/obj/item/clothing/suit/space/hardsuit/C = wear_suit
thrust = C.jetpack
else if(ismodcontrol(back))
var/obj/item/mod/control/C = back
thrust = locate(/obj/item/mod/module/jetpack) in C
if(thrust)
if((movement_dir || thrust.stabilizers) && thrust.allow_thrust(0.01, src))
return TRUE
if(dna.species.spec_Process_Spacemove(src))
return TRUE
return FALSE
/mob/living/carbon/human/mob_has_gravity()
. = ..()
if(!.)
+4 -2
View File
@@ -1086,8 +1086,6 @@
GLOB.dead_mob_list += src
. = ..()
switch(var_name)
if("maxHealth")
updatehealth()
if("resize")
update_transform()
if("lighting_alpha")
@@ -1095,6 +1093,10 @@
if("advanced_bullet_dodge_chance")
UnregisterSignal(src, COMSIG_ATOM_PREHIT)
RegisterSignal(src, COMSIG_ATOM_PREHIT, PROC_REF(advanced_bullet_dodge))
if("maxHealth")
updatehealth("var edit")
if("resize")
update_transform()
/mob/living/throw_at(atom/target, range, speed, mob/thrower, spin, diagonals_first, datum/callback/callback, force, dodgeable, block_movement)
stop_pulling()
@@ -89,11 +89,3 @@
/mob/living/proc/update_stamina()
return
/mob/living/vv_edit_var(var_name, var_value)
. = ..()
switch(var_name)
if("maxHealth")
updatehealth("var edit")
if("resize")
update_transform()
@@ -68,6 +68,8 @@
/mob/living/silicon/robot/set_zeroth_law(law, law_borg)
if(mmi && mmi.syndiemmi)
return FALSE
if(tracking_entities)
to_chat(src, "<span class='warning'>Internal camera is currently being accessed.</span>")
..()
/mob/living/silicon/robot/clear_zeroth_law()
@@ -136,8 +136,3 @@
if(cham_proj)
cham_proj.disrupt(src)
..()
/mob/living/silicon/robot/syndicate/saboteur/attackby()
if(cham_proj)
cham_proj.disrupt(src)
..()
@@ -46,3 +46,5 @@
if(. && !gibbed)
if(death_sound)
playsound(get_turf(src), death_sound, 200, 1)
if(gibbed)
drop_hat()
@@ -14,11 +14,6 @@
if(!isnull(usr) && law)
log_and_message_admins("has given [src] the zeroth laws: [law]/[law_borg ? law_borg : "N/A"]")
/mob/living/silicon/robot/set_zeroth_law(law, law_borg)
..()
if(tracking_entities)
to_chat(src, "<span class='warning'>Internal camera is currently being accessed.</span>")
/mob/living/silicon/proc/add_ion_law(law)
throw_alert("newlaw", /atom/movable/screen/alert/newlaw)
laws_sanity_check()
@@ -589,11 +589,6 @@
hat_alpha = null
hat_color = null
/mob/living/silicon/death(gibbed)
if(gibbed)
drop_hat()
. = ..()
/mob/living/silicon/examine(mob/user)
. = ..()
if(silicon_hat)
@@ -202,6 +202,24 @@
set_weapon()
/mob/living/simple_animal/bot/ed209/bullet_act(obj/item/projectile/Proj)
if(!disabled)
var/lasertag_check = FALSE
if(lasercolor == "b")
if(istype(Proj, /obj/item/projectile/beam/lasertag/redtag))
lasertag_check = TRUE
else if(lasercolor == "r")
if(istype(Proj, /obj/item/projectile/beam/lasertag/bluetag))
lasertag_check = TRUE
if(lasertag_check)
icon_state = "[lasercolor]ed2090"
disabled = TRUE
walk_to(src, 0)
target = null
addtimer(CALLBACK(src, PROC_REF(unset_disabled)), 10 SECONDS)
return TRUE
if(istype(Proj ,/obj/item/projectile/beam)||istype(Proj,/obj/item/projectile/bullet))
if((Proj.damage_type == BURN) || (Proj.damage_type == BRUTE))
if(!Proj.nodamage && Proj.damage < src.health)
@@ -498,32 +516,6 @@
target = toarrest
mode = BOT_HUNT
/mob/living/simple_animal/bot/ed209/bullet_act(obj/item/projectile/Proj)
if(!disabled)
var/lasertag_check = 0
if(lasercolor == "b")
if(istype(Proj, /obj/item/projectile/beam/lasertag/redtag))
lasertag_check++
else if(lasercolor == "r")
if(istype(Proj, /obj/item/projectile/beam/lasertag/bluetag))
lasertag_check++
if(lasertag_check)
icon_state = "[lasercolor]ed2090"
disabled = TRUE
walk_to(src, 0)
target = null
addtimer(CALLBACK(src, PROC_REF(unset_disabled)), 10 SECONDS)
return TRUE
else
..(Proj)
else
..(Proj)
/mob/living/simple_animal/bot/ed209/proc/unset_disabled()
disabled = FALSE
icon_state = "[lasercolor]ed2091"
@@ -207,18 +207,7 @@
//this section is blocking attack
/mob/living/simple_animal/bot/secbot/griefsky/bullet_act(obj/item/projectile/P) //so uncivilized
retaliate(P.firer)
if((icon_state == spin_icon) && (prob(block_chance_ranged))) //only when the eswords are on
visible_message("[src] deflects [P] with its energy swords!")
playsound(loc, 'sound/weapons/blade1.ogg', 50, TRUE, 0)
else
..()
/mob/living/simple_animal/bot/secbot/griefsky/proc/special_retaliate_after_attack(mob/user) //allows special actions to take place after being attacked.
return
/mob/living/simple_animal/bot/secbot/griefsky/special_retaliate_after_attack(mob/user)
/mob/living/simple_animal/bot/secbot/griefsky/proc/special_retaliate_after_attack(mob/user)
if(icon_state != spin_icon)
return
if(prob(block_chance_melee))
@@ -120,7 +120,7 @@
name = "Corpse of a Space Wizard"
outfit = /datum/outfit/wizardcorpse
/obj/effect/mob_spawn/human/corpse/clown/officer/Initialize(mapload)
/obj/effect/mob_spawn/human/corpse/wizard/officer/Initialize(mapload)
mob_name = "[pick(GLOB.wizard_first)], [pick(GLOB.wizard_second)]"
. = ..()
@@ -1,21 +1,3 @@
// This is important
/mob/living/attack_ghost(mob/dead/observer/user)
if(prob(80)) return ..()
var/found = 0
for(var/mob/living/simple_animal/hostile/retaliate/R in range(4,src))
if(R.faction != "undead" || R == src || prob(50)) continue
found = 1
R.enemies ^= src
if(src in R.enemies)
R.visible_message("[R]'s head swivels eerily towards [src].")
else
R.visible_message("[R] stares at [src] for a minute before turning away.")
if(R.target == src)
R.target = null
if(!found)
return ..()
/mob/living/simple_animal/hostile/retaliate/ghost
icon = 'icons/mob/mob.dmi'
name = "ghost"
@@ -30,6 +30,8 @@
/obj/structure/spider/spiderling/terror_spiderling/Destroy()
GLOB.ts_spiderling_list -= src
for(var/obj/structure/spider/spiderling/terror_spiderling/S in view(7, src))
S.immediate_ventcrawl = TRUE
return ..()
/obj/structure/spider/spiderling/terror_spiderling/Bump(obj/O)
@@ -37,12 +39,6 @@
forceMove(O.loc)
. = ..()
/obj/structure/spider/spiderling/terror_spiderling/Destroy()
for(var/obj/structure/spider/spiderling/terror_spiderling/S in view(7, src))
S.immediate_ventcrawl = TRUE
return ..()
/obj/structure/spider/spiderling/terror_spiderling/proc/score_surroundings(atom/A = src)
var/safety_score = 0
var/turf/T = get_turf(A)
@@ -386,6 +386,14 @@
/mob/living/simple_animal/revive()
..()
density = initial(density)
health = maxHealth
icon = initial(icon)
icon_state = icon_living
density = initial(density)
flying = initial(flying)
if(collar_type)
collar_type = "[initial(collar_type)]"
regenerate_icons()
/mob/living/simple_animal/death(gibbed)
// Only execute the below if we successfully died
@@ -465,17 +473,6 @@
if(on_fire)
overlays += image("icon"='icons/mob/OnFire.dmi', "icon_state"="Generic_mob_burning")
/mob/living/simple_animal/revive()
..()
health = maxHealth
icon = initial(icon)
icon_state = icon_living
density = initial(density)
flying = initial(flying)
if(collar_type)
collar_type = "[initial(collar_type)]"
regenerate_icons()
/mob/living/simple_animal/proc/make_babies() // <3 <3 <3
if(current_offspring >= max_offspring)
return FALSE
@@ -620,12 +617,6 @@
if(pulledby || shouldwakeup)
toggle_ai(AI_ON)
/mob/living/simple_animal/adjustHealth(amount, updating_health = TRUE)
. = ..()
if(!ckey && stat == CONSCIOUS)//Not unconscious
if(AIStatus == AI_IDLE)
toggle_ai(AI_ON)
/mob/living/simple_animal/onTransitZ(old_z, new_z)
..()
if(AIStatus == AI_Z_OFF)
@@ -11,6 +11,9 @@
. = STATUS_UPDATE_HEALTH
if(updating_health)
updatehealth()
if(!ckey && stat == CONSCIOUS)//Not unconscious
if(AIStatus == AI_IDLE)
toggle_ai(AI_ON)
/mob/living/simple_animal/adjustBruteLoss(amount, updating_health = TRUE)
if(damage_coeff[BRUTE])
-4
View File
@@ -1031,10 +1031,6 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
qdel(S)
mob_spell_list -= S
//override to avoid rotating pixel_xy on mobs
/mob/shuttleRotate(rotation)
dir = angle2dir(rotation+dir2angle(dir))
/mob/proc/handle_ventcrawl()
return // Only living mobs can ventcrawl
+1 -4
View File
@@ -253,6 +253,7 @@
if(!wearer || old_loc != wearer || loc == wearer)
return
clean_up()
bag?.update_viewers()
/obj/item/mod/control/MouseDrop(atom/over_object)
if(iscarbon(usr))
@@ -775,7 +776,3 @@
. = ..()
for(var/obj/item/mod/module/module as anything in modules)
module.extinguish_light(force)
/obj/item/mod/control/Moved(atom/oldloc, dir, forced = FALSE)
. = ..()
bag?.update_viewers()
+7 -10
View File
@@ -19,6 +19,13 @@
/obj/item/mod/module/storage/Initialize()
. = ..()
ADD_TRAIT(src, TRAIT_ADJACENCY_TRANSPARENT, ROUNDSTART_TRAIT)
var/obj/item/storage/backpack/modstorage/S = new(src)
bag = S
bag.max_w_class = max_w_class
bag.max_combined_w_class = max_combined_w_class
bag.storage_slots = max_items
bag.source = src
bag.forceMove(src)
/obj/item/mod/module/storage/serialize()
var/list/data = ..()
@@ -31,16 +38,6 @@
bag = list_to_object(data["bag"], src)
bag.source = src
/obj/item/mod/module/storage/Initialize(mapload)
. = ..()
var/obj/item/storage/backpack/modstorage/S = new(src)
bag = S
bag.max_w_class = max_w_class
bag.max_combined_w_class = max_combined_w_class
bag.storage_slots = max_items
bag.source = src
bag.forceMove(src)
/obj/item/mod/module/storage/Destroy()
QDEL_NULL(bag)
return ..()
+7 -10
View File
@@ -312,16 +312,6 @@
/obj/item/mod/module/ash_accretion/Initialize(mapload)
. = ..()
armor_mod_2 = new armor_mod_1
/obj/item/mod/module/ash_accretion/Destroy()
QDEL_NULL(armor_mod_2)
return ..()
/obj/item/mod/armor/mod_ash_accretion
armor = list(MELEE = 4, BULLET = 1, LASER = 2, ENERGY = 1, BOMB = 4, RAD = 0, FIRE = 0, ACID = 0)
/obj/item/mod/module/ash_accretion/Initialize(mapload)
. = ..()
if(!accretion_turfs)
accretion_turfs = typecacheof(list(
/turf/simulated/floor/plating/asteroid
@@ -333,6 +323,13 @@
/turf/simulated/floor/indestructible/necropolis
))
/obj/item/mod/module/ash_accretion/Destroy()
QDEL_NULL(armor_mod_2)
return ..()
/obj/item/mod/armor/mod_ash_accretion
armor = list(MELEE = 4, BULLET = 1, LASER = 2, ENERGY = 1, BOMB = 4, RAD = 0, FIRE = 0, ACID = 0)
/obj/item/mod/module/ash_accretion/on_suit_activation()
RegisterSignal(mod.wearer, COMSIG_MOVABLE_MOVED, PROC_REF(on_move))
+2 -5
View File
@@ -494,6 +494,8 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
/obj/item/camera/digital/examine(mob/user)
. = ..()
. += "<span class='notice'>A small screen shows that there are currently [length(saved_pictures)] pictures stored.</span>"
. += "<span class='info'><b>Alt-Shift-Click</b> [src] to print a specific photo.</span>"
. += "<span class='info'><b>Ctrl-Shift-Click</b> [src] to delete a specific photo.</span>"
/obj/item/camera/digital/afterattack(atom/target, mob/user, flag)
if(!on || !pictures_left || ismob(target.loc))
@@ -530,11 +532,6 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
var/datum/picture/P = createpicture(target, user, turfs, mobs, flag)
saved_pictures += P
/obj/item/camera/digital/examine(mob/user)
. = ..()
. += "<span class='info'><b>Alt-Shift-Click</b> [src] to print a specific photo.</span>"
. += "<span class='info'><b>Ctrl-Shift-Click</b> [src] to delete a specific photo.</span>"
/obj/item/camera/digital/AltShiftClick(mob/user)
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
return
@@ -234,10 +234,6 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
var/strength = 0
var/desc_holder = null
/obj/structure/particle_accelerator/examine(mob/user)
. = ..()
. += "<span class='info'><b>Alt-Click</b> to rotate it.</span>"
/obj/machinery/particle_accelerator/AltClick(mob/user)
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
return
@@ -40,10 +40,6 @@
if(powernet)
disconnect_from_network()
/obj/machinery/power/teg/Initialize()
. = ..()
connect()
/obj/machinery/power/teg/proc/connect()
connect_to_network()
@@ -11,6 +11,7 @@
/obj/item/gun/projectile/revolver/examine(mob/user)
. = ..()
. += "[get_ammo(0, 0)] of those are live rounds."
. += "<span class='notice'>You can <b>Alt-Click</b> [src] to spin it's barrel.</span>"
/obj/item/gun/projectile/revolver/chamber_round(spin = 1)
@@ -80,10 +81,6 @@
boolets += magazine.ammo_count(countempties)
return boolets
/obj/item/gun/projectile/revolver/examine(mob/user)
. = ..()
. += "[get_ammo(0,0)] of those are live rounds."
/obj/item/gun/projectile/revolver/fake
/obj/item/gun/projectile/revolver/fake/examine(mob/user)
@@ -21,6 +21,8 @@
/obj/item/gun/projectile/shotgun/examine(mob/user)
. = ..()
if(chambered)
. += "A [chambered.BB ? "live" : "spent"] one is in the chamber."
. += get_shotgun_info()
/obj/item/gun/projectile/shotgun/proc/get_shotgun_info()
@@ -72,11 +74,6 @@
var/obj/item/ammo_casing/AC = magazine.get_round() //load next casing.
chambered = AC
/obj/item/gun/projectile/shotgun/examine(mob/user)
. = ..()
if(chambered)
. += "A [chambered.BB ? "live" : "spent"] one is in the chamber."
/obj/item/gun/projectile/shotgun/lethal
mag_type = /obj/item/ammo_box/magazine/internal/shot/lethal
-5
View File
@@ -636,11 +636,6 @@
else
return ..(mover, target, height)
/obj/machinery/disposal/singularity_pull(S, current_size)
if(current_size >= STAGE_FIVE)
qdel(src)
/obj/machinery/disposal/get_remote_view_fullscreens(mob/user)
if(user.stat == DEAD || !(user.sight & (SEEOBJS|SEEMOBS)))
user.overlay_fullscreen("remote_view", /atom/movable/screen/fullscreen/stretch/impaired, 2)
@@ -34,9 +34,6 @@
/obj/effect/clockwork/overlay/singularity_act()
return
/obj/effect/clockwork/overlay/singularity_pull()
return
/obj/effect/clockwork/overlay/singularity_pull(S, current_size)
return
-2
View File
@@ -27,8 +27,6 @@
for(var/obj/machinery/door/airlock/D in orange(1, src))
INVOKE_ASYNC(D, PROC_REF(close), 0, 1)
/obj/machinery/door/airlock/onShuttleMove()
. = ..()
if(id_tag == "s_docking_airlock")
INVOKE_ASYNC(src, PROC_REF(lock))
-4
View File
@@ -206,10 +206,6 @@
icon = 'icons/obj/wizard.dmi'
icon_state = "scroll"
/obj/item/organ/internal/brain/Destroy() //copypasted from MMIs.
QDEL_NULL(brainmob)
return ..()
/obj/item/organ/internal/brain/cluwne
/obj/item/organ/internal/brain/cluwne/insert(mob/living/target, special = 0, make_cluwne = 1)
@@ -55,10 +55,6 @@
var/obj/item/organ/internal/eyes/eyes = owner.get_int_organ(/obj/item/organ/internal/eyes)//owner.internal_bodyparts_by_name["eyes"]
if(eyes) eyes.update_colour()
/obj/item/organ/external/head/remove(mob/living/user, ignore_children)
get_icon()
. = ..()
/obj/item/organ/external/proc/get_icon(skeletal)
// Kasparrov, you monster
if(force_icon)
+11 -20
View File
@@ -133,6 +133,17 @@
/obj/item/organ/internal/emp_act(severity)
if(!is_robotic() || emp_proof)
return
var/we_done = FALSE
for(var/organ_tag in organ_datums)
var/datum/organ/borgan = organ_datums[organ_tag]
if(borgan.on_successful_emp())
we_done = TRUE
if(we_done)
return
// No EMP handling was done, lets just give em damage
switch(severity)
if(1)
receive_damage(20, 1)
@@ -368,26 +379,6 @@
head_organ.facial_colour = "#D8C078"
H.update_fhair()
/obj/item/organ/internal/emp_act(severity)
if(!is_robotic() || emp_proof)
return
var/we_done = FALSE
for(var/organ_tag in organ_datums)
var/datum/organ/borgan = organ_datums[organ_tag]
if(borgan.on_successful_emp())
we_done = TRUE
if(we_done)
return
// No EMP handling was done, lets just give em damage
switch(severity)
if(1)
receive_damage(20, 1)
if(2)
receive_damage(7, 1)
/obj/item/organ/internal/handle_germs()
..()
if(germ_level >= INFECTION_LEVEL_TWO)
@@ -283,6 +283,7 @@
owner.update_fhair()
owner.update_head_accessory()
owner.update_markings()
get_icon()
. = ..()
/obj/item/organ/external/head/replaced()
+1
View File
@@ -54,6 +54,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
/obj/item/gps/dropped(mob/user, silent)
REMOVE_TRAIT(user, TRAIT_HAS_GPS, "GPS[UID()]")
REMOVE_TRAIT(user, TRAIT_CAN_VIEW_HEALTH, "HEALTH[UID()]")
return ..()
/obj/item/gps/emp_act(severity)
@@ -185,12 +185,6 @@
var/dir_to_move = get_dir(trailer.loc, old_loc)
step(trailer, dir_to_move)
/obj/tgvehicle/generate_action_type(actiontype)
var/datum/action/vehicle/A = ..()
. = A
if(istype(A))
A.vehicle_ridden_target = src
/obj/tgvehicle/post_unbuckle_mob(mob/living/M)
remove_occupant(M)
return ..()