mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -76,10 +76,10 @@
|
||||
"Wildlife Simulation" = new/datum/holodeck_program(/area/holodeck/source_wildlife, list())
|
||||
)
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/attack_ai(var/mob/user as mob)
|
||||
/obj/machinery/computer/HolodeckControl/attack_ai(mob/user as mob)
|
||||
return src.attack_hand(user)
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/attack_hand(var/mob/user as mob)
|
||||
/obj/machinery/computer/HolodeckControl/attack_hand(mob/user as mob)
|
||||
if(..())
|
||||
return
|
||||
tgui_interact(user)
|
||||
@@ -157,7 +157,7 @@
|
||||
|
||||
add_fingerprint(ui.user)
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/emag_act(var/remaining_charges, var/mob/user as mob)
|
||||
/obj/machinery/computer/HolodeckControl/emag_act(remaining_charges, mob/user as mob)
|
||||
playsound(src, 'sound/effects/sparks4.ogg', 75, 1)
|
||||
last_to_emag = user //emag again to change the owner
|
||||
if (!emagged)
|
||||
@@ -240,7 +240,7 @@
|
||||
T.ex_act(3)
|
||||
T.hotspot_expose(1000,500,1)
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/proc/derez(var/obj/obj , var/silent = 1)
|
||||
/obj/machinery/computer/HolodeckControl/proc/derez(obj/obj , silent = 1)
|
||||
holographic_objs.Remove(obj)
|
||||
|
||||
if(obj == null)
|
||||
@@ -256,7 +256,7 @@
|
||||
visible_message("The [oldobj.name] fades away!")
|
||||
qdel(obj)
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/proc/checkInteg(var/area/A)
|
||||
/obj/machinery/computer/HolodeckControl/proc/checkInteg(area/A)
|
||||
for(var/turf/T in A)
|
||||
if(istype(T, /turf/space))
|
||||
return 0
|
||||
@@ -264,7 +264,7 @@
|
||||
return 1
|
||||
|
||||
//Why is it called toggle if it doesn't toggle?
|
||||
/obj/machinery/computer/HolodeckControl/proc/togglePower(var/toggleOn = 0)
|
||||
/obj/machinery/computer/HolodeckControl/proc/togglePower(toggleOn = 0)
|
||||
if(toggleOn)
|
||||
loadProgram(default_program, 0)
|
||||
else
|
||||
@@ -277,7 +277,7 @@
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/proc/loadProgram(var/prog, var/check_delay = 1)
|
||||
/obj/machinery/computer/HolodeckControl/proc/loadProgram(prog, check_delay = 1)
|
||||
if(!prog)
|
||||
return
|
||||
|
||||
@@ -364,7 +364,7 @@
|
||||
return 1
|
||||
|
||||
|
||||
/obj/machinery/computer/HolodeckControl/proc/toggleGravity(var/area/A)
|
||||
/obj/machinery/computer/HolodeckControl/proc/toggleGravity(area/A)
|
||||
if(world.time < (last_gravity_change + 25))
|
||||
if(world.time < (last_gravity_change + 15))//To prevent super-spam clicking
|
||||
return
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
sparring_variant_type = /datum/unarmed_attack/holopugilism
|
||||
is_punch = TRUE
|
||||
|
||||
/datum/unarmed_attack/holopugilism/unarmed_override(var/mob/living/carbon/human/user,var/mob/living/carbon/human/target,var/zone)
|
||||
/datum/unarmed_attack/holopugilism/unarmed_override(mob/living/carbon/human/user,mob/living/carbon/human/target,zone)
|
||||
user.do_attack_animation(src)
|
||||
var/damage = rand(0, 9)
|
||||
if(!damage)
|
||||
@@ -234,7 +234,7 @@
|
||||
..()
|
||||
return
|
||||
|
||||
/obj/structure/window/reinforced/holowindow/shatter(var/display_message = 1)
|
||||
/obj/structure/window/reinforced/holowindow/shatter(display_message = 1)
|
||||
playsound(src, "shatter", 70, 1)
|
||||
if(display_message)
|
||||
visible_message("[src] fades away as it shatters!")
|
||||
@@ -269,7 +269,7 @@
|
||||
|
||||
return
|
||||
|
||||
/obj/machinery/door/window/holowindoor/shatter(var/display_message = 1)
|
||||
/obj/machinery/door/window/holowindoor/shatter(display_message = 1)
|
||||
src.density = FALSE
|
||||
playsound(src, "shatter", 70, 1)
|
||||
if(display_message)
|
||||
@@ -316,7 +316,7 @@
|
||||
/obj/item/holo/esword/red
|
||||
lcolor = "#FF0000"
|
||||
|
||||
/obj/item/holo/esword/handle_shield(mob/user, var/damage, atom/damage_source = null, mob/attacker = null, var/def_zone = null, var/attack_text = "the attack")
|
||||
/obj/item/holo/esword/handle_shield(mob/user, damage, atom/damage_source = null, mob/attacker = null, def_zone = null, attack_text = "the attack")
|
||||
if(active && default_parry_check(user, attacker, damage_source) && prob(50))
|
||||
user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
|
||||
|
||||
@@ -513,7 +513,7 @@
|
||||
. = ..()
|
||||
set_light(2) //hologram lighting
|
||||
|
||||
/mob/living/simple_mob/animal/space/carp/holodeck/proc/set_safety(var/safe)
|
||||
/mob/living/simple_mob/animal/space/carp/holodeck/proc/set_safety(safe)
|
||||
if (safe)
|
||||
faction = FACTION_NEUTRAL
|
||||
melee_damage_lower = 0
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
var/target
|
||||
var/list/ambience = null
|
||||
|
||||
/datum/holodeck_program/New(var/target, var/list/ambience = null)
|
||||
/datum/holodeck_program/New(target, list/ambience = null)
|
||||
src.target = target
|
||||
src.ambience = ambience
|
||||
|
||||
Reference in New Issue
Block a user