"
@@ -87,7 +87,7 @@
popup.set_content(dat)
popup.open()
-/obj/machinery/icecream_vat/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/icecream_vat/attackby(obj/item/O, mob/user, params)
if(istype(O, /obj/item/weapon/reagent_containers/food/snacks/icecream))
var/obj/item/weapon/reagent_containers/food/snacks/icecream/I = O
if(!I.ice_creamed)
@@ -110,7 +110,7 @@
else
..()
-/obj/machinery/icecream_vat/proc/make(var/mob/user, var/make_type, var/amount)
+/obj/machinery/icecream_vat/proc/make(mob/user, make_type, amount)
for(var/R in get_ingredient_list(make_type))
if(reagents.has_reagent(R, amount))
continue
diff --git a/code/modules/food&drinks/kitchen machinery/juicer.dm b/code/modules/food&drinks/kitchen machinery/juicer.dm
index 4894af742f3..e688b2ee575 100644
--- a/code/modules/food&drinks/kitchen machinery/juicer.dm
+++ b/code/modules/food&drinks/kitchen machinery/juicer.dm
@@ -35,7 +35,7 @@
return
-/obj/machinery/juicer/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/juicer/attackby(obj/item/O, mob/user, params)
if(default_unfasten_wrench(user, O))
return
if (istype(O,/obj/item/weapon/reagent_containers/glass) || \
@@ -62,17 +62,17 @@
src.updateUsrDialog()
return 0
-/obj/machinery/juicer/attack_paw(mob/user as mob)
+/obj/machinery/juicer/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/juicer/attack_ai(mob/user as mob)
+/obj/machinery/juicer/attack_ai(mob/user)
return 0
-/obj/machinery/juicer/attack_hand(mob/user as mob)
+/obj/machinery/juicer/attack_hand(mob/user)
user.set_machine(src)
interact(user)
-/obj/machinery/juicer/interact(mob/user as mob) // The microwave Menu
+/obj/machinery/juicer/interact(mob/user) // The microwave Menu
var/is_chamber_empty = 0
var/is_beaker_ready = 0
var/processing_chamber = ""
@@ -138,12 +138,12 @@
beaker = null
update_icon()
-/obj/machinery/juicer/proc/get_juice_id(var/obj/item/weapon/reagent_containers/food/snacks/grown/O)
+/obj/machinery/juicer/proc/get_juice_id(obj/item/weapon/reagent_containers/food/snacks/grown/O)
for (var/i in allowed_items)
if (istype(O, i))
return allowed_items[i]
-/obj/machinery/juicer/proc/get_juice_amount(var/obj/item/weapon/reagent_containers/food/snacks/grown/O)
+/obj/machinery/juicer/proc/get_juice_amount(obj/item/weapon/reagent_containers/food/snacks/grown/O)
if (!istype(O))
return 5
else if (O.potency == -1)
diff --git a/code/modules/food&drinks/kitchen machinery/microwave.dm b/code/modules/food&drinks/kitchen machinery/microwave.dm
index 2bfe5e836ce..ff512b49687 100644
--- a/code/modules/food&drinks/kitchen machinery/microwave.dm
+++ b/code/modules/food&drinks/kitchen machinery/microwave.dm
@@ -47,7 +47,7 @@
* Item Adding
********************/
-/obj/machinery/microwave/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/microwave/attackby(obj/item/O, mob/user, params)
if(operating)
return
if(!broken && dirty<100)
@@ -162,13 +162,13 @@
..()
updateUsrDialog()
-/obj/machinery/microwave/attack_paw(mob/user as mob)
+/obj/machinery/microwave/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/microwave/attack_ai(mob/user as mob)
+/obj/machinery/microwave/attack_ai(mob/user)
return 0
-/obj/machinery/microwave/attack_hand(mob/user as mob)
+/obj/machinery/microwave/attack_hand(mob/user)
if(..())
return
user.set_machine(src)
@@ -178,7 +178,7 @@
* Microwave Menu
********************/
-/obj/machinery/microwave/interact(mob/user as mob) // The microwave Menu
+/obj/machinery/microwave/interact(mob/user) // The microwave Menu
if(panel_open || !anchored)
return
var/dat = "
"
@@ -260,7 +260,7 @@
return
-/obj/machinery/microwave/proc/microwaving(var/seconds as num)
+/obj/machinery/microwave/proc/microwaving(seconds as num)
for (var/i=1 to seconds)
if (stat & (NOPOWER|BROKEN))
return 0
diff --git a/code/modules/food&drinks/kitchen machinery/monkeyrecycler.dm b/code/modules/food&drinks/kitchen machinery/monkeyrecycler.dm
index fc6a899f5b0..84902910ba1 100644
--- a/code/modules/food&drinks/kitchen machinery/monkeyrecycler.dm
+++ b/code/modules/food&drinks/kitchen machinery/monkeyrecycler.dm
@@ -32,7 +32,7 @@
cube_production = cubes_made
required_grind = req_grind
-/obj/machinery/monkey_recycler/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/monkey_recycler/attackby(obj/item/O, mob/user, params)
if(default_deconstruction_screwdriver(user, "grinder_open", "grinder", O))
return
@@ -77,7 +77,7 @@
user << "
The machine only accepts monkeys!"
return
-/obj/machinery/monkey_recycler/attack_hand(var/mob/user as mob)
+/obj/machinery/monkey_recycler/attack_hand(mob/user)
if (src.stat != 0) //NOPOWER etc
return
if(grinded >= required_grind)
diff --git a/code/modules/food&drinks/kitchen machinery/processor.dm b/code/modules/food&drinks/kitchen machinery/processor.dm
index 78038266d98..431dee34309 100644
--- a/code/modules/food&drinks/kitchen machinery/processor.dm
+++ b/code/modules/food&drinks/kitchen machinery/processor.dm
@@ -33,7 +33,7 @@
var/input
var/output
var/time = 40
-/datum/food_processor_process/proc/process_food(loc, what, var/obj/machinery/processor/processor)
+/datum/food_processor_process/proc/process_food(loc, what, obj/machinery/processor/processor)
if (src.output && loc && processor)
for(var/i = 0, i < processor.rating_amount, i++)
new src.output(loc)
@@ -79,7 +79,7 @@
..()
-/datum/food_processor_process/mob/slime/process_food(loc, what, var/obj/machinery/processor/processor)
+/datum/food_processor_process/mob/slime/process_food(loc, what, obj/machinery/processor/processor)
var/mob/living/simple_animal/slime/S = what
var/C = S.cores
if(S.stat != DEAD)
@@ -126,7 +126,7 @@
/datum/food_processor_process/mob/monkey/input = /mob/living/carbon/monkey
/datum/food_processor_process/mob/monkey/output = null
-/obj/machinery/processor/proc/select_recipe(var/X)
+/obj/machinery/processor/proc/select_recipe(X)
for (var/Type in typesof(/datum/food_processor_process) - /datum/food_processor_process - /datum/food_processor_process/mob)
var/datum/food_processor_process/P = new Type()
if (!istype(X, P.input))
@@ -134,7 +134,7 @@
return P
return 0
-/obj/machinery/processor/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/processor/attackby(obj/item/O, mob/user, params)
if(src.processing)
user << "
The processor is in the process of processing!"
return 1
@@ -169,7 +169,7 @@
what:loc = src
return
-/obj/machinery/processor/attack_hand(var/mob/user as mob)
+/obj/machinery/processor/attack_hand(mob/user)
if (src.stat != 0) //NOPOWER etc
return
if(src.processing)
diff --git a/code/modules/food&drinks/kitchen machinery/smartfridge.dm b/code/modules/food&drinks/kitchen machinery/smartfridge.dm
index 9365a4e9703..1e83c706d99 100644
--- a/code/modules/food&drinks/kitchen machinery/smartfridge.dm
+++ b/code/modules/food&drinks/kitchen machinery/smartfridge.dm
@@ -54,7 +54,7 @@
* Item Adding
********************/
-/obj/machinery/smartfridge/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/smartfridge/attackby(obj/item/O, mob/user, params)
if(default_deconstruction_screwdriver(user, "smartfridge_open", "smartfridge", O))
return
@@ -118,12 +118,12 @@
-/obj/machinery/smartfridge/proc/accept_check(var/obj/item/O as obj)
+/obj/machinery/smartfridge/proc/accept_check(obj/item/O)
if(istype(O,/obj/item/weapon/reagent_containers/food/snacks/grown/) || istype(O,/obj/item/seeds/))
return 1
return 0
-/obj/machinery/smartfridge/proc/load(var/obj/item/O as obj)
+/obj/machinery/smartfridge/proc/load(obj/item/O)
if(istype(O.loc,/mob))
var/mob/M = O.loc
if(!M.unEquip(O))
@@ -142,13 +142,13 @@
item_quants[n] = 1
sortList(item_quants)
-/obj/machinery/smartfridge/attack_paw(mob/user as mob)
+/obj/machinery/smartfridge/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/smartfridge/attack_ai(mob/user as mob)
+/obj/machinery/smartfridge/attack_ai(mob/user)
return 0
-/obj/machinery/smartfridge/attack_hand(mob/user as mob)
+/obj/machinery/smartfridge/attack_hand(mob/user)
user.set_machine(src)
interact(user)
@@ -156,7 +156,7 @@
* SmartFridge Menu
********************/
-/obj/machinery/smartfridge/interact(mob/user as mob)
+/obj/machinery/smartfridge/interact(mob/user)
if(stat)
return 0
@@ -227,7 +227,7 @@
icon_off = "drying_rack"
var/drying = 0
-/obj/machinery/smartfridge/drying_rack/interact(mob/user as mob)
+/obj/machinery/smartfridge/drying_rack/interact(mob/user)
var/dat = ..()
if(dat)
dat += "
"
@@ -235,7 +235,7 @@
user << browse("
[src] supplies[dat]", "window=smartfridge")
onclose(user, "smartfridge")
-/obj/machinery/smartfridge/drying_rack/Topic(var/href, var/list/href_list)
+/obj/machinery/smartfridge/drying_rack/Topic(href, list/href_list)
..()
if(href_list["dry"])
toggle_drying()
@@ -267,14 +267,14 @@
if(rack_dry())//no need to update unless something got dried
update_icon()
-/obj/machinery/smartfridge/drying_rack/accept_check(var/obj/item/O as obj)
+/obj/machinery/smartfridge/drying_rack/accept_check(obj/item/O)
if(istype(O,/obj/item/weapon/reagent_containers/food/snacks/))
var/obj/item/weapon/reagent_containers/food/snacks/S = O
if(S.dried_type)
return 1
return 0
-/obj/machinery/smartfridge/drying_rack/proc/toggle_drying(var/forceoff = 0)
+/obj/machinery/smartfridge/drying_rack/proc/toggle_drying(forceoff = 0)
if(drying || forceoff)
drying = 0
use_power = 1
@@ -308,7 +308,7 @@
name = "drink showcase"
desc = "A refrigerated storage unit for tasty tasty alcohol."
-/obj/machinery/smartfridge/drinks/accept_check(var/obj/item/O as obj)
+/obj/machinery/smartfridge/drinks/accept_check(obj/item/O)
if(!istype(O,/obj/item/weapon/reagent_containers) || !O.reagents || !O.reagents.reagent_list.len)
return 0
if(istype(O,/obj/item/weapon/reagent_containers/glass) || istype(O,/obj/item/weapon/reagent_containers/food/drinks) || istype(O,/obj/item/weapon/reagent_containers/food/condiment))
@@ -322,7 +322,7 @@
name = "smart slime extract storage"
desc = "A refrigerated storage unit for slime extracts."
-/obj/machinery/smartfridge/extract/accept_check(var/obj/item/O as obj)
+/obj/machinery/smartfridge/extract/accept_check(obj/item/O)
if(istype(O,/obj/item/slime_extract))
return 1
if(istype(O,/obj/item/device/slime_scanner))
@@ -355,7 +355,7 @@
load(I)
amount--
-/obj/machinery/smartfridge/chemistry/accept_check(var/obj/item/O as obj)
+/obj/machinery/smartfridge/chemistry/accept_check(obj/item/O)
if(istype(O,/obj/item/weapon/storage/pill_bottle))
if(O.contents.len)
for(var/obj/item/I in O)
diff --git a/code/modules/food&drinks/recipes/food_mixtures.dm b/code/modules/food&drinks/recipes/food_mixtures.dm
index f6d4bf2145f..39ad0b66acd 100644
--- a/code/modules/food&drinks/recipes/food_mixtures.dm
+++ b/code/modules/food&drinks/recipes/food_mixtures.dm
@@ -10,7 +10,7 @@
result_amount = 1
mob_react=1
-/datum/chemical_reaction/tofu/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/tofu/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/weapon/reagent_containers/food/snacks/tofu(location)
@@ -23,7 +23,7 @@
required_reagents = list("soymilk" = 2, "cocoa" = 2, "sugar" = 2)
result_amount = 1
-/datum/chemical_reaction/chocolate_bar/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/chocolate_bar/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/weapon/reagent_containers/food/snacks/chocolatebar(location)
@@ -37,7 +37,7 @@
required_reagents = list("milk" = 2, "cocoa" = 2, "sugar" = 2)
result_amount = 1
mob_react = 1
-/datum/chemical_reaction/chocolate_bar2/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/chocolate_bar2/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/weapon/reagent_containers/food/snacks/chocolatebar(location)
@@ -87,7 +87,7 @@
required_catalysts = list("enzyme" = 5)
result_amount = 1
-/datum/chemical_reaction/cheesewheel/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/cheesewheel/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
new /obj/item/weapon/reagent_containers/food/snacks/store/cheesewheel(location)
return
@@ -100,7 +100,7 @@
result_amount = 1
mob_react = 1
-/datum/chemical_reaction/synthmeat/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/synthmeat/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
new /obj/item/weapon/reagent_containers/food/snacks/meat/slab/synthmeat(location)
return
@@ -129,7 +129,7 @@
required_container = /obj/item/weapon/reagent_containers/food/snacks/tofu
mix_message = "The mixture becomes similar to carp meat."
-/datum/chemical_reaction/imitationcarpmeat/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/imitationcarpmeat/on_reaction(datum/reagents/holder)
var/obj/item/weapon/reagent_containers/food/snacks/S = new /obj/item/weapon/reagent_containers/food/snacks/carpmeat/imitation
S.loc = get_turf(holder.my_atom)
if(holder && holder.my_atom)
@@ -143,7 +143,7 @@
result_amount = 1
mix_message = "The ingredients form a dough."
-/datum/chemical_reaction/dough/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/dough/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/weapon/reagent_containers/food/snacks/dough(location)
@@ -156,7 +156,7 @@
result_amount = 1
mix_message = "The ingredients form a cake batter."
-/datum/chemical_reaction/cakebatter/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/cakebatter/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/weapon/reagent_containers/food/snacks/cakebatter(location)
@@ -174,7 +174,7 @@
required_container = /obj/item/weapon/reagent_containers/glass/bowl
mix_message = "The rice absorbs the water."
-/datum/chemical_reaction/ricebowl/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/ricebowl/on_reaction(datum/reagents/holder)
var/obj/item/weapon/reagent_containers/food/snacks/S = new /obj/item/weapon/reagent_containers/food/snacks/salad/ricebowl
S.loc = get_turf(holder.my_atom)
if(holder && holder.my_atom)
diff --git a/code/modules/games/cards.dm b/code/modules/games/cards.dm
index 6058b09be26..0efe72640e1 100644
--- a/code/modules/games/cards.dm
+++ b/code/modules/games/cards.dm
@@ -52,7 +52,7 @@
src.cards.Add(card)
-/obj/item/weapon/deck/attackby(obj/O as obj, mob/user as mob)
+/obj/item/weapon/deck/attackby(obj/O, mob/user)
if (istype(O,/obj/item/weapon/hand))
var/obj/item/weapon/hand/H = O
@@ -63,7 +63,7 @@
user.show_message("You place your cards on the bottom of the deck.")
else return ..()
-/obj/item/weapon/deck/attack_self(var/mob/user as mob)
+/obj/item/weapon/deck/attack_self(mob/user)
var/list/newcards = list()
var/datum/playingcard/card
@@ -82,7 +82,7 @@
if (istype(A, /mob/living)) src.dealTo(A, user)
else return ..()
-/obj/item/weapon/deck/attack(mob/living/M as mob, mob/living/user as mob, def_zone)
+/obj/item/weapon/deck/attack(mob/living/M, mob/living/user, def_zone)
if (istype(M)) src.dealTo(M, user)
else return ..()
@@ -130,7 +130,7 @@
return ..()
-/obj/item/weapon/hand/attackby(obj/O as obj, mob/user as mob)
+/obj/item/weapon/hand/attackby(obj/O, mob/user)
if(istype(O,/obj/item/weapon/hand))
var/obj/item/weapon/hand/H = O
@@ -178,7 +178,7 @@
src.update_icon()
-/obj/item/weapon/hand/attack_self(var/mob/user as mob)
+/obj/item/weapon/hand/attack_self(mob/user)
src.hi.show(user)
/obj/item/weapon/hand/examine()
diff --git a/code/modules/holiday/easter.dm b/code/modules/holiday/easter.dm
index 6c5fa4ba2c2..f70dbf3dee4 100644
--- a/code/modules/holiday/easter.dm
+++ b/code/modules/holiday/easter.dm
@@ -116,7 +116,7 @@
icon_state = "egg-[color]"
item_color = "[color]"
-/obj/item/weapon/reagent_containers/food/snacks/egg/proc/dispensePrize(var/turf/where)
+/obj/item/weapon/reagent_containers/food/snacks/egg/proc/dispensePrize(turf/where)
var/won = pick(/obj/item/clothing/head/bunnyhead,
/obj/item/clothing/suit/bunnysuit,
/obj/item/weapon/reagent_containers/food/snacks/grown/carrot,
@@ -133,7 +133,7 @@
new won(where)
new/obj/item/weapon/reagent_containers/food/snacks/chocolateegg(where)
-/obj/item/weapon/reagent_containers/food/snacks/egg/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/egg/attack_self(mob/user)
..()
if(containsPrize)
user << "
You unwrap the [src] and find a prize inside!"
diff --git a/code/modules/holiday/halloween.dm b/code/modules/holiday/halloween.dm
index 5f83a701ac6..6f187ea2ae9 100644
--- a/code/modules/holiday/halloween.dm
+++ b/code/modules/holiday/halloween.dm
@@ -276,7 +276,7 @@
if(prob(5))
playsound(loc, 'sound/spookoween/insane_low_laugh.ogg', 300, 1)
-/mob/living/simple_animal/hostile/retaliate/clown/insane/attackby(var/obj/item/O as obj, var/mob/user as mob)
+/mob/living/simple_animal/hostile/retaliate/clown/insane/attackby(obj/item/O, mob/user)
if(istype(O,/obj/item/weapon/nullrod))
if(prob(5))
visible_message("[src] finally found the peace it deserves.
You hear honks echoing off into the distance.")
diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm
index bec34b1c197..28784576f31 100644
--- a/code/modules/hydroponics/biogenerator.dm
+++ b/code/modules/hydroponics/biogenerator.dm
@@ -53,7 +53,7 @@
icon_state = "biogen-work"
return
-/obj/machinery/biogenerator/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/biogenerator/attackby(obj/item/O, mob/user, params)
if(istype(O, /obj/item/weapon/reagent_containers/glass) && !panel_open)
if(beaker)
user << "
A container is already loaded into the machine."
@@ -113,7 +113,7 @@
update_icon()
return
-/obj/machinery/biogenerator/interact(mob/user as mob)
+/obj/machinery/biogenerator/interact(mob/user)
if(stat & BROKEN || panel_open)
return
user.set_machine(src)
@@ -179,7 +179,7 @@
popup.open()
return
-/obj/machinery/biogenerator/attack_hand(mob/user as mob)
+/obj/machinery/biogenerator/attack_hand(mob/user)
interact(user)
/obj/machinery/biogenerator/proc/activate()
@@ -210,7 +210,7 @@
menustat = "void"
return
-/obj/machinery/biogenerator/proc/check_cost(var/cost)
+/obj/machinery/biogenerator/proc/check_cost(cost)
if (cost > points)
menustat = "nopoints"
return 1
@@ -221,12 +221,12 @@
updateUsrDialog()
return 0
-/obj/machinery/biogenerator/proc/check_container_volume(var/reagent_amount)
+/obj/machinery/biogenerator/proc/check_container_volume(reagent_amount)
if(beaker.reagents.total_volume + reagent_amount > beaker.reagents.maximum_volume)
menustat = "nobeakerspace"
return 1
-/obj/machinery/biogenerator/proc/create_product(var/create)
+/obj/machinery/biogenerator/proc/create_product(create)
switch(create)
if("milk")
if(check_container_volume(10)) return 0
diff --git a/code/modules/hydroponics/grown.dm b/code/modules/hydroponics/grown.dm
index 8fe33dc7e58..6c11a41934e 100644
--- a/code/modules/hydroponics/grown.dm
+++ b/code/modules/hydroponics/grown.dm
@@ -49,7 +49,7 @@
return 1
return 0
-/obj/item/weapon/reagent_containers/food/snacks/grown/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/attackby(obj/item/O, mob/user, params)
..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
var/msg
@@ -73,7 +73,7 @@
return
return
-/obj/item/weapon/grown/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/grown/attackby(obj/item/O, mob/user, params)
..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
var/msg
@@ -193,7 +193,7 @@
reagents.add_reagent("vitamin", 1 + round((potency / 25), 1))
bitesize = reagents.total_volume
-/obj/item/weapon/reagent_containers/food/snacks/grown/potato/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/potato/attackby(obj/item/weapon/W, mob/user, params)
..()
if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = W
@@ -646,7 +646,7 @@
reagents.add_reagent("vitamin", 1 + round((potency / 25), 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/chili/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/chili/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Capsaicin: [reagents.get_reagent_amount("capsaicin")]%"
@@ -666,7 +666,7 @@
reagents.add_reagent("frostoil", 3+round(potency / 5, 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/icepepper/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/icepepper/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Frost Oil: [reagents.get_reagent_amount("frostoil")]%"
@@ -687,12 +687,12 @@
reagents.add_reagent("condensedcapsaicin", 4+round(potency / 4, 1))
bitesize = 1 + round(reagents.total_volume / 4, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/ghost_chili/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/ghost_chili/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Capsaicin: [reagents.get_reagent_amount("capsaicin")]%"
-/obj/item/weapon/reagent_containers/food/snacks/grown/ghost_chili/attack_hand(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/ghost_chili/attack_hand(mob/user)
..()
if( istype(src.loc, /mob) )
held_mob = src.loc
@@ -832,7 +832,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
return
..()
-/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/killer/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/killer/attack_self(mob/user)
if(awakening || istype(user.loc,/turf/space))
return
user << "
You begin to awaken the Killer Tomato..."
@@ -861,7 +861,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
splat = /obj/effect/gibspawner/generic
filling_color = "#FF0000"
-/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/blood/add_juice(var/loc, var/potency = 10)
+/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/blood/add_juice(loc, potency = 10)
..()
reagents.add_reagent("blood", 1 + round((potency / 5), 1))
@@ -896,7 +896,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
..()
reagents.add_reagent("singulo", 1 + round((potency / 5), 1))
-/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/blue/bluespace/attack_self(var/mob/user)
+/obj/item/weapon/reagent_containers/food/snacks/grown/tomato/blue/bluespace/attack_self(mob/user)
squish(user)
user.unEquip(src)
src.visible_message("[user] squashes the [src.name].","
You hear a smack.")
@@ -961,7 +961,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("nutriment", 1 + round((potency / 50), 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/grass/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/grass/attack_self(mob/user)
user << "
You prepare the astroturf."
var/grassAmt = 1 + round(potency / 50) // The grass we're holding
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/grass/G in user.loc) // The grass on the floor
@@ -986,7 +986,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
desc = "The textile industry's dark secret."
icon_state = "carpetclump"
-/obj/item/weapon/reagent_containers/food/snacks/grown/carpet/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/carpet/attack_self(mob/user)
user << "
You roll out the red carpet."
var/carpetAmt = 1 + round(potency / 50) // The carpet we're holding
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/carpet/C in user.loc) // The carpet on the floor
@@ -1051,7 +1051,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("morphine", 3+round(potency / 3, 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/reishi/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/reishi/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Anti-Toxin: [reagents.get_reagent_amount("charcoal")]%"
@@ -1071,7 +1071,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("mushroomhallucinogen", 1 + round(potency / 25, 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/amanita/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/amanita/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Amatoxins: [reagents.get_reagent_amount("amatoxin")]%"
@@ -1091,7 +1091,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("mushroomhallucinogen", 1 + round(potency / 25, 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/angel/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/angel/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Amatoxins: [reagents.get_reagent_amount("amatoxin")]%"
@@ -1104,13 +1104,13 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
icon_state = "libertycap"
filling_color = "#DAA520"
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/libertycap/add_juice(var/loc, var/potency = 15)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/libertycap/add_juice(loc, potency = 15)
..()
reagents.add_reagent("nutriment", 1 + round((potency / 50), 1))
reagents.add_reagent("mushroomhallucinogen", 3+round(potency / 5, 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/libertycap/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/libertycap/attackby(obj/item/O, mob/user, params)
. = ..()
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "
- Mushroom Hallucinogen: [reagents.get_reagent_amount("mushroomhallucinogen")]%"
@@ -1141,7 +1141,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("nutriment", 2+round((potency / 10), 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/walkingmushroom/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/walkingmushroom/attack_self(mob/user)
if(istype(user.loc,/turf/space))
return
var/mob/living/simple_animal/hostile/mushroom/M = new /mob/living/simple_animal/hostile/mushroom(user.loc)
@@ -1194,7 +1194,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
reagents.add_reagent("radium", 1 + round((potency / 20), 1))
bitesize = 1 + round(reagents.total_volume / 2, 1)
-/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/food/snacks/grown/mushroom/glowshroom/attack_self(mob/user)
if(istype(user.loc,/turf/space))
return
var/obj/effect/glowshroom/planted = new /obj/effect/glowshroom(user.loc)
@@ -1290,7 +1290,7 @@ obj/item/weapon/reagent_containers/food/snacks/grown/shell/eggy/add_juice()
desc = "Dry them out to make coffee."
icon_state = "coffee_robusta"
-/obj/item/weapon/reagent_containers/food/snacks/grown/coffee/robusta/add_juice(var/loc, var/potency = 20)
+/obj/item/weapon/reagent_containers/food/snacks/grown/coffee/robusta/add_juice(loc, potency = 20)
..()
reagents.add_reagent("morphine", 1 + round((potency / 20), 1))
diff --git a/code/modules/hydroponics/growninedible.dm b/code/modules/hydroponics/growninedible.dm
index 3a925b8e4c4..10af706e393 100644
--- a/code/modules/hydroponics/growninedible.dm
+++ b/code/modules/hydroponics/growninedible.dm
@@ -66,7 +66,7 @@
/obj/item/weapon/reagent_containers/food/snacks/grown/wheat)
-/obj/item/weapon/grown/log/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/weapon/grown/log/attackby(obj/item/weapon/W, mob/user, params)
..()
if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || (istype(W, /obj/item/weapon/twohanded/fireaxe) && W:wielded) || istype(W, /obj/item/weapon/melee/energy))
user.show_message("
You make [plank_name] out of \the [src]!", 1)
@@ -114,7 +114,7 @@
throw_speed = 1
throw_range = 3
-/obj/item/weapon/grown/sunflower/attack(mob/M as mob, mob/user as mob)
+/obj/item/weapon/grown/sunflower/attack(mob/M, mob/user)
M << "
[user] smacks you with a sunflower!FLOWER POWER"
user << "
Your sunflower's FLOWER POWERstrikes [M]"
@@ -141,14 +141,14 @@
reagents.add_reagent("condensedcapsaicin", round((potency / 4), 1))
force = round((5 + potency / 5), 1)
-/obj/item/weapon/grown/novaflower/attack(mob/living/carbon/M as mob, mob/user as mob)
+/obj/item/weapon/grown/novaflower/attack(mob/living/carbon/M, mob/user)
if(!..()) return
if(istype(M, /mob/living))
M << "
You are lit on fire from the intense heat of the [name]!"
M.adjust_fire_stacks(potency / 20)
M.IgniteMob()
-/obj/item/weapon/grown/novaflower/afterattack(atom/A as mob|obj, mob/user as mob,proximity)
+/obj/item/weapon/grown/novaflower/afterattack(atom/A as mob|obj, mob/user,proximity)
if(!proximity) return
if(endurance > 0)
endurance -= rand(1, (endurance / 3) + 1)
@@ -157,7 +157,7 @@
usr.unEquip(src)
qdel(src)
-/obj/item/weapon/grown/novaflower/pickup(mob/living/carbon/human/user as mob)
+/obj/item/weapon/grown/novaflower/pickup(mob/living/carbon/human/user)
if(!user.gloves)
user << "
The [name] burns your bare hand!"
user.adjustFireLoss(rand(1, 5))
@@ -183,7 +183,7 @@
user.visible_message("
[user] is eating some of the [src.name]! It looks like \he's trying to commit suicide.")
return (BRUTELOSS|TOXLOSS)
-/obj/item/weapon/grown/nettle/pickup(mob/living/user as mob)
+/obj/item/weapon/grown/nettle/pickup(mob/living/user)
if(!iscarbon(user))
return 0
var/mob/living/carbon/C = user
@@ -200,7 +200,7 @@
C << "
The nettle burns your bare hand!"
return 1
-/obj/item/weapon/grown/nettle/afterattack(atom/A as mob|obj, mob/user as mob,proximity)
+/obj/item/weapon/grown/nettle/afterattack(atom/A as mob|obj, mob/user,proximity)
if(!proximity) return
if(force > 0)
force -= rand(1, (force / 3) + 1) // When you whack someone with it, leaves fall off
@@ -233,13 +233,13 @@
reagents.add_reagent("facid", round((potency / 2), 1))
force = round((5 + potency / 2.5), 1)
-/obj/item/weapon/grown/nettle/death/pickup(mob/living/carbon/user as mob)
+/obj/item/weapon/grown/nettle/death/pickup(mob/living/carbon/user)
if(..())
if(prob(50))
user.Paralyse(5)
user << "
You are stunned by the Deathnettle when you try picking it up!"
-/obj/item/weapon/grown/nettle/death/attack(mob/living/carbon/M as mob, mob/user as mob)
+/obj/item/weapon/grown/nettle/death/attack(mob/living/carbon/M, mob/user)
if(!..()) return
if(istype(M, /mob/living))
M << "
You are stunned by the powerful acid of the Deathnettle!"
@@ -300,7 +300,7 @@
throw_speed = 3
throw_range = 7
-/obj/item/weapon/grown/corncob/attackby(obj/item/weapon/grown/W as obj, mob/user as mob, params)
+/obj/item/weapon/grown/corncob/attackby(obj/item/weapon/grown/W, mob/user, params)
..()
if(is_sharp(W))
user << "
You use [W] to fashion a pipe out of the corn cob!"
@@ -324,7 +324,7 @@
..()
snap_pops = max(round(potency/8), 1)
-/obj/item/weapon/grown/snapcorn/attack_self(mob/user as mob)
+/obj/item/weapon/grown/snapcorn/attack_self(mob/user)
..()
user << "
You pick up a snap pops from the cob."
var/obj/item/toy/snappop/S = new /obj/item/toy/snappop(user.loc)
diff --git a/code/modules/hydroponics/hydroitemdefines.dm b/code/modules/hydroponics/hydroitemdefines.dm
index f44d54f78b9..46c56442345 100644
--- a/code/modules/hydroponics/hydroitemdefines.dm
+++ b/code/modules/hydroponics/hydroitemdefines.dm
@@ -7,7 +7,7 @@
item_state = "analyzer"
origin_tech = "magnets=1;biotech=1"
-/obj/item/device/analyzer/plant_analyzer/attack_self(mob/user as mob)
+/obj/item/device/analyzer/plant_analyzer/attack_self(mob/user)
return 0
// *************************************
diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm
index bb6cf6c74af..fe1602b92b1 100644
--- a/code/modules/hydroponics/hydroponics.dm
+++ b/code/modules/hydroponics/hydroponics.dm
@@ -94,7 +94,7 @@
return connected
-/obj/machinery/hydroponics/bullet_act(var/obj/item/projectile/Proj) //Works with the Somatoray to modify plant variables.
+/obj/machinery/hydroponics/bullet_act(obj/item/projectile/Proj) //Works with the Somatoray to modify plant variables.
if(!planted)
..()
return
@@ -335,7 +335,7 @@
visible_message("
[oldPlantName] overtaken by [myseed.plantname].")
-/obj/machinery/hydroponics/proc/mutate(var/lifemut = 2, var/endmut = 5, var/productmut = 1, var/yieldmut = 2, var/potmut = 25) // Mutates the current seed
+/obj/machinery/hydroponics/proc/mutate(lifemut = 2, endmut = 5, productmut = 1, yieldmut = 2, potmut = 25) // Mutates the current seed
if(!planted)
return
adjustSLife(rand(-lifemut,lifemut))
@@ -416,7 +416,7 @@
else
usr << "The pests seem to behave oddly, but quickly settle down..."
-/obj/machinery/hydroponics/proc/applyChemicals(var/datum/reagents/S)
+/obj/machinery/hydroponics/proc/applyChemicals(datum/reagents/S)
if(myseed)
myseed.on_chem_reaction(S) //In case seeds have some special interactions with special chems, currently only used by vines
@@ -590,7 +590,7 @@
if(1 to 32) mutatepest()
else usr << "Nothing happens..."
-/obj/machinery/hydroponics/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/hydroponics/attackby(obj/item/O, mob/user, params)
//Called when mob user "attacks" it with object O
if(istype(O, /obj/item/weapon/reagent_containers) ) // Syringe stuff (and other reagent containers now too)
@@ -765,7 +765,7 @@
return
-/obj/machinery/hydroponics/attack_hand(mob/user as mob)
+/obj/machinery/hydroponics/attack_hand(mob/user)
if(istype(user, /mob/living/silicon)) //How does AI know what plant is?
return
if(harvest)
@@ -899,41 +899,41 @@
update_icon()
/// Tray Setters - The following procs adjust the tray or plants variables, and make sure that the stat doesn't go out of bounds.///
-/obj/machinery/hydroponics/proc/adjustNutri(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustNutri(adjustamt)
nutrilevel += adjustamt
nutrilevel = max(nutrilevel, 0)
nutrilevel = min(nutrilevel, maxnutri)
-/obj/machinery/hydroponics/proc/adjustWater(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustWater(adjustamt)
waterlevel += adjustamt
waterlevel = max(waterlevel, 0)
waterlevel = min(waterlevel, maxwater)
if(adjustamt>0)
adjustToxic(-round(adjustamt/4))//Toxicity dilutation code. The more water you put in, the lesser the toxin concentration.
-/obj/machinery/hydroponics/proc/adjustHealth(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustHealth(adjustamt)
if(planted && !dead)
health += adjustamt
health = max(health, 0)
health = min(health, myseed.endurance)
-/obj/machinery/hydroponics/proc/adjustToxic(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustToxic(adjustamt)
toxic += adjustamt
toxic = max(toxic, 0)
toxic = min(toxic, 100)
-/obj/machinery/hydroponics/proc/adjustPests(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustPests(adjustamt)
pestlevel += adjustamt
pestlevel = max(pestlevel, 0)
pestlevel = min(pestlevel, 10)
-/obj/machinery/hydroponics/proc/adjustWeeds(var/adjustamt)
+/obj/machinery/hydroponics/proc/adjustWeeds(adjustamt)
weedlevel += adjustamt
weedlevel = max(weedlevel, 0)
weedlevel = min(weedlevel, 10)
/// Seed Setters ///
-/obj/machinery/hydroponics/proc/adjustSYield(var/adjustamt)//0,10
+/obj/machinery/hydroponics/proc/adjustSYield(adjustamt)//0,10
if(myseed && myseed.yield != -1) // Unharvestable shouldn't suddenly turn harvestable
myseed.yield += adjustamt
myseed.yield = max(myseed.yield, 0)
@@ -941,25 +941,25 @@
if(myseed.yield <= 0 && myseed.plant_type == 2)
myseed.yield = 1 // Mushrooms always have a minimum yield of 1.
-/obj/machinery/hydroponics/proc/adjustSLife(var/adjustamt)//10,100
+/obj/machinery/hydroponics/proc/adjustSLife(adjustamt)//10,100
if(myseed)
myseed.lifespan += adjustamt
myseed.lifespan = max(myseed.lifespan, 10)
myseed.lifespan = min(myseed.lifespan, 100)
-/obj/machinery/hydroponics/proc/adjustSEnd(var/adjustamt)//10,100
+/obj/machinery/hydroponics/proc/adjustSEnd(adjustamt)//10,100
if(myseed)
myseed.endurance += adjustamt
myseed.endurance = max(myseed.endurance, 10)
myseed.endurance = min(myseed.endurance, 100)
-/obj/machinery/hydroponics/proc/adjustSProduct(var/adjustamt)//2,10
+/obj/machinery/hydroponics/proc/adjustSProduct(adjustamt)//2,10
if(myseed)
myseed.production += adjustamt
myseed.production = max(myseed.production, 2)
myseed.production = min(myseed.production, 10)
-/obj/machinery/hydroponics/proc/adjustSPot(var/adjustamt)//0,100
+/obj/machinery/hydroponics/proc/adjustSPot(adjustamt)//0,100
if(myseed && myseed.potency != -1) //Not all plants have a potency
myseed.potency += adjustamt
myseed.potency = max(myseed.potency, 0)
@@ -1000,7 +1000,7 @@
SetLuminosity(0)
return
-/obj/machinery/hydroponics/soil/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/hydroponics/soil/attackby(obj/item/O, mob/user, params)
..()
if(istype(O, /obj/item/weapon/shovel))
user << "
You clear up [src]!"
diff --git a/code/modules/hydroponics/seed_extractor.dm b/code/modules/hydroponics/seed_extractor.dm
index 0ad83aeb190..b8eec1a9ba8 100644
--- a/code/modules/hydroponics/seed_extractor.dm
+++ b/code/modules/hydroponics/seed_extractor.dm
@@ -1,4 +1,4 @@
-/proc/seedify(var/obj/item/O as obj, var/t_max, var/obj/machinery/seed_extractor/extractor)
+/proc/seedify(obj/item/O, t_max, obj/machinery/seed_extractor/extractor)
var/t_amount = 0
if(t_max == -1)
if(extractor)
@@ -71,7 +71,7 @@
for(var/obj/item/weapon/stock_parts/manipulator/M in component_parts)
seed_multiplier = M.rating
-/obj/machinery/seed_extractor/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/seed_extractor/attackby(obj/item/O, mob/user, params)
if(default_deconstruction_screwdriver(user, "sextractor_open", "sextractor", O))
return
@@ -142,11 +142,11 @@
src.potency = poten
src.amount = am
-/obj/machinery/seed_extractor/attack_hand(mob/user as mob)
+/obj/machinery/seed_extractor/attack_hand(mob/user)
user.set_machine(src)
interact(user)
-/obj/machinery/seed_extractor/interact(mob/user as mob)
+/obj/machinery/seed_extractor/interact(mob/user)
if (stat)
return 0
@@ -197,7 +197,7 @@
src.updateUsrDialog()
return
-/obj/machinery/seed_extractor/proc/add(var/obj/item/seeds/O as obj)
+/obj/machinery/seed_extractor/proc/add(obj/item/seeds/O)
if(contents.len >= 999)
usr << "
\The [src] is full."
return 0
diff --git a/code/modules/hydroponics/seeds.dm b/code/modules/hydroponics/seeds.dm
index 662f76cb686..7334590239e 100644
--- a/code/modules/hydroponics/seeds.dm
+++ b/code/modules/hydroponics/seeds.dm
@@ -31,10 +31,10 @@
/obj/item/seeds/proc/get_analyzer_text() //in case seeds have something special to tell to the analyzer
return
-/obj/item/seeds/proc/on_chem_reaction(var/datum/reagents/S) //in case seeds have some special interaction with special chems
+/obj/item/seeds/proc/on_chem_reaction(datum/reagents/S) //in case seeds have some special interaction with special chems
return
-/obj/item/seeds/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/seeds/attackby(obj/item/O, mob/user, params)
if (istype(O, /obj/item/device/analyzer/plant_analyzer))
user << "***
[plantname] ***"
user << "-Plant Endurance:
[endurance]"
@@ -95,7 +95,7 @@
var/factions = null
var/contains_sample = 0
-/obj/item/seeds/replicapod/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/seeds/replicapod/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W,/obj/item/weapon/reagent_containers/syringe))
if(!contains_sample)
for(var/datum/reagent/blood/bloodSample in W.reagents.reagent_list)
@@ -1344,7 +1344,7 @@
for(var/obj/item/weapon/reagent_containers/food/snacks/grown/kudzupod/K in prod)
K.mutations = mutations
-/obj/item/seeds/kudzuseed/attack_self(mob/user as mob)
+/obj/item/seeds/kudzuseed/attack_self(mob/user)
if(istype(user.loc,/turf/space))
return
var/turf/T = get_turf(src)
@@ -1362,7 +1362,7 @@
mut_text += "-Plant Mutations: [(text_string == "") ? "None" : text_string]"
return mut_text
-/obj/item/seeds/kudzuseed/on_chem_reaction(var/datum/reagents/S)
+/obj/item/seeds/kudzuseed/on_chem_reaction(datum/reagents/S)
var/list/temp_mut_list = list()
diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm
index f5dc638ee49..fd0ce010d97 100644
--- a/code/modules/library/lib_machines.dm
+++ b/code/modules/library/lib_machines.dm
@@ -26,7 +26,7 @@
var/author
var/SQLquery
-/obj/machinery/computer/libraryconsole/attack_hand(var/mob/user as mob)
+/obj/machinery/computer/libraryconsole/attack_hand(mob/user)
if(..())
return
interact(user)
@@ -290,7 +290,7 @@ var/global/list/datum/cachedbook/cachedbooks // List of our cached book datums
popup.set_title_image(user.browse_rsc_icon(src.icon, src.icon_state))
popup.open()
-/obj/machinery/computer/libraryconsole/bookmanagement/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/machinery/computer/libraryconsole/bookmanagement/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/weapon/barcodescanner))
var/obj/item/weapon/barcodescanner/scanner = W
scanner.computer = src
@@ -299,7 +299,7 @@ var/global/list/datum/cachedbook/cachedbooks // List of our cached book datums
else
..()
-/obj/machinery/computer/libraryconsole/bookmanagement/emag_act(mob/user as mob)
+/obj/machinery/computer/libraryconsole/bookmanagement/emag_act(mob/user)
if(density && !emagged)
emagged = 1
@@ -445,13 +445,13 @@ var/global/list/datum/cachedbook/cachedbooks // List of our cached book datums
density = 1
var/obj/item/weapon/book/cache // Last scanned book
-/obj/machinery/libraryscanner/attackby(var/obj/O as obj, var/mob/user as mob, params)
+/obj/machinery/libraryscanner/attackby(obj/O, mob/user, params)
if(istype(O, /obj/item/weapon/book))
if(!user.drop_item())
return
O.loc = src
-/obj/machinery/libraryscanner/attack_hand(var/mob/user as mob)
+/obj/machinery/libraryscanner/attack_hand(mob/user)
usr.set_machine(src)
var/dat = "" //
if(cache)
@@ -501,7 +501,7 @@ var/global/list/datum/cachedbook/cachedbooks // List of our cached book datums
density = 1
var/busy = 0
-/obj/machinery/bookbinder/attackby(var/obj/O as obj, var/mob/user as mob, params)
+/obj/machinery/bookbinder/attackby(obj/O, mob/user, params)
if(istype(O, /obj/item/weapon/paper))
if(busy)
user << "
The book binder is busy. Please wait for completion of previous operation."
diff --git a/code/modules/lighting/lighting_system.dm b/code/modules/lighting/lighting_system.dm
index 19f61193cf3..9a97bc52b5b 100644
--- a/code/modules/lighting/lighting_system.dm
+++ b/code/modules/lighting/lighting_system.dm
@@ -235,7 +235,7 @@
var/atom/movable/light/lighting_object //Will be null for space turfs and anything in a static lighting area
var/list/affecting_lights //not initialised until used (even empty lists reserve a fair bit of memory)
-/turf/ChangeTurf(var/path)
+/turf/ChangeTurf(path)
if(!path || path == type) //Sucks this is here but it would cause problems otherwise.
return ..()
@@ -295,7 +295,7 @@
if(config.starlight)
update_starlight()
-/turf/proc/redraw_lighting(var/instantly = 0)
+/turf/proc/redraw_lighting(instantly = 0)
if(lighting_object)
var/newalpha
if(lighting_lumcount <= 0)
diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm
index 1e38491439f..b7552f60814 100644
--- a/code/modules/mining/abandoned_crates.dm
+++ b/code/modules/mining/abandoned_crates.dm
@@ -154,7 +154,7 @@
if(100)
new /obj/item/clothing/head/bearpelt(src)
-/obj/structure/closet/crate/secure/loot/attack_hand(mob/user as mob)
+/obj/structure/closet/crate/secure/loot/attack_hand(mob/user)
if(locked)
user << "
The crate is locked with a Deca-code lock."
var/input = input(usr, "Enter [codelen] digits.", "Deca-Code Lock", "") as text
@@ -179,7 +179,7 @@
else
return ..()
-/obj/structure/closet/crate/secure/loot/attackby(obj/item/weapon/W as obj, mob/user as mob)
+/obj/structure/closet/crate/secure/loot/attackby(obj/item/weapon/W, mob/user)
if(locked)
if (istype(W, /obj/item/weapon/card/emag))
user << "
The crate's anti-tamper system activates!"
diff --git a/code/modules/mining/equipment_locker.dm b/code/modules/mining/equipment_locker.dm
index 8cce76294b6..85d0eaa50f0 100644
--- a/code/modules/mining/equipment_locker.dm
+++ b/code/modules/mining/equipment_locker.dm
@@ -85,7 +85,7 @@
else
break
-/obj/machinery/mineral/ore_redemption/attackby(var/obj/item/weapon/W, var/mob/user, params)
+/obj/machinery/mineral/ore_redemption/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W,/obj/item/weapon/card/id))
var/obj/item/weapon/card/id/I = usr.get_active_hand()
if(istype(I) && !istype(inserted_id))
@@ -113,7 +113,7 @@
return 1
..()
-/obj/machinery/mineral/ore_redemption/proc/SmeltMineral(var/obj/item/weapon/ore/O)
+/obj/machinery/mineral/ore_redemption/proc/SmeltMineral(obj/item/weapon/ore/O)
if(O.refined_type)
var/obj/item/stack/sheet/M = O.refined_type
points += O.points * point_upgrade
@@ -121,7 +121,7 @@
qdel(O)//No refined type? Purge it.
return
-/obj/machinery/mineral/ore_redemption/attack_hand(user as mob)
+/obj/machinery/mineral/ore_redemption/attack_hand(mob/user)
if(..())
return
interact(user)
@@ -300,7 +300,7 @@
component_parts += new /obj/item/weapon/stock_parts/console_screen(null)
RefreshParts()
-/obj/machinery/mineral/equipment_vendor/attack_hand(user as mob)
+/obj/machinery/mineral/equipment_vendor/attack_hand(mob/user)
if(..())
return
interact(user)
@@ -352,7 +352,7 @@
updateUsrDialog()
return
-/obj/machinery/mineral/equipment_vendor/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/machinery/mineral/equipment_vendor/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/mining_voucher))
RedeemVoucher(I, user)
return
@@ -416,7 +416,7 @@
icon_state = "data"
var/points = 500
-/obj/item/weapon/card/mining_point_card/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/item/weapon/card/mining_point_card/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/card/id))
if(points)
var/obj/item/weapon/card/id/C = I
@@ -445,7 +445,7 @@
throw_range = 5
origin_tech = "bluespace=2"
-/obj/item/device/wormhole_jaunter/attack_self(mob/user as mob)
+/obj/item/device/wormhole_jaunter/attack_self(mob/user)
var/turf/device_turf = get_turf(user)
if(!device_turf||device_turf.z==2||device_turf.z>=7)
user << "
You're having difficulties getting the [src.name] to work."
@@ -508,7 +508,7 @@
var/burst_time = 50
var/fieldlimit = 3
-/obj/item/weapon/resonator/proc/CreateResonance(var/target, var/creator)
+/obj/item/weapon/resonator/proc/CreateResonance(target, creator)
var/turf/T = get_turf(target)
if(locate(/obj/effect/resonance) in T)
return
@@ -519,7 +519,7 @@
spawn(burst_time)
fieldsactive--
-/obj/item/weapon/resonator/attack_self(mob/user as mob)
+/obj/item/weapon/resonator/attack_self(mob/user)
if(burst_time == 50)
burst_time = 30
user << "
You set the resonator's fields to detonate after 3 seconds."
@@ -619,7 +619,7 @@
/obj/item/weapon/ore/plasma, /obj/item/weapon/ore/uranium, /obj/item/weapon/ore/iron,
/obj/item/weapon/ore/bananium)
-/mob/living/simple_animal/hostile/mining_drone/attackby(obj/item/I as obj, mob/user as mob, params)
+/mob/living/simple_animal/hostile/mining_drone/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/W = I
if(W.welding && !stat)
diff --git a/code/modules/mining/laborcamp/laborstacker.dm b/code/modules/mining/laborcamp/laborstacker.dm
index 366ade4a6de..64da738a5ef 100644
--- a/code/modules/mining/laborcamp/laborstacker.dm
+++ b/code/modules/mining/laborcamp/laborstacker.dm
@@ -36,7 +36,7 @@
return (istype(inserted_id) && inserted_id.points >= inserted_id.goal) //Otherwise, only let them out if the prisoner's reached his quota.
-/obj/machinery/mineral/labor_claim_console/attack_hand(user as mob)
+/obj/machinery/mineral/labor_claim_console/attack_hand(mob/user)
var/dat
dat += text("
Point Claim Console")
if(emagged) //Shit's broken
@@ -58,12 +58,12 @@
user << browse("[dat]", "window=console_stacking_machine")
-/obj/machinery/mineral/labor_claim_console/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/machinery/mineral/labor_claim_console/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/card/id))
return attack_hand(user)
..()
-/obj/machinery/mineral/labor_claim_console/emag_act(mob/user as mob)
+/obj/machinery/mineral/labor_claim_console/emag_act(mob/user)
if(!emagged)
emagged = 1
user << "
PZZTTPFFFT"
@@ -159,7 +159,7 @@
/obj/machinery/mineral/labor_points_checker/attack_hand(mob/user)
user.examinate(src)
-/obj/machinery/mineral/labor_points_checker/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/machinery/mineral/labor_points_checker/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/card/id))
if(istype(I, /obj/item/weapon/card/id/prisoner))
var/obj/item/weapon/card/id/prisoner/prisoner_id = I
diff --git a/code/modules/mining/machine_input_output_plates.dm b/code/modules/mining/machine_input_output_plates.dm
index 7d28cedb3da..2c9d289a9cf 100644
--- a/code/modules/mining/machine_input_output_plates.dm
+++ b/code/modules/mining/machine_input_output_plates.dm
@@ -22,7 +22,7 @@
var/input_dir = NORTH
var/output_dir = SOUTH
-/obj/machinery/mineral/proc/unload_mineral(var/atom/movable/S)
+/obj/machinery/mineral/proc/unload_mineral(atom/movable/S)
S.loc = loc
var/turf/T = get_step(src,output_dir)
if(T)
diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm
index 9aacac2f023..2274a61b20b 100644
--- a/code/modules/mining/machine_processing.dm
+++ b/code/modules/mining/machine_processing.dm
@@ -18,7 +18,7 @@
else
qdel(src)
-/obj/machinery/mineral/processing_unit_console/attack_hand(user as mob)
+/obj/machinery/mineral/processing_unit_console/attack_hand(mob/user)
var/dat = "
Smelter control console"
//iron
@@ -392,6 +392,6 @@
unload_mineral(O)
-/obj/machinery/mineral/processing_unit/proc/generate_mineral(var/P)
+/obj/machinery/mineral/processing_unit/proc/generate_mineral(P)
var/O = new P(src)
unload_mineral(O)
\ No newline at end of file
diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm
index c1f1474eeb4..aec2fce7f5a 100644
--- a/code/modules/mining/machine_stacking.dm
+++ b/code/modules/mining/machine_stacking.dm
@@ -18,7 +18,7 @@
else
qdel(src)
-/obj/machinery/mineral/stacking_unit_console/attack_hand(user as mob)
+/obj/machinery/mineral/stacking_unit_console/attack_hand(mob/user)
var/obj/item/stack/sheet/s
var/dat
diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm
index 2f3218f4e27..6e67f71e3ba 100644
--- a/code/modules/mining/mine_turfs.dm
+++ b/code/modules/mining/mine_turfs.dm
@@ -81,7 +81,7 @@ var/global/list/rockTurfEdgeCache
icon_state = "rock"
return
-/turf/simulated/mineral/proc/Spread(var/turf/T)
+/turf/simulated/mineral/proc/Spread(turf/T)
new src.type(T)
/turf/simulated/mineral/random
@@ -246,7 +246,7 @@ var/global/list/rockTurfEdgeCache
defuse()
..()
-/turf/simulated/mineral/gibtonite/proc/explosive_reaction(var/mob/user = null, triggered_by_explosion = 0)
+/turf/simulated/mineral/gibtonite/proc/explosive_reaction(mob/user = null, triggered_by_explosion = 0)
if(stage == 0)
icon_state = "rock_Gibtonite_active"
name = "gibtonite deposit"
@@ -292,7 +292,7 @@ var/global/list/rockTurfEdgeCache
det_time = 0
visible_message("
The chain reaction was stopped! The gibtonite had [src.det_time] reactions left till the explosion!")
-/turf/simulated/mineral/gibtonite/gets_drilled(var/mob/user, triggered_by_explosion = 0)
+/turf/simulated/mineral/gibtonite/gets_drilled(mob/user, triggered_by_explosion = 0)
if(stage == 0 && mineralAmt >= 1) //Gibtonite deposit is activated
playsound(src,'sound/effects/hit_on_shattered_glass.ogg',50,1)
explosive_reaction(user, triggered_by_explosion)
@@ -344,7 +344,7 @@ var/global/list/rockTurfEdgeCache
SpawnFloor(src)
..()
-/turf/simulated/floor/plating/asteroid/airless/cave/proc/make_tunnel(var/dir)
+/turf/simulated/floor/plating/asteroid/airless/cave/proc/make_tunnel(dir)
var/turf/simulated/mineral/tunnel = src
var/next_angle = pick(45, -45)
@@ -382,7 +382,7 @@ var/global/list/rockTurfEdgeCache
dir = angle2dir(dir2angle(dir) + next_angle)
-/turf/simulated/floor/plating/asteroid/airless/cave/proc/SpawnFloor(var/turf/T)
+/turf/simulated/floor/plating/asteroid/airless/cave/proc/SpawnFloor(turf/T)
for(var/turf/S in range(2,T))
if(istype(S, /turf/space) || istype(S.loc, /area/mine/explored))
sanity = 0
@@ -395,7 +395,7 @@ var/global/list/rockTurfEdgeCache
spawn(2)
t.fullUpdateMineralOverlays()
-/turf/simulated/floor/plating/asteroid/airless/cave/proc/SpawnMonster(var/turf/T)
+/turf/simulated/floor/plating/asteroid/airless/cave/proc/SpawnMonster(turf/T)
if(prob(30))
if(istype(loc, /area/mine/explored))
return
@@ -414,7 +414,7 @@ var/global/list/rockTurfEdgeCache
new /mob/living/simple_animal/hostile/asteroid/hivelord(T)
return
-/turf/simulated/mineral/attackby(var/obj/item/weapon/pickaxe/P as obj, mob/user as mob, params)
+/turf/simulated/mineral/attackby(obj/item/weapon/pickaxe/P, mob/user, params)
if (!user.IsAdvancedToolUser())
usr << "
You don't have the dexterity to do this!"
@@ -452,7 +452,7 @@ var/global/list/rockTurfEdgeCache
N.fullUpdateMineralOverlays()
return
-/turf/simulated/mineral/attack_animal(mob/living/simple_animal/user as mob)
+/turf/simulated/mineral/attack_animal(mob/living/simple_animal/user)
if(user.environment_smash >= 2)
gets_drilled()
..()
@@ -537,7 +537,7 @@ var/global/list/rockTurfEdgeCache
src.gets_dug()
return
-/turf/simulated/floor/plating/asteroid/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/turf/simulated/floor/plating/asteroid/attackby(obj/item/weapon/W, mob/user, params)
//note that this proc does not call ..()
if(!W || !user)
return 0
diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm
index b7d3df5920b..9285f95aa1d 100644
--- a/code/modules/mining/mint.dm
+++ b/code/modules/mining/mint.dm
@@ -52,7 +52,7 @@
return
-/obj/machinery/mineral/mint/attack_hand(user as mob) //TODO: Adamantine coins! -Durandan
+/obj/machinery/mineral/mint/attack_hand(mob/user) //TODO: Adamantine coins! -Durandan
var/dat = "
Coin Press"
@@ -206,7 +206,7 @@
src.updateUsrDialog()
return
-/obj/machinery/mineral/mint/proc/create_coins(var/P)
+/obj/machinery/mineral/mint/proc/create_coins(P)
var/turf/T = get_step(src,output_dir)
if(T)
var/obj/item/O = new P(src)
diff --git a/code/modules/mining/money_bag.dm b/code/modules/mining/money_bag.dm
index a8eefeb5bfc..ed6056c382a 100644
--- a/code/modules/mining/money_bag.dm
+++ b/code/modules/mining/money_bag.dm
@@ -11,7 +11,7 @@
burn_state = 0 //Burnable
burntime = 20
-/obj/item/weapon/moneybag/attack_hand(user as mob)
+/obj/item/weapon/moneybag/attack_hand(mob/user)
var/amt_gold = 0
var/amt_silver = 0
var/amt_diamond = 0
@@ -58,7 +58,7 @@
dat += text("Adamantine coins: [amt_adamantine]
Remove one")
user << browse("[dat]", "window=moneybag")
-/obj/item/weapon/moneybag/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/weapon/moneybag/attackby(obj/item/weapon/W, mob/user, params)
..()
if (istype(W, /obj/item/weapon/coin))
var/obj/item/weapon/coin/C = W
diff --git a/code/modules/mining/ores_coins.dm b/code/modules/mining/ores_coins.dm
index 52e97f3a423..e1089f54ac3 100644
--- a/code/modules/mining/ores_coins.dm
+++ b/code/modules/mining/ores_coins.dm
@@ -7,7 +7,7 @@
var/points = 0 //How many points this ore gets you from the ore redemption machine
var/refined_type = null //What this ore defaults to being refined into
-/obj/item/weapon/ore/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/item/weapon/ore/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/W = I
if(W.remove_fuel(15))
@@ -38,7 +38,7 @@
points = 1
refined_type = /obj/item/stack/sheet/glass
-/obj/item/weapon/ore/glass/attack_self(mob/living/user as mob)
+/obj/item/weapon/ore/glass/attack_self(mob/living/user)
user << "
You use the sand to make sandstone."
var/sandAmt = 1
for(var/obj/item/weapon/ore/glass/G in user.loc) // The sand on the floor
@@ -64,7 +64,7 @@
points = 36
refined_type = /obj/item/stack/sheet/mineral/plasma
-/obj/item/weapon/ore/plasma/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/item/weapon/ore/plasma/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/weldingtool))
var/obj/item/weapon/weldingtool/W = I
if(W.welding)
@@ -153,7 +153,7 @@
else
..()
-/obj/item/weapon/twohanded/required/gibtonite/bullet_act(var/obj/item/projectile/P)
+/obj/item/weapon/twohanded/required/gibtonite/bullet_act(obj/item/projectile/P)
GibtoniteReaction(P.firer)
..()
@@ -291,7 +291,7 @@
/obj/item/weapon/coin/antagtoken/New()
return
-/obj/item/weapon/coin/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/weapon/coin/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/CC = W
if(string_attached)
@@ -319,7 +319,7 @@
user << "
You detach the string from the coin."
else ..()
-/obj/item/weapon/coin/attack_self(mob/user as mob)
+/obj/item/weapon/coin/attack_self(mob/user)
if(cooldown < world.time - 15)
var/coinflip = pick(sideslist)
cooldown = world.time
diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm
index edb420703b4..7daf6f2adf2 100644
--- a/code/modules/mining/satchel_ore_boxdm.dm
+++ b/code/modules/mining/satchel_ore_boxdm.dm
@@ -22,7 +22,7 @@
user << "
You empty the satchel into the box."
return
-/obj/structure/ore_box/attack_hand(mob/user as mob)
+/obj/structure/ore_box/attack_hand(mob/user)
var/amt_gold = 0
var/amt_silver = 0
var/amt_diamond = 0
diff --git a/code/modules/mob/dead/death.dm b/code/modules/mob/dead/death.dm
index 784b114690f..bd968c6b708 100644
--- a/code/modules/mob/dead/death.dm
+++ b/code/modules/mob/dead/death.dm
@@ -1,5 +1,5 @@
/mob/dead/dust() //ghosts can't be vaporised.
return
-/mob/dead/gib(var/animation = 1) //ghosts can't be gibbed.
+/mob/dead/gib(animation = 1) //ghosts can't be gibbed.
return
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index 81c39b3beb4..51f948910c1 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -78,7 +78,7 @@ Transfer_mind is there to check if mob is being deleted/not going to have a body
Works together with spawning an observer, noted above.
*/
-/mob/proc/ghostize(var/can_reenter_corpse = 1)
+/mob/proc/ghostize(can_reenter_corpse = 1)
if(key)
if(!cmptext(copytext(key,1,2),"@")) //aghost
var/mob/dead/observer/ghost = new(src) //Transfer safety to observer spawning proc.
@@ -202,7 +202,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
ManualFollow(target)
// This is the ghost's follow verb with an argument
-/mob/dead/observer/proc/ManualFollow(var/atom/movable/target)
+/mob/dead/observer/proc/ManualFollow(atom/movable/target)
if(target && target != src)
if(following && following == target)
return
diff --git a/code/modules/mob/dead/observer/say.dm b/code/modules/mob/dead/observer/say.dm
index bab94a00cac..bcef00b711b 100644
--- a/code/modules/mob/dead/observer/say.dm
+++ b/code/modules/mob/dead/observer/say.dm
@@ -1,4 +1,4 @@
-/mob/dead/observer/say(var/message)
+/mob/dead/observer/say(message)
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN))
if (!message)
diff --git a/code/modules/mob/interactive.dm b/code/modules/mob/interactive.dm
index b10f1dbb313..12d822561f4 100644
--- a/code/modules/mob/interactive.dm
+++ b/code/modules/mob/interactive.dm
@@ -60,7 +60,7 @@
var/list/functions = list("nearbyscan","combat","doorscan","shitcurity","chatter")
//botPool funcs
-/mob/living/carbon/human/interactive/proc/takeDelegate(var/mob/living/carbon/human/interactive/from,var/doReset=TRUE)
+/mob/living/carbon/human/interactive/proc/takeDelegate(mob/living/carbon/human/interactive/from,doReset=TRUE)
eye_color = "red"
if(from == src)
return FALSE
@@ -106,7 +106,7 @@
myjob.equip(src)
myjob.apply_fingerprints(src)
-/mob/living/carbon/human/interactive/attacked_by(var/obj/item/I, var/mob/living/user, var/def_zone)
+/mob/living/carbon/human/interactive/attacked_by(obj/item/I, mob/living/user, def_zone)
..()
retal = 1
retal_target = user
@@ -200,7 +200,7 @@
SSbp.insertBot(src)
-/mob/living/carbon/human/interactive/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/carbon/human/interactive/attack_hand(mob/living/carbon/human/M)
..()
if (health > 0)
if(M.a_intent == "help")
@@ -210,7 +210,7 @@
retal_target = M
//THESE EXIST FOR DEBUGGING OF THE DOING/INTEREST SYSTEM EASILY
-/mob/living/carbon/human/interactive/proc/doing2string(var/doin)
+/mob/living/carbon/human/interactive/proc/doing2string(doin)
var/toReturn = ""
if(!doin)
toReturn = "not doing anything"
@@ -222,7 +222,7 @@
toReturn += "and going somewhere"
return toReturn
-/mob/living/carbon/human/interactive/proc/interest2string(var/inter)
+/mob/living/carbon/human/interactive/proc/interest2string(inter)
var/toReturn = "Flatlined"
if(inter >= 0 && inter <= 25)
toReturn = "Very Bored"
@@ -234,7 +234,7 @@
toReturn = "Excited"
return toReturn
//END DEBUG
-/mob/living/carbon/human/interactive/proc/isnotfunc(var/checkDead = TRUE)
+/mob/living/carbon/human/interactive/proc/isnotfunc(checkDead = TRUE)
if(!canmove)
return 1
if(health <= 0 && checkDead)
@@ -269,7 +269,7 @@
main_hand = other_hand
other_hand = T
-/mob/living/carbon/human/interactive/proc/take_to_slot(var/obj/item/G)
+/mob/living/carbon/human/interactive/proc/take_to_slot(obj/item/G)
var/list/slots = list ("left pocket" = slot_l_store,"right pocket" = slot_r_store,"left hand" = slot_l_hand,"right hand" = slot_r_hand)
G.loc = src
if(G.force && G.force > best_force)
@@ -288,7 +288,7 @@
unEquip(I,TRUE)
update_hands = 1
-/mob/living/carbon/human/interactive/proc/targetRange(var/towhere)
+/mob/living/carbon/human/interactive/proc/targetRange(towhere)
return get_dist(get_turf(towhere), get_turf(src))
/mob/living/carbon/human/interactive/Life()
@@ -427,7 +427,7 @@
tryWalk(TARGET)
LAST_TARGET = TARGET
-/mob/living/carbon/human/interactive/proc/tryWalk(var/turf/TARGET)
+/mob/living/carbon/human/interactive/proc/tryWalk(turf/TARGET)
if(!isnotfunc())
if(!walk2derpless(TARGET))
timeout++
@@ -435,7 +435,7 @@
timeout++
-/mob/living/carbon/human/interactive/proc/walk2derpless(var/target)
+/mob/living/carbon/human/interactive/proc/walk2derpless(target)
set background = 1
var/turf/T = get_turf(target)
var/turf/D = get_step(src,dir)
@@ -452,7 +452,7 @@
doing = doing & ~TRAVEL
return 0
-/mob/living/carbon/human/interactive/proc/job2area(var/target)
+/mob/living/carbon/human/interactive/proc/job2area(target)
var/datum/job/T = target
if(T.title == "Assistant")
return /area/hallway/primary
@@ -471,14 +471,14 @@
else
return pick(/area/hallway,/area/crew_quarters)
-/mob/living/carbon/human/interactive/proc/target_filter(var/target)
+/mob/living/carbon/human/interactive/proc/target_filter(target)
var/list/L = target
for(var/atom/A in target)
if(istype(A,/area) || istype(A,/turf/space))
L -= A
return L
-/mob/living/carbon/human/interactive/proc/denied_filter(var/target)
+/mob/living/carbon/human/interactive/proc/denied_filter(target)
var/list/denied = list(/obj/structure/window,/obj/structure/table) //expand me
for(var/a in denied)
if(istype(target,a))
diff --git a/code/modules/mob/inventory.dm b/code/modules/mob/inventory.dm
index 5ba04b78a2d..4e0a620168d 100644
--- a/code/modules/mob/inventory.dm
+++ b/code/modules/mob/inventory.dm
@@ -19,7 +19,7 @@
return 0
//Puts the item into your l_hand if possible and calls all necessary triggers/updates. returns 1 on success.
-/mob/proc/put_in_l_hand(var/obj/item/W)
+/mob/proc/put_in_l_hand(obj/item/W)
if(!put_in_hand_check(W))
return 0
if(!l_hand)
@@ -38,7 +38,7 @@
//Puts the item into your r_hand if possible and calls all necessary triggers/updates. returns 1 on success.
-/mob/proc/put_in_r_hand(var/obj/item/W)
+/mob/proc/put_in_r_hand(obj/item/W)
if(!put_in_hand_check(W))
return 0
if(!r_hand)
@@ -55,19 +55,19 @@
return 1
return 0
-/mob/proc/put_in_hand_check(var/obj/item/W)
+/mob/proc/put_in_hand_check(obj/item/W)
if(lying && !(W.flags&ABSTRACT)) return 0
if(!istype(W)) return 0
return 1
//Puts the item into our active hand if possible. returns 1 on success.
-/mob/proc/put_in_active_hand(var/obj/item/W)
+/mob/proc/put_in_active_hand(obj/item/W)
if(hand) return put_in_l_hand(W)
else return put_in_r_hand(W)
//Puts the item into our inactive hand if possible. returns 1 on success.
-/mob/proc/put_in_inactive_hand(var/obj/item/W)
+/mob/proc/put_in_inactive_hand(obj/item/W)
if(hand) return put_in_r_hand(W)
else return put_in_l_hand(W)
@@ -75,7 +75,7 @@
//Puts the item our active hand if possible. Failing that it tries our inactive hand. Returns 1 on success.
//If both fail it drops it on the floor and returns 0.
//This is probably the main one you need to know :)
-/mob/proc/put_in_hands(var/obj/item/W)
+/mob/proc/put_in_hands(obj/item/W)
if(!W) return 0
if(put_in_active_hand(W)) return 1
else if(put_in_inactive_hand(W)) return 1
diff --git a/code/modules/mob/living/carbon/alien/alien.dm b/code/modules/mob/living/carbon/alien/alien.dm
index 02d7cc2a8e2..f4e3a3a3573 100644
--- a/code/modules/mob/living/carbon/alien/alien.dm
+++ b/code/modules/mob/living/carbon/alien/alien.dm
@@ -59,7 +59,7 @@
/mob/living/carbon/alien/getToxLoss()
return 0
-/mob/living/carbon/alien/handle_environment(var/datum/gas_mixture/environment)
+/mob/living/carbon/alien/handle_environment(datum/gas_mixture/environment)
//If there are alien weeds on the ground then heal if needed or give some toxins
if(locate(/obj/structure/alien/weeds) in loc)
@@ -132,7 +132,7 @@
bodytemperature += BODYTEMP_HEATING_MAX //If you're on fire, you heat up!
return
-/mob/living/carbon/alien/reagent_check(var/datum/reagent/R) //can metabolize all reagents
+/mob/living/carbon/alien/reagent_check(datum/reagent/R) //can metabolize all reagents
return 0
/mob/living/carbon/alien/IsAdvancedToolUser()
@@ -148,7 +148,7 @@
add_abilities_to_panel()
-/mob/living/carbon/alien/proc/AddAbility(var/obj/effect/proc_holder/alien/A)
+/mob/living/carbon/alien/proc/AddAbility(obj/effect/proc_holder/alien/A)
abilities.Add(A)
A.on_gain(src)
if(A.has_action)
diff --git a/code/modules/mob/living/carbon/alien/alien_defense.dm b/code/modules/mob/living/carbon/alien/alien_defense.dm
index 73c9fbe573c..fa0f58d7f07 100644
--- a/code/modules/mob/living/carbon/alien/alien_defense.dm
+++ b/code/modules/mob/living/carbon/alien/alien_defense.dm
@@ -6,7 +6,7 @@
As such, they can either help or harm other aliens. Help works like the human help command while harm is a simple nibble.
In all, this is a lot like the monkey code. /N
*/
-/mob/living/carbon/alien/attack_alien(mob/living/carbon/alien/M as mob)
+/mob/living/carbon/alien/attack_alien(mob/living/carbon/alien/M)
if (!ticker)
M << "You cannot attack people before the game has started."
return
@@ -43,11 +43,11 @@ In all, this is a lot like the monkey code. /N
return
-/mob/living/carbon/alien/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/carbon/alien/attack_larva(mob/living/carbon/alien/larva/L)
return attack_alien(L)
-/mob/living/carbon/alien/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/carbon/alien/attack_hand(mob/living/carbon/human/M)
if(..()) //to allow surgery to return properly.
return 0
@@ -62,7 +62,7 @@ In all, this is a lot like the monkey code. /N
return 0
-/mob/living/carbon/alien/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/carbon/alien/attack_paw(mob/living/carbon/monkey/M)
if(..())
if (stat != DEAD)
adjustBruteLoss(rand(1, 3))
@@ -70,13 +70,13 @@ In all, this is a lot like the monkey code. /N
return
-/mob/living/carbon/alien/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/carbon/alien/attack_animal(mob/living/simple_animal/M)
if(..())
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
adjustBruteLoss(damage)
updatehealth()
-/mob/living/carbon/alien/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/carbon/alien/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime attack
var/damage = rand(5, 35)
if(M.is_adult)
diff --git a/code/modules/mob/living/carbon/alien/death.dm b/code/modules/mob/living/carbon/alien/death.dm
index e8c0ac96c79..131ba6e65e0 100644
--- a/code/modules/mob/living/carbon/alien/death.dm
+++ b/code/modules/mob/living/carbon/alien/death.dm
@@ -1,7 +1,7 @@
/mob/living/carbon/alien/spawn_gibs()
xgibs(loc, viruses)
-/mob/living/carbon/alien/gib_animation(var/animate)
+/mob/living/carbon/alien/gib_animation(animate)
..(animate, "gibbed-a")
/mob/living/carbon/alien/spawn_dust()
@@ -10,7 +10,7 @@
/mob/living/carbon/alien/spawn_dust()
new /obj/effect/decal/remains/xeno(loc)
-/mob/living/carbon/alien/dust_animation(var/animate)
+/mob/living/carbon/alien/dust_animation(animate)
..(animate, "dust-a")
/mob/living/carbon/alien/dust(var/animation = 1)
diff --git a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
index 8b27de42f94..08e276eb289 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/alien_powers.dm
@@ -48,13 +48,13 @@ Doesn't work on other aliens/AI.*/
user.adjustToxLoss(-plasma_cost)
return 1
-/obj/effect/proc_holder/alien/proc/on_gain(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/proc/on_gain(mob/living/carbon/alien/user)
return
-/obj/effect/proc_holder/alien/proc/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/proc/fire(mob/living/carbon/alien/user)
return 1
-/obj/effect/proc_holder/alien/proc/cost_check(check_turf=0,var/mob/living/carbon/alien/user,var/silent = 0)
+/obj/effect/proc_holder/alien/proc/cost_check(check_turf=0,mob/living/carbon/alien/user,silent = 0)
if(user.stat)
if(!silent)
user << "
You must be conscious to do this."
@@ -77,7 +77,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_plant"
-/obj/effect/proc_holder/alien/plant/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/plant/fire(mob/living/carbon/alien/user)
if(locate(/obj/structure/alien/weeds/node) in get_turf(user))
src << "There's already a weed node here."
return 0
@@ -93,7 +93,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_whisper"
-/obj/effect/proc_holder/alien/whisper/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/whisper/fire(mob/living/carbon/alien/user)
var/mob/M = input("Select who to whisper to:","Whisper to?",null) as mob in oview(user)
if(!M)
return 0
@@ -113,7 +113,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_transfer"
-/obj/effect/proc_holder/alien/transfer/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/transfer/fire(mob/living/carbon/alien/user)
var/list/mob/living/carbon/alien/aliens_around = list()
for(var/mob/living/carbon/alien/A in oview(user))
aliens_around.Add(A)
@@ -141,10 +141,10 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_acid"
-/obj/effect/proc_holder/alien/acid/on_gain(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/acid/on_gain(mob/living/carbon/alien/user)
user.verbs.Add(/mob/living/carbon/alien/humanoid/proc/corrosive_acid)
-/obj/effect/proc_holder/alien/acid/proc/corrode(var/target,var/mob/living/carbon/alien/user = usr)
+/obj/effect/proc_holder/alien/acid/proc/corrode(target,mob/living/carbon/alien/user = usr)
if(target in oview(1,user))
// OBJ CHECK
if(isobj(target))
@@ -173,7 +173,7 @@ Doesn't work on other aliens/AI.*/
return 0
-/obj/effect/proc_holder/alien/acid/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/acid/fire(mob/living/carbon/alien/user)
var/O = input("Select what to dissolve:","Dissolve",null) as obj|turf in oview(1,user)
if(!O)
return 0
@@ -199,7 +199,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_neurotoxin"
-/obj/effect/proc_holder/alien/neurotoxin/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/neurotoxin/fire(mob/living/carbon/alien/user)
user.visible_message("
[user] spits neurotoxin!", "You spit neurotoxin.")
var/turf/T = user.loc
@@ -224,7 +224,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_resin"
-/obj/effect/proc_holder/alien/resin/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/resin/fire(mob/living/carbon/alien/user)
if(locate(/obj/structure/alien/resin) in user.loc.contents)
user << "There is already a resin structure there."
return 0
@@ -252,7 +252,7 @@ Doesn't work on other aliens/AI.*/
action_icon_state = "alien_barf"
-/obj/effect/proc_holder/alien/regurgitate/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/regurgitate/fire(mob/living/carbon/alien/user)
if(user.stomach_contents.len)
for(var/atom/movable/A in user.stomach_contents)
user.stomach_contents.Remove(A)
@@ -268,7 +268,7 @@ Doesn't work on other aliens/AI.*/
has_action = 0 // Has dedicated GUI button already
-/obj/effect/proc_holder/alien/nightvisiontoggle/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/nightvisiontoggle/fire(mob/living/carbon/alien/user)
if(!user.nightvision)
user.see_in_dark = 8
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
index a18f4b2ee00..ac8b2f4405d 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/drone.dm
@@ -31,7 +31,7 @@
action_icon_state = "alien_evolve_drone"
-/obj/effect/proc_holder/alien/evolve/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/evolve/fire(mob/living/carbon/alien/user)
var/no_queen = 1
for(var/mob/living/carbon/alien/humanoid/queen/Q in living_mob_list)
if(!Q.key || !Q.getorgan(/obj/item/organ/brain))
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
index a34c6337786..68fda08c934 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
@@ -44,7 +44,7 @@
//Hunter verbs
-/mob/living/carbon/alien/humanoid/hunter/proc/toggle_leap(var/message = 1)
+/mob/living/carbon/alien/humanoid/hunter/proc/toggle_leap(message = 1)
leap_on_click = !leap_on_click
leap_icon.icon_state = "leap_[leap_on_click ? "on":"off"]"
update_icons()
@@ -54,7 +54,7 @@
return
-/mob/living/carbon/alien/humanoid/hunter/ClickOn(var/atom/A, var/params)
+/mob/living/carbon/alien/humanoid/hunter/ClickOn(atom/A, params)
face_atom(A)
if(leap_on_click)
leap_at(A)
@@ -64,7 +64,7 @@
#define MAX_ALIEN_LEAP_DIST 7
-/mob/living/carbon/alien/humanoid/hunter/proc/leap_at(var/atom/A)
+/mob/living/carbon/alien/humanoid/hunter/proc/leap_at(atom/A)
if(pounce_cooldown)
src << "You are too fatigued to pounce right now!"
return
diff --git a/code/modules/mob/living/carbon/alien/humanoid/emote.dm b/code/modules/mob/living/carbon/alien/humanoid/emote.dm
index 73157d41c63..fd46ca92087 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/emote.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/alien/humanoid/emote(var/act)
+/mob/living/carbon/alien/humanoid/emote(act)
var/param = null
if (findtext(act, "-", 1, null))
diff --git a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
index cc695822032..4c27150e481 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/humanoid.dm
@@ -46,7 +46,7 @@
step_away(src,user,15)
return 1
-/mob/living/carbon/alien/humanoid/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/carbon/alien/humanoid/attack_hand(mob/living/carbon/human/M)
if(..())
switch(M.a_intent)
if ("harm")
diff --git a/code/modules/mob/living/carbon/alien/humanoid/queen.dm b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
index 1b58d61fb27..90e2fd474c8 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/queen.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/queen.dm
@@ -65,7 +65,7 @@
action_icon_state = "alien_egg"
-/obj/effect/proc_holder/alien/lay_egg/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/lay_egg/fire(mob/living/carbon/alien/user)
if(locate(/obj/structure/alien/egg) in get_turf(user))
user << "There's already an egg here."
return 0
diff --git a/code/modules/mob/living/carbon/alien/larva/inventory.dm b/code/modules/mob/living/carbon/alien/larva/inventory.dm
index 99298e50bbe..3cb46a54b2e 100644
--- a/code/modules/mob/living/carbon/alien/larva/inventory.dm
+++ b/code/modules/mob/living/carbon/alien/larva/inventory.dm
@@ -1,3 +1,3 @@
//can't unequip since it can't equip anything
-/mob/living/carbon/alien/larva/unEquip(obj/item/W as obj)
+/mob/living/carbon/alien/larva/unEquip(obj/item/W)
return
\ No newline at end of file
diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm
index 74c786143a7..d1b46a70481 100644
--- a/code/modules/mob/living/carbon/alien/larva/larva.dm
+++ b/code/modules/mob/living/carbon/alien/larva/larva.dm
@@ -52,7 +52,7 @@
step_away(src,user,15)
return 1
-/mob/living/carbon/alien/larva/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/carbon/alien/larva/attack_hand(mob/living/carbon/human/M)
if(..())
var/damage = rand(1, 9)
if (prob(90))
diff --git a/code/modules/mob/living/carbon/alien/larva/powers.dm b/code/modules/mob/living/carbon/alien/larva/powers.dm
index 093c727edc5..3bc9e44a910 100644
--- a/code/modules/mob/living/carbon/alien/larva/powers.dm
+++ b/code/modules/mob/living/carbon/alien/larva/powers.dm
@@ -5,7 +5,7 @@
action_icon_state = "alien_hide"
-/obj/effect/proc_holder/alien/hide/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/hide/fire(mob/living/carbon/alien/user)
if(user.stat != CONSCIOUS)
return
@@ -27,7 +27,7 @@
action_icon_state = "alien_evolve_larva"
-/obj/effect/proc_holder/alien/larva_evolve/fire(var/mob/living/carbon/alien/user)
+/obj/effect/proc_holder/alien/larva_evolve/fire(mob/living/carbon/alien/user)
if(!islarva(user))
return
var/mob/living/carbon/alien/larva/L = user
diff --git a/code/modules/mob/living/carbon/alien/say.dm b/code/modules/mob/living/carbon/alien/say.dm
index 3bf5ead3260..03aea6db380 100644
--- a/code/modules/mob/living/carbon/alien/say.dm
+++ b/code/modules/mob/living/carbon/alien/say.dm
@@ -1,9 +1,9 @@
-/mob/living/carbon/alien/say(var/message)
+/mob/living/carbon/alien/say(message)
. = ..(message, "A")
if(.)
playsound(loc, "hiss", 25, 1, 1) //erp just isn't the same without sound feedback
-/mob/living/proc/alien_talk(var/message)
+/mob/living/proc/alien_talk(message)
log_say("[key_name(src)] : [message]")
message = trim(message)
diff --git a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
index d7c223124b6..57db5c8890b 100644
--- a/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
+++ b/code/modules/mob/living/carbon/alien/special/alien_embryo.dm
@@ -50,7 +50,7 @@ var/const/ALIEN_AFK_BRACKET = 450 // 45 seconds
-/obj/item/body_egg/alien_embryo/proc/AttemptGrow(var/gib_on_success = 1)
+/obj/item/body_egg/alien_embryo/proc/AttemptGrow(gib_on_success = 1)
var/list/candidates = get_candidates(BE_ALIEN, ALIEN_AFK_BRACKET)
var/client/C = null
diff --git a/code/modules/mob/living/carbon/alien/special/facehugger.dm b/code/modules/mob/living/carbon/alien/special/facehugger.dm
index c053d20c090..04dfc223b1a 100644
--- a/code/modules/mob/living/carbon/alien/special/facehugger.dm
+++ b/code/modules/mob/living/carbon/alien/special/facehugger.dm
@@ -28,17 +28,17 @@ var/const/MAX_ACTIVE_TIME = 400
var/attached = 0
-/obj/item/clothing/mask/facehugger/attack_alien(user as mob) //can be picked up by aliens
+/obj/item/clothing/mask/facehugger/attack_alien(mob/user) //can be picked up by aliens
attack_hand(user)
return
-/obj/item/clothing/mask/facehugger/attack_hand(user as mob)
+/obj/item/clothing/mask/facehugger/attack_hand(mob/user)
if((stat == CONSCIOUS && !sterile) && !isalien(user))
if(Attach(user))
return
..()
-/obj/item/clothing/mask/facehugger/attack(mob/living/M as mob, mob/user as mob)
+/obj/item/clothing/mask/facehugger/attack(mob/living/M, mob/user)
..()
user.unEquip(src)
Attach(M)
@@ -55,12 +55,12 @@ var/const/MAX_ACTIVE_TIME = 400
if (sterile)
user << "It looks like the proboscis has been removed."
-/obj/item/clothing/mask/facehugger/attackby(var/obj/item/O,var/mob/m, params)
+/obj/item/clothing/mask/facehugger/attackby(obj/item/O,mob/m, params)
if(O.force)
Die()
return
-/obj/item/clothing/mask/facehugger/bullet_act(var/obj/item/projectile/P)
+/obj/item/clothing/mask/facehugger/bullet_act(obj/item/projectile/P)
if(P.damage)
Die()
return
@@ -77,7 +77,7 @@ var/const/MAX_ACTIVE_TIME = 400
HasProximity(target)
return
-/obj/item/clothing/mask/facehugger/on_found(mob/finder as mob)
+/obj/item/clothing/mask/facehugger/on_found(mob/finder)
if(stat == CONSCIOUS)
return HasProximity(finder)
return 0
@@ -102,7 +102,7 @@ var/const/MAX_ACTIVE_TIME = 400
icon_state = "[initial(icon_state)]"
Attach(hit_atom)
-/obj/item/clothing/mask/facehugger/proc/Attach(M as mob)
+/obj/item/clothing/mask/facehugger/proc/Attach(mob/M)
if( (!iscorgi(M) && !iscarbon(M)) || isalien(M))
return 0
if(attached)
@@ -158,7 +158,7 @@ var/const/MAX_ACTIVE_TIME = 400
return 1
-/obj/item/clothing/mask/facehugger/proc/Impregnate(mob/living/target as mob)
+/obj/item/clothing/mask/facehugger/proc/Impregnate(mob/living/target)
if(!target || target.stat == DEAD) //was taken off or something
return
@@ -229,7 +229,7 @@ var/const/MAX_ACTIVE_TIME = 400
return
-/proc/CanHug(var/mob/M)
+/proc/CanHug(mob/M)
if(!istype(M))
return 0
if(M.stat == DEAD)
diff --git a/code/modules/mob/living/carbon/brain/MMI.dm b/code/modules/mob/living/carbon/brain/MMI.dm
index 4bca8132157..3655e7a183c 100644
--- a/code/modules/mob/living/carbon/brain/MMI.dm
+++ b/code/modules/mob/living/carbon/brain/MMI.dm
@@ -31,7 +31,7 @@
else
icon_state = "mmi_empty"
-/obj/item/device/mmi/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/item/device/mmi/attackby(obj/item/O, mob/user, params)
user.changeNext_move(CLICK_CD_MELEE)
if(istype(O,/obj/item/organ/brain)) //Time to stick a brain in it --NEO
var/obj/item/organ/brain/newbrain = O
@@ -85,7 +85,7 @@
return
..()
-/obj/item/device/mmi/attack_self(mob/user as mob)
+/obj/item/device/mmi/attack_self(mob/user)
if(!brain)
user << "You upend the MMI, but there's nothing in it!"
else if(locked)
@@ -105,7 +105,7 @@
update_icon()
name = "Man-Machine Interface"
-/obj/item/device/mmi/proc/transfer_identity(var/mob/living/carbon/human/H) //Same deal as the regular brain proc. Used for human-->robot people.
+/obj/item/device/mmi/proc/transfer_identity(mob/living/carbon/human/H) //Same deal as the regular brain proc. Used for human-->robot people.
brainmob = new(src)
brainmob.name = H.real_name
brainmob.real_name = H.real_name
diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm
index 2197876bc1c..3eec0aa657d 100644
--- a/code/modules/mob/living/carbon/brain/brain.dm
+++ b/code/modules/mob/living/carbon/brain/brain.dm
@@ -33,12 +33,12 @@
/mob/living/carbon/brain/blob_act()
return
-/mob/living/carbon/brain/on_forcemove(var/atom/newloc)
+/mob/living/carbon/brain/on_forcemove(atom/newloc)
if(container)
container.loc = newloc
else //something went very wrong.
CRASH("Brainmob without container.")
loc = container
-/mob/living/carbon/brain/UnarmedAttack(var/atom/A)//Stops runtimes due to attack_animal being the default
+/mob/living/carbon/brain/UnarmedAttack(atom/A)//Stops runtimes due to attack_animal being the default
return
diff --git a/code/modules/mob/living/carbon/brain/death.dm b/code/modules/mob/living/carbon/brain/death.dm
index 5490d786297..f97ddb1a3db 100644
--- a/code/modules/mob/living/carbon/brain/death.dm
+++ b/code/modules/mob/living/carbon/brain/death.dm
@@ -19,7 +19,7 @@
return ..(gibbed)
-/mob/living/carbon/brain/gib(var/animation = 0)
+/mob/living/carbon/brain/gib(animation = 0)
if(container && istype(container, /obj/item/device/mmi))
qdel(container)//Gets rid of the MMI if there is one
if(loc)
diff --git a/code/modules/mob/living/carbon/brain/emote.dm b/code/modules/mob/living/carbon/brain/emote.dm
index 4a75b2765fe..c9feda102b4 100644
--- a/code/modules/mob/living/carbon/brain/emote.dm
+++ b/code/modules/mob/living/carbon/brain/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/brain/emote(var/act,var/m_type=1,var/message = null)
+/mob/living/carbon/brain/emote(act,m_type=1,message = null)
if(!(container && istype(container, /obj/item/device/mmi)))//No MMI, no emotes
return
diff --git a/code/modules/mob/living/carbon/brain/posibrain.dm b/code/modules/mob/living/carbon/brain/posibrain.dm
index 37a596ab08a..f2d90fdc84d 100644
--- a/code/modules/mob/living/carbon/brain/posibrain.dm
+++ b/code/modules/mob/living/carbon/brain/posibrain.dm
@@ -21,14 +21,14 @@ var/global/posibrain_notif_cooldown = 0
if(istype(ghost))
activate(ghost)
-/obj/item/device/mmi/posibrain/proc/ping_ghosts(var/msg)
+/obj/item/device/mmi/posibrain/proc/ping_ghosts(msg)
if(!posibrain_notif_cooldown)
notify_ghosts("Positronic Brain [msg] in [get_area(src)]. (Enter)")
posibrain_notif_cooldown = 1
spawn(askDelay) //Global one minute cooldown to avoid spam.
posibrain_notif_cooldown = 0
-/obj/item/device/mmi/posibrain/attack_self(mob/user as mob)
+/obj/item/device/mmi/posibrain/attack_self(mob/user)
if(brainmob && !brainmob.key && !notified)
//Start the process of notified for a new user.
user << "You carefully locate the manual activation switch and start the positronic brain's boot process."
@@ -56,7 +56,7 @@ var/global/posibrain_notif_cooldown = 0
return
transfer_personality(user)
-/obj/item/device/mmi/posibrain/transfer_identity(var/mob/living/carbon/H)
+/obj/item/device/mmi/posibrain/transfer_identity(mob/living/carbon/H)
name = "positronic brain ([H])"
brainmob.name = H.real_name
brainmob.real_name = H.real_name
@@ -77,7 +77,7 @@ var/global/posibrain_notif_cooldown = 0
update_icon()
return
-/obj/item/device/mmi/posibrain/proc/transfer_personality(var/mob/candidate)
+/obj/item/device/mmi/posibrain/proc/transfer_personality(mob/candidate)
if(brainmob && brainmob.key) //Prevents hostile takeover if two ghosts get the prompt or link for the same brain.
candidate << "This brain has already been taken! Please try your possesion again later!"
return
@@ -135,7 +135,7 @@ var/global/posibrain_notif_cooldown = 0
..()
-/obj/item/device/mmi/posibrain/attackby(var/obj/item/O as obj, var/mob/user as mob)
+/obj/item/device/mmi/posibrain/attackby(obj/item/O, mob/user)
return
diff --git a/code/modules/mob/living/carbon/brain/say.dm b/code/modules/mob/living/carbon/brain/say.dm
index ac45baaf338..1086ba0ef1d 100644
--- a/code/modules/mob/living/carbon/brain/say.dm
+++ b/code/modules/mob/living/carbon/brain/say.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/brain/say(var/message)
+/mob/living/carbon/brain/say(message)
if(!(container && istype(container, /obj/item/device/mmi)))
return //No MMI, can't speak, bucko./N
else
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index c3c789b3b9d..83f2425156a 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -35,7 +35,7 @@
if(legcuffed)
. += legcuffed.slowdown
-/mob/living/carbon/relaymove(var/mob/user, direction)
+/mob/living/carbon/relaymove(mob/user, direction)
if(user in src.stomach_contents)
if(prob(40))
if(prob(25))
@@ -65,7 +65,7 @@
stomach_contents.Remove(A)
src.gib()
-/mob/living/carbon/gib(var/animation = 1)
+/mob/living/carbon/gib(animation = 1)
for(var/mob/M in src)
if(M in stomach_contents)
stomach_contents.Remove(M)
@@ -74,7 +74,7 @@
. = ..()
-/mob/living/carbon/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0)
+/mob/living/carbon/electrocute_act(shock_damage, obj/source, siemens_coeff = 1.0)
shock_damage *= siemens_coeff
if (shock_damage<1)
return 0
@@ -119,7 +119,7 @@
src.hands.dir = SOUTH*/
return
-/mob/living/carbon/activate_hand(var/selhand) //0 or "r" or "right" for right hand; 1 or "l" or "left" for left hand.
+/mob/living/carbon/activate_hand(selhand) //0 or "r" or "right" for right hand; 1 or "l" or "left" for left hand.
if(istext(selhand))
selhand = lowertext(selhand)
@@ -360,10 +360,10 @@ var/const/NO_SLIP_WHEN_WALKING = 1
var/const/STEP = 2
var/const/SLIDE = 4
var/const/GALOSHES_DONT_HELP = 8
-/mob/living/carbon/slip(var/s_amount, var/w_amount, var/obj/O, var/lube)
+/mob/living/carbon/slip(s_amount, w_amount, obj/O, lube)
loc.handle_slip(src, s_amount, w_amount, O, lube)
-/mob/living/carbon/fall(var/forced)
+/mob/living/carbon/fall(forced)
loc.handle_fall(src, forced)//it's loc so it doesn't call the mob's handle_fall which does nothing
/mob/living/carbon/is_muzzled()
@@ -435,7 +435,7 @@ var/const/GALOSHES_DONT_HELP = 8
cuff_resist(I)
-/mob/living/carbon/proc/cuff_resist(obj/item/I, var/breakouttime = 600, cuff_break = 0)
+/mob/living/carbon/proc/cuff_resist(obj/item/I, breakouttime = 600, cuff_break = 0)
if(istype(I, /obj/item/weapon/restraints))
var/obj/item/weapon/restraints/R = I
breakouttime = R.breakouttime
@@ -526,7 +526,7 @@ var/const/GALOSHES_DONT_HELP = 8
if(head && (head.flags & HEADBANGPROTECT))
return 1
-/mob/living/carbon/proc/accident(var/obj/item/I)
+/mob/living/carbon/proc/accident(obj/item/I)
if(!I || (I.flags & NODROP))
return
diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm
index 65cdef581b1..7ef10003c95 100644
--- a/code/modules/mob/living/carbon/carbon_defense.dm
+++ b/code/modules/mob/living/carbon/carbon_defense.dm
@@ -43,7 +43,7 @@
return 0
-/mob/living/carbon/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/carbon/attack_paw(mob/living/carbon/monkey/M)
if(!istype(M, /mob/living/carbon))
return 0
diff --git a/code/modules/mob/living/carbon/emote.dm b/code/modules/mob/living/carbon/emote.dm
index cdbb56ad240..320ae709bc3 100644
--- a/code/modules/mob/living/carbon/emote.dm
+++ b/code/modules/mob/living/carbon/emote.dm
@@ -2,7 +2,7 @@
//Things like airguitar can be done without arms, and the flap thing makes so little sense it's a keeper.
//Intended to be called by a higher up emote proc if the requested emote isn't in the custom emotes.
-/mob/living/carbon/emote(var/act,var/m_type=1,var/message = null)
+/mob/living/carbon/emote(act,m_type=1,message = null)
var/param = null
if (findtext(act, "-", 1, null))
diff --git a/code/modules/mob/living/carbon/human/blood.dm b/code/modules/mob/living/carbon/human/blood.dm
index 289fb8e5ee8..d03805d7d22 100644
--- a/code/modules/mob/living/carbon/human/blood.dm
+++ b/code/modules/mob/living/carbon/human/blood.dm
@@ -32,7 +32,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
if(B.id == "blood")
B.data = list("donor"=src,"viruses"=null,"blood_DNA"=dna.unique_enzymes,"blood_type"=dna.blood_type,"resistances"=null,"trace_chem"=null,"mind"=null,"ckey"=null,"gender"=null,"real_name"=null,"cloneable"=null,"features"=null, "factions"=null)
-/mob/living/carbon/human/proc/suppress_bloodloss(var/amount)
+/mob/living/carbon/human/proc/suppress_bloodloss(amount)
if(bleedsuppress)
return
else
@@ -124,7 +124,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
drip(blood_max)
//Makes a blood drop, leaking amt units of blood from the mob
-/mob/living/carbon/human/proc/drip(var/amt as num)
+/mob/living/carbon/human/proc/drip(amt as num)
if(!amt)
return
@@ -138,7 +138,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
****************************************************/
//Gets blood from mob to the container, preserving all data in it.
-/mob/living/carbon/proc/take_blood(obj/item/weapon/reagent_containers/container, var/amount)
+/mob/living/carbon/proc/take_blood(obj/item/weapon/reagent_containers/container, amount)
var/datum/reagent/B = get_blood(container.reagents)
if(!B) B = new /datum/reagent/blood
@@ -177,7 +177,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
return B
//For humans, blood does not appear from blue, it comes from vessels.
-/mob/living/carbon/human/take_blood(obj/item/weapon/reagent_containers/container, var/amount)
+/mob/living/carbon/human/take_blood(obj/item/weapon/reagent_containers/container, amount)
if(NOBLOOD in dna.species.specflags)
return null
@@ -189,7 +189,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
vessel.remove_reagent("blood",amount) // Removes blood if human
//Transfers blood from container to vessels
-/mob/living/carbon/proc/inject_blood(obj/item/weapon/reagent_containers/container, var/amount)
+/mob/living/carbon/proc/inject_blood(obj/item/weapon/reagent_containers/container, amount)
var/datum/reagent/blood/injected = get_blood(container.reagents)
@@ -205,7 +205,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
container.reagents.remove_reagent("blood", amount)
//Transfers blood from container to vessels, respecting blood types compatibility.
-/mob/living/carbon/human/inject_blood(obj/item/weapon/reagent_containers/container, var/amount)
+/mob/living/carbon/human/inject_blood(obj/item/weapon/reagent_containers/container, amount)
var/datum/reagent/blood/injected = get_blood(container.reagents)
@@ -261,7 +261,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
//AB is a universal receiver.
return 0
-/proc/blood_splatter(var/target,var/datum/reagent/blood/source,var/large)
+/proc/blood_splatter(target,datum/reagent/blood/source,large)
var/obj/effect/decal/cleanable/blood/B
var/decal_type = /obj/effect/decal/cleanable/blood/splatter
diff --git a/code/modules/mob/living/carbon/human/death.dm b/code/modules/mob/living/carbon/human/death.dm
index 2f84b03bd20..0e91f3f1d66 100644
--- a/code/modules/mob/living/carbon/human/death.dm
+++ b/code/modules/mob/living/carbon/human/death.dm
@@ -1,10 +1,10 @@
-/mob/living/carbon/human/gib_animation(var/animate)
+/mob/living/carbon/human/gib_animation(animate)
..(animate, "gibbed-h")
-/mob/living/carbon/human/dust_animation(var/animate)
+/mob/living/carbon/human/dust_animation(animate)
..(animate, "dust-h")
-/mob/living/carbon/human/dust(var/animation = 1)
+/mob/living/carbon/human/dust(animation = 1)
..()
/mob/living/carbon/human/spawn_gibs()
diff --git a/code/modules/mob/living/carbon/human/emote.dm b/code/modules/mob/living/carbon/human/emote.dm
index 0c274d56ebf..5fc5e054f69 100644
--- a/code/modules/mob/living/carbon/human/emote.dm
+++ b/code/modules/mob/living/carbon/human/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/human/emote(var/act,var/m_type=1,var/message = null)
+/mob/living/carbon/human/emote(act,m_type=1,message = null)
var/param = null
if (findtext(act, "-", 1, null))
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index 1f5f0b11935..84cf8e339e1 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -259,7 +259,7 @@
// called when something steps onto a human
// this could be made more general, but for now just handle mulebot
-/mob/living/carbon/human/Crossed(var/atom/movable/AM)
+/mob/living/carbon/human/Crossed(atom/movable/AM)
var/obj/machinery/bot/mulebot/MB = AM
if(istype(MB))
MB.RunOver(src)
@@ -267,7 +267,7 @@
spreadFire(AM)
//Added a safety check in case you want to shock a human mob directly through electrocute_act.
-/mob/living/carbon/human/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0, var/safety = 0)
+/mob/living/carbon/human/electrocute_act(shock_damage, obj/source, siemens_coeff = 1.0, safety = 0)
if(!safety)
if(gloves)
var/obj/item/clothing/gloves/G = gloves
@@ -533,7 +533,7 @@
/mob/living/carbon/human/proc/canUseHUD()
return !(src.stat || src.weakened || src.stunned || src.restrained())
-/mob/living/carbon/human/can_inject(var/mob/user, var/error_msg, var/target_zone)
+/mob/living/carbon/human/can_inject(mob/user, error_msg, target_zone)
. = 1 // Default to returning true.
if(user && !target_zone)
target_zone = user.zone_sel.selecting
@@ -575,7 +575,7 @@
else
return null
-/mob/living/carbon/human/assess_threat(var/obj/machinery/bot/secbot/judgebot, var/lasercolor)
+/mob/living/carbon/human/assess_threat(obj/machinery/bot/secbot/judgebot, lasercolor)
if(judgebot.emagged == 2)
return 10 //Everyone is a criminal!
diff --git a/code/modules/mob/living/carbon/human/human_attackalien.dm b/code/modules/mob/living/carbon/human/human_attackalien.dm
index 31c04c06b2f..30e03e615cb 100644
--- a/code/modules/mob/living/carbon/human/human_attackalien.dm
+++ b/code/modules/mob/living/carbon/human/human_attackalien.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/human/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/carbon/human/attack_alien(mob/living/carbon/alien/humanoid/M)
if(check_shields(0, M.name))
visible_message("[M] attempted to touch [src]!")
return 0
diff --git a/code/modules/mob/living/carbon/human/human_attackpaw.dm b/code/modules/mob/living/carbon/human/human_attackpaw.dm
index c8372f814d6..54c47761514 100644
--- a/code/modules/mob/living/carbon/human/human_attackpaw.dm
+++ b/code/modules/mob/living/carbon/human/human_attackpaw.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/human/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/carbon/human/attack_paw(mob/living/carbon/monkey/M)
var/dam_zone = pick("chest", "l_hand", "r_hand", "l_leg", "r_leg")
var/obj/item/organ/limb/affecting = get_organ(ran_zone(dam_zone))
diff --git a/code/modules/mob/living/carbon/human/human_damage.dm b/code/modules/mob/living/carbon/human/human_damage.dm
index 48250417654..af0c7205b31 100644
--- a/code/modules/mob/living/carbon/human/human_damage.dm
+++ b/code/modules/mob/living/carbon/human/human_damage.dm
@@ -33,13 +33,13 @@
return amount
-/mob/living/carbon/human/adjustBruteLoss(var/amount)
+/mob/living/carbon/human/adjustBruteLoss(amount)
if(amount > 0)
take_overall_damage(amount, 0)
else
heal_overall_damage(-amount, 0)
-/mob/living/carbon/human/adjustFireLoss(var/amount)
+/mob/living/carbon/human/adjustFireLoss(amount)
if(amount > 0)
take_overall_damage(0, amount)
else
@@ -58,7 +58,7 @@
////////////////////////////////////////////
//Returns a list of damaged organs
-/mob/living/carbon/human/proc/get_damaged_organs(var/brute, var/burn)
+/mob/living/carbon/human/proc/get_damaged_organs(brute, burn)
var/list/obj/item/organ/limb/parts = list()
for(var/obj/item/organ/limb/O in organs)
if((brute && O.brute_dam) || (burn && O.burn_dam))
@@ -76,7 +76,7 @@
//Heals ONE external organ, organ gets randomly selected from damaged ones.
//It automatically updates damage overlays if necesary
//It automatically updates health status
-/mob/living/carbon/human/heal_organ_damage(var/brute, var/burn)
+/mob/living/carbon/human/heal_organ_damage(brute, burn)
var/list/obj/item/organ/limb/parts = get_damaged_organs(brute,burn)
if(!parts.len) return
var/obj/item/organ/limb/picked = pick(parts)
@@ -87,7 +87,7 @@
//Damages ONE external organ, organ gets randomly selected from damagable ones.
//It automatically updates damage overlays if necesary
//It automatically updates health status
-/mob/living/carbon/human/take_organ_damage(var/brute, var/burn)
+/mob/living/carbon/human/take_organ_damage(brute, burn)
var/list/obj/item/organ/limb/parts = get_damageable_organs()
if(!parts.len) return
var/obj/item/organ/limb/picked = pick(parts)
@@ -98,7 +98,7 @@
//Heal MANY external organs, in random order
-/mob/living/carbon/human/heal_overall_damage(var/brute, var/burn)
+/mob/living/carbon/human/heal_overall_damage(brute, burn)
var/list/obj/item/organ/limb/parts = get_damaged_organs(brute,burn)
var/update = 0
@@ -118,7 +118,7 @@
if(update) update_damage_overlays(0)
// damage MANY external organs, in random order
-/mob/living/carbon/human/take_overall_damage(var/brute, var/burn)
+/mob/living/carbon/human/take_overall_damage(brute, burn)
if(status_flags & GODMODE) return //godmode
var/list/obj/item/organ/limb/parts = get_damageable_organs()
@@ -151,7 +151,7 @@
////////////////////////////////////////////
-/mob/living/carbon/human/proc/get_organ(var/zone)
+/mob/living/carbon/human/proc/get_organ(zone)
if(!zone) zone = "chest"
for(var/obj/item/organ/limb/O in organs)
if(O.name == zone)
@@ -159,7 +159,7 @@
return null
-/mob/living/carbon/human/apply_damage(var/damage = 0,var/damagetype = BRUTE, var/def_zone = null, var/blocked = 0)
+/mob/living/carbon/human/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
if(dna) // if you have a species, it will run the apply_damage code there instead
dna.species.apply_damage(damage, damagetype, def_zone, blocked, src)
else
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 7e143f1baa0..72a5d682d0c 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -6,7 +6,7 @@ emp_act
*/
-/mob/living/carbon/human/getarmor(var/def_zone, var/type)
+/mob/living/carbon/human/getarmor(def_zone, type)
var/armorval = 0
var/organnum = 0
@@ -24,7 +24,7 @@ emp_act
return (armorval/max(organnum, 1))
-/mob/living/carbon/human/proc/checkarmor(var/obj/item/organ/limb/def_zone, var/type)
+/mob/living/carbon/human/proc/checkarmor(obj/item/organ/limb/def_zone, type)
if(!type) return 0
var/protection = 0
var/list/body_parts = list(head, wear_mask, wear_suit, w_uniform)
@@ -41,7 +41,7 @@ emp_act
dna.species.on_hit(proj_type, src)
return
-/mob/living/carbon/human/bullet_act(var/obj/item/projectile/P, var/def_zone)
+/mob/living/carbon/human/bullet_act(obj/item/projectile/P, def_zone)
if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam))
if(check_reflect(def_zone)) // Checks if you've passed a reflection% check
visible_message("The [P.name] gets reflected by [src]!", \
@@ -67,7 +67,7 @@ emp_act
return 2
return (..(P , def_zone))
-/mob/living/carbon/human/proc/check_reflect(var/def_zone) //Reflection checks for anything in your l_hand, r_hand, or wear_suit based on the reflection chance of the object
+/mob/living/carbon/human/proc/check_reflect(def_zone) //Reflection checks for anything in your l_hand, r_hand, or wear_suit based on the reflection chance of the object
if(wear_suit && istype(wear_suit, /obj/item/))
var/obj/item/I = wear_suit
if(I.IsReflect(def_zone) == 1)
@@ -85,7 +85,7 @@ emp_act
//End Here
-/mob/living/carbon/human/proc/check_shields(var/damage = 0, var/attack_text = "the attack", var/obj/item/O)
+/mob/living/carbon/human/proc/check_shields(damage = 0, attack_text = "the attack", obj/item/O)
if(O)
if(O.flags & NOSHIELD) //weapon ignores shields altogether
return 0
@@ -122,7 +122,7 @@ emp_act
return 0
-/mob/living/carbon/human/attacked_by(var/obj/item/I, var/mob/living/user, var/def_zone)
+/mob/living/carbon/human/attacked_by(obj/item/I, mob/living/user, def_zone)
if(!I || !user) return 0
var/obj/item/organ/limb/target_limb = get_organ(check_zone(user.zone_sel.selecting))
@@ -235,7 +235,7 @@ emp_act
src.Stun(5)
..()
-/mob/living/carbon/human/acid_act(var/acidpwr, var/toxpwr, var/acid_volume)
+/mob/living/carbon/human/acid_act(acidpwr, toxpwr, acid_volume)
var/list/damaged = list()
var/list/inventory_items_to_kill = list()
var/acidity = min(acidpwr*acid_volume/200, toxpwr)
@@ -382,7 +382,7 @@ emp_act
..()
-/mob/living/carbon/human/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/carbon/human/attack_animal(mob/living/simple_animal/M)
if(..())
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
if(check_shields(damage, "the [M.name]"))
@@ -394,7 +394,7 @@ emp_act
updatehealth()
-/mob/living/carbon/human/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/carbon/human/attack_larva(mob/living/carbon/alien/larva/L)
if(..()) //successful larva bite.
var/damage = rand(1, 3)
@@ -408,7 +408,7 @@ emp_act
updatehealth()
-/mob/living/carbon/human/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/carbon/human/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime attack
var/damage = rand(5, 25)
if(M.is_adult)
diff --git a/code/modules/mob/living/carbon/human/human_helpers.dm b/code/modules/mob/living/carbon/human/human_helpers.dm
index e163fb158e0..3e512e7b825 100644
--- a/code/modules/mob/living/carbon/human/human_helpers.dm
+++ b/code/modules/mob/living/carbon/human/human_helpers.dm
@@ -11,7 +11,7 @@
//gets assignment from ID or ID inside PDA or PDA itself
//Useful when player do something with computers
-/mob/living/carbon/human/proc/get_assignment(var/if_no_id = "No id", var/if_no_job = "No job")
+/mob/living/carbon/human/proc/get_assignment(if_no_id = "No id", if_no_job = "No job")
var/obj/item/weapon/card/id/id = get_idcard()
if(id)
. = id.assignment
@@ -26,7 +26,7 @@
//gets name from ID or ID inside PDA or PDA itself
//Useful when player do something with computers
-/mob/living/carbon/human/proc/get_authentification_name(var/if_no_id = "Unknown")
+/mob/living/carbon/human/proc/get_authentification_name(if_no_id = "Unknown")
var/obj/item/weapon/card/id/id = get_idcard()
if(id)
return id.registered_name
@@ -62,7 +62,7 @@
//gets name from ID or PDA itself, ID inside PDA doesn't matter
//Useful when player is being seen by other mobs
-/mob/living/carbon/human/proc/get_id_name(var/if_no_id = "Unknown")
+/mob/living/carbon/human/proc/get_id_name(if_no_id = "Unknown")
var/obj/item/weapon/storage/wallet/wallet = wear_id
var/obj/item/device/pda/pda = wear_id
var/obj/item/weapon/card/id/id = wear_id
@@ -115,7 +115,7 @@
tinted += MT.tint
return tinted
-/mob/living/carbon/human/abiotic(var/full_body = 0)
+/mob/living/carbon/human/abiotic(full_body = 0)
if(full_body && ((src.l_hand && !( src.l_hand.flags&ABSTRACT )) || (src.r_hand && !( src.r_hand.flags&ABSTRACT )) || (src.back || src.wear_mask || src.head || src.shoes || src.w_uniform || src.wear_suit || src.glasses || src.ears || src.gloves)))
return 1
diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm
index 5dc30d5535a..b0078a13719 100644
--- a/code/modules/mob/living/carbon/human/human_movement.dm
+++ b/code/modules/mob/living/carbon/human/human_movement.dm
@@ -5,7 +5,7 @@
. += ..()
. += config.human_delay
-/mob/living/carbon/human/Process_Spacemove(var/movement_dir = 0)
+/mob/living/carbon/human/Process_Spacemove(movement_dir = 0)
if(..())
return 1
@@ -24,7 +24,7 @@
return 0
-/mob/living/carbon/human/slip(var/s_amount, var/w_amount, var/obj/O, var/lube)
+/mob/living/carbon/human/slip(s_amount, w_amount, obj/O, lube)
if(isobj(shoes) && (shoes.flags&NOSLIP) && !(lube&GALOSHES_DONT_HELP))
return 0
.=..()
diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm
index 66c011ba797..a86275539aa 100644
--- a/code/modules/mob/living/carbon/human/inventory.dm
+++ b/code/modules/mob/living/carbon/human/inventory.dm
@@ -391,7 +391,7 @@
return
//Cycles through all clothing slots and tests them for destruction
-/mob/living/carbon/human/proc/shred_clothing(var/bomb,var/shock)
+/mob/living/carbon/human/proc/shred_clothing(bomb,shock)
var/covered_parts = 0 //The body parts that are protected by exterior clothing/armor
var/head_absorbed = 0 //How much of the shock the headgear absorbs when it is shredded. -1=it survives
var/suit_absorbed = 0 //How much of the shock the exosuit absorbs when it is shredded. -1=it survives
@@ -439,7 +439,7 @@
if(absorbed >= 0)
w_uniform.shred(bomb,shock-20-absorbed,src) //Uniforms are also annoying to get shredded
-/obj/item/proc/shred(var/bomb,var/shock,var/mob/living/carbon/human/Human)
+/obj/item/proc/shred(bomb,shock,mob/living/carbon/human/Human)
if(flags & ABSTRACT)
return -1
@@ -452,7 +452,7 @@
shredded = -1 //Heat protection = Fireproof
else if(shock > 0)
- if(prob(Clamp(shock,0,90)))
+ if(prob(max(shock-armor["bomb"],0)))
shredded = armor["bomb"] + 10 //It gets shredded, but it also absorbs the shock the clothes underneath would recieve by this amount
else
shredded = -1 //It survives explosion
diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm
index bfa438e032f..7da4365cf22 100644
--- a/code/modules/mob/living/carbon/human/life.dm
+++ b/code/modules/mob/living/carbon/human/life.dm
@@ -54,7 +54,7 @@
dna.species.spec_life(src) // for mutantraces
-/mob/living/carbon/human/calculate_affecting_pressure(var/pressure)
+/mob/living/carbon/human/calculate_affecting_pressure(pressure)
if((wear_suit && (wear_suit.flags & STOPSPRESSUREDMAGE)) && (head && (head.flags & STOPSPRESSUREDMAGE)))
return ONE_ATMOSPHERE
else
diff --git a/code/modules/mob/living/carbon/human/mutantrace.dm b/code/modules/mob/living/carbon/human/mutantrace.dm
index 30615bb624c..32ad63444b5 100644
--- a/code/modules/mob/living/carbon/human/mutantrace.dm
+++ b/code/modules/mob/living/carbon/human/mutantrace.dm
@@ -14,7 +14,7 @@ var/global/list/mutants_with_eyes = list( // these mutantraces have eyes
"jelly",
)
-/mob/living/carbon/human/proc/check_mutrace(var/mutneeded = "mut1", var/mutneededalt = "mut2")
+/mob/living/carbon/human/proc/check_mutrace(mutneeded = "mut1", mutneededalt = "mut2")
if(dna)
if(dna.mutantrace == mutneeded || dna.mutantrace == mutneededalt)
return 1
diff --git a/code/modules/mob/living/carbon/human/say.dm b/code/modules/mob/living/carbon/human/say.dm
index 491f878b2ec..8b0fdbe16d5 100644
--- a/code/modules/mob/living/carbon/human/say.dm
+++ b/code/modules/mob/living/carbon/human/say.dm
@@ -54,7 +54,7 @@
return !mind.miming
return 1
-/mob/living/carbon/human/proc/SetSpecialVoice(var/new_voice)
+/mob/living/carbon/human/proc/SetSpecialVoice(new_voice)
if(new_voice)
special_voice = new_voice
return
diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm
index e5e7060002d..887f52a85d4 100644
--- a/code/modules/mob/living/carbon/human/species.dm
+++ b/code/modules/mob/living/carbon/human/species.dm
@@ -103,10 +103,10 @@
//Please override this locally if you want to define when what species qualifies for what rank if human authority is enforced.
-/datum/species/proc/qualifies_for_rank(var/rank, var/list/features)
+/datum/species/proc/qualifies_for_rank(rank, list/features)
return 1
-/datum/species/proc/update_base_icon_state(var/mob/living/carbon/human/H)
+/datum/species/proc/update_base_icon_state(mob/living/carbon/human/H)
if(H.disabilities & HUSK)
H.remove_overlay(SPECIES_LAYER) // races lose their color
return "husk"
@@ -118,7 +118,7 @@
else
return "[id]"
-/datum/species/proc/update_color(var/mob/living/carbon/human/H)
+/datum/species/proc/update_color(mob/living/carbon/human/H)
H.remove_overlay(SPECIES_LAYER)
var/image/standing
@@ -143,7 +143,7 @@
H.apply_overlay(SPECIES_LAYER)
-/datum/species/proc/handle_hair(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_hair(mob/living/carbon/human/H)
H.remove_overlay(HAIR_LAYER)
var/datum/sprite_accessory/S
@@ -201,7 +201,7 @@
H.apply_overlay(HAIR_LAYER)
return
-/datum/species/proc/handle_body(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_body(mob/living/carbon/human/H)
H.remove_overlay(BODY_LAYER)
var/list/standing = list()
@@ -246,7 +246,7 @@
return
-/datum/species/proc/handle_mutant_bodyparts(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_mutant_bodyparts(mob/living/carbon/human/H)
var/list/bodyparts_to_add = mutant_bodyparts.Copy()
var/list/relevent_layers = list(BODY_BEHIND_LAYER, BODY_ADJ_LAYER, BODY_FRONT_LAYER)
var/list/standing = list()
@@ -390,17 +390,17 @@
H.apply_overlay(BODY_ADJ_LAYER)
H.apply_overlay(BODY_FRONT_LAYER)
-/datum/species/proc/spec_life(var/mob/living/carbon/human/H)
+/datum/species/proc/spec_life(mob/living/carbon/human/H)
return
-/datum/species/proc/spec_death(var/gibbed, var/mob/living/carbon/human/H)
+/datum/species/proc/spec_death(gibbed, mob/living/carbon/human/H)
return
-/datum/species/proc/auto_equip(var/mob/living/carbon/human/H)
+/datum/species/proc/auto_equip(mob/living/carbon/human/H)
// handles the equipping of species-specific gear
return
-/datum/species/proc/can_equip(var/obj/item/I, var/slot, var/disable_warning, var/mob/living/carbon/human/H)
+/datum/species/proc/can_equip(obj/item/I, slot, disable_warning, mob/living/carbon/human/H)
if(slot in no_equip)
if(!(type in I.species_exception))
return 0
@@ -555,23 +555,23 @@
return 0
return 0 //Unsupported slot
-/datum/species/proc/before_equip_job(var/datum/job/J, var/mob/living/carbon/human/H)
+/datum/species/proc/before_equip_job(datum/job/J, mob/living/carbon/human/H)
return
-/datum/species/proc/after_equip_job(var/datum/job/J, var/mob/living/carbon/human/H)
+/datum/species/proc/after_equip_job(datum/job/J, mob/living/carbon/human/H)
return
-/datum/species/proc/handle_chemicals(var/datum/reagent/chem, var/mob/living/carbon/human/H)
+/datum/species/proc/handle_chemicals(datum/reagent/chem, mob/living/carbon/human/H)
return 0
-/datum/species/proc/handle_speech(var/message, var/mob/living/carbon/human/H)
+/datum/species/proc/handle_speech(message, mob/living/carbon/human/H)
return message
////////
//LIFE//
////////
-/datum/species/proc/handle_chemicals_in_body(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_chemicals_in_body(mob/living/carbon/human/H)
//The fucking FAT mutation is the dumbest shit ever. It makes the code so difficult to work with
if(H.disabilities & FAT)
@@ -627,7 +627,7 @@
return
-/datum/species/proc/handle_vision(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_vision(mob/living/carbon/human/H)
if( H.stat == DEAD )
H.sight |= (SEE_TURFS|SEE_MOBS|SEE_OBJS)
H.see_in_dark = 8
@@ -699,7 +699,7 @@
return 1
-/datum/species/proc/handle_hud_icons(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_hud_icons(mob/living/carbon/human/H)
if(H.healths)
if(H.stat == DEAD)
H.healths.icon_state = "health7"
@@ -752,7 +752,7 @@
return 1
-/datum/species/proc/handle_mutations_and_radiation(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_mutations_and_radiation(mob/living/carbon/human/H)
if(!(RADIMMUNE in specflags))
if(H.radiation)
@@ -789,7 +789,7 @@
// MOVE SPEED //
////////////////
-/datum/species/proc/movement_delay(var/mob/living/carbon/human/H)
+/datum/species/proc/movement_delay(mob/living/carbon/human/H)
var/mspeed = 0
if(!(H.status_flags & IGNORESLOWDOWN))
@@ -850,7 +850,7 @@
// ATTACK PROCS //
//////////////////
-/datum/species/proc/spec_attack_hand(var/mob/living/carbon/human/M, var/mob/living/carbon/human/H)
+/datum/species/proc/spec_attack_hand(mob/living/carbon/human/M, mob/living/carbon/human/H)
if(!istype(M)) //sanity check for drones.
return
if((M != H) && H.check_shields(0, M.name))
@@ -982,7 +982,7 @@
"[M] attemped to disarm [H]!")
return
-/datum/species/proc/spec_attacked_by(var/obj/item/I, var/mob/living/user, var/def_zone, var/obj/item/organ/limb/affecting, var/hit_area, var/intent, var/obj/item/organ/limb/target_limb, target_area, var/mob/living/carbon/human/H)
+/datum/species/proc/spec_attacked_by(obj/item/I, mob/living/user, def_zone, obj/item/organ/limb/affecting, hit_area, intent, obj/item/organ/limb/target_limb, target_area, mob/living/carbon/human/H)
// Allows you to put in item-specific reactions based on species
if(user != src)
user.do_attack_animation(H)
@@ -1068,7 +1068,7 @@
H.forcesay(hit_appends) //forcesay checks stat already.
return
-/datum/species/proc/attacked_by(var/obj/item/I, var/mob/living/user, var/def_zone, var/mob/living/carbon/human/H)
+/datum/species/proc/attacked_by(obj/item/I, mob/living/user, def_zone, mob/living/carbon/human/H)
H.apply_damage(I.force, I.damtype)
if(I.damtype == "brute")
if(prob(33) && I.force && !(NOBLOOD in specflags))
@@ -1093,7 +1093,7 @@
return
-/datum/species/proc/apply_damage(var/damage, var/damagetype = BRUTE, var/def_zone = null, var/blocked, var/mob/living/carbon/human/H)
+/datum/species/proc/apply_damage(damage, damagetype = BRUTE, def_zone = null, blocked, mob/living/carbon/human/H)
blocked = (100-(blocked+armor))/100
if(blocked <= 0) return 0
@@ -1125,7 +1125,7 @@
if(STAMINA)
H.adjustStaminaLoss(damage * blocked)
-/datum/species/proc/on_hit(var/obj/item/projectile/proj_type, var/mob/living/carbon/human/H)
+/datum/species/proc/on_hit(obj/item/projectile/proj_type, mob/living/carbon/human/H)
// called when hit by a projectile
switch(proj_type)
if(/obj/item/projectile/energy/floramut) // overwritten by plants/pods
@@ -1138,7 +1138,7 @@
//BREATHING//
/////////////
-/datum/species/proc/breathe(var/mob/living/carbon/human/H)
+/datum/species/proc/breathe(mob/living/carbon/human/H)
return
/datum/species/proc/check_breath(datum/gas_mixture/breath, var/mob/living/carbon/human/H)
@@ -1276,7 +1276,7 @@
//Returns the amount of true_pp we breathed
-/datum/species/proc/handle_too_little_breath(var/mob/living/carbon/human/H = null,var/breath_pp = 0, var/safe_breath_min = 0, var/true_pp = 0)
+/datum/species/proc/handle_too_little_breath(mob/living/carbon/human/H = null,breath_pp = 0, safe_breath_min = 0, true_pp = 0)
. = 0
if(!H || !safe_breath_min) //the other args are either: Ok being 0 or Specifically handled.
return 0
@@ -1295,7 +1295,7 @@
H.failed_last_breath = 1
-/datum/species/proc/handle_breath_temperature(datum/gas_mixture/breath, var/mob/living/carbon/human/H) // called by human/life, handles temperatures
+/datum/species/proc/handle_breath_temperature(datum/gas_mixture/breath, mob/living/carbon/human/H) // called by human/life, handles temperatures
if(abs(310.15 - breath.temperature) > 50)
if(!(mutations_list[COLDRES] in H.dna.mutations)) // COLD DAMAGE
@@ -1316,7 +1316,7 @@
if(1000 to INFINITY)
H.apply_damage(HEAT_GAS_DAMAGE_LEVEL_3, BURN, "head")
-/datum/species/proc/handle_environment(datum/gas_mixture/environment, var/mob/living/carbon/human/H)
+/datum/species/proc/handle_environment(datum/gas_mixture/environment, mob/living/carbon/human/H)
if(!environment)
return
@@ -1357,7 +1357,7 @@
H.apply_damage(HEAT_DAMAGE_LEVEL_2*heatmod, BURN)
else if(H.bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT && !(mutations_list[COLDRES] in H.dna.mutations))
- if(!istype(H.loc, /obj/machinery/atmospherics/unary/cryo_cell))
+ if(!istype(H.loc, /obj/machinery/atmospherics/components/unary/cryo_cell))
switch(H.bodytemperature)
if(200 to 260)
H.throw_alert("temp","cold",1)
@@ -1403,15 +1403,15 @@
// FIRE //
//////////
-/datum/species/proc/handle_fire(var/mob/living/carbon/human/H)
+/datum/species/proc/handle_fire(mob/living/carbon/human/H)
if((HEATRES in specflags) || (NOFIRE in specflags))
return 1
-/datum/species/proc/IgniteMob(var/mob/living/carbon/human/H)
+/datum/species/proc/IgniteMob(mob/living/carbon/human/H)
if((HEATRES in specflags) || (NOFIRE in specflags))
return 1
-/datum/species/proc/ExtinguishMob(var/mob/living/carbon/human/H)
+/datum/species/proc/ExtinguishMob(mob/living/carbon/human/H)
return
#undef HUMAN_MAX_OXYLOSS
diff --git a/code/modules/mob/living/carbon/human/species_types.dm b/code/modules/mob/living/carbon/human/species_types.dm
index c8fa08fab3c..2549b1635bf 100644
--- a/code/modules/mob/living/carbon/human/species_types.dm
+++ b/code/modules/mob/living/carbon/human/species_types.dm
@@ -12,7 +12,7 @@
default_features = list("mcolor" = "FFF", "tail_human" = "None", "ears" = "None")
use_skintones = 1
-/datum/species/human/qualifies_for_rank(var/rank, var/list/features)
+/datum/species/human/qualifies_for_rank(rank, list/features)
if(!config.mutant_humans) //No mutie scum here
return 1
@@ -45,7 +45,7 @@
return 1
//Curiosity killed the cat's wagging tail.
-datum/species/human/spec_death(var/gibbed, var/mob/living/carbon/human/H)
+datum/species/human/spec_death(gibbed, mob/living/carbon/human/H)
if(H)
H.endTailWag()
@@ -79,7 +79,7 @@ datum/species/human/spec_death(var/gibbed, var/mob/living/carbon/human/H)
return randname
-/datum/species/lizard/qualifies_for_rank(var/rank, var/list/features)
+/datum/species/lizard/qualifies_for_rank(rank, list/features)
if(rank in command_positions)
return 0
return 1
@@ -92,7 +92,7 @@ datum/species/human/spec_death(var/gibbed, var/mob/living/carbon/human/H)
return message
//I wag in death
-/datum/species/lizard/spec_death(var/gibbed, var/mob/living/carbon/human/H)
+/datum/species/lizard/spec_death(gibbed, mob/living/carbon/human/H)
if(H)
H.endTailWag()
@@ -419,13 +419,13 @@ var/global/image/plasmaman_on_fire = image("icon"='icons/mob/OnFire.dmi', "icon_
name = "Skinbone"
skin = 1
-/datum/species/plasmaman/update_base_icon_state(var/mob/living/carbon/human/H)
+/datum/species/plasmaman/update_base_icon_state(mob/living/carbon/human/H)
var/base = ..()
if(base == id)
base = "[base][skin]"
return base
-/datum/species/plasmaman/spec_life(var/mob/living/carbon/human/H)
+/datum/species/plasmaman/spec_life(mob/living/carbon/human/H)
var/datum/gas_mixture/environment = H.loc.return_air()
if(!istype(H.wear_suit, /obj/item/clothing/suit/space/eva/plasmaman) || !istype(H.head, /obj/item/clothing/head/helmet/space/hardsuit/plasmaman))
diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm
index c33e23bbf8e..aa276babfbd 100644
--- a/code/modules/mob/living/carbon/human/update_icons.dm
+++ b/code/modules/mob/living/carbon/human/update_icons.dm
@@ -631,7 +631,7 @@ Please contact me on #coderbus IRC. ~Carnie x
var/standing = image("icon"=female_clothing_icons["[t_color]_s"], "layer"=-layer)
return(standing)
-/mob/living/carbon/human/proc/get_overlays_copy(var/list/unwantedLayers)
+/mob/living/carbon/human/proc/get_overlays_copy(list/unwantedLayers)
var/list/out = new
for(var/i=1;i<=TOTAL_LAYERS;i++)
if(overlays_standing[i])
diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm
index 40e05df8060..6573b1465cb 100644
--- a/code/modules/mob/living/carbon/life.dm
+++ b/code/modules/mob/living/carbon/life.dm
@@ -29,7 +29,7 @@
/mob/living/carbon/proc/breathe()
if(reagents.has_reagent("lexorin"))
return
- if(istype(loc, /obj/machinery/atmospherics/unary/cryo_cell))
+ if(istype(loc, /obj/machinery/atmospherics/components/unary/cryo_cell))
return
var/datum/gas_mixture/environment
diff --git a/code/modules/mob/living/carbon/monkey/death.dm b/code/modules/mob/living/carbon/monkey/death.dm
index cecda79cfc9..7e90fb4d386 100644
--- a/code/modules/mob/living/carbon/monkey/death.dm
+++ b/code/modules/mob/living/carbon/monkey/death.dm
@@ -1,7 +1,7 @@
-/mob/living/carbon/monkey/gib_animation(var/animate)
+/mob/living/carbon/monkey/gib_animation(animate)
..(animate, "gibbed-m")
-/mob/living/carbon/monkey/dust_animation(var/animate)
+/mob/living/carbon/monkey/dust_animation(animate)
..(animate, "dust-m")
/mob/living/carbon/monkey/dust(var/animation = 1)
diff --git a/code/modules/mob/living/carbon/monkey/emote.dm b/code/modules/mob/living/carbon/monkey/emote.dm
index eef8f22fcd1..e21d3a48bb7 100644
--- a/code/modules/mob/living/carbon/monkey/emote.dm
+++ b/code/modules/mob/living/carbon/monkey/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/carbon/monkey/emote(var/act)
+/mob/living/carbon/monkey/emote(act)
var/param = null
if (findtext(act, "-", 1, null))
diff --git a/code/modules/mob/living/carbon/monkey/life.dm b/code/modules/mob/living/carbon/monkey/life.dm
index bec6d68d0ae..112fe73cc82 100644
--- a/code/modules/mob/living/carbon/monkey/life.dm
+++ b/code/modules/mob/living/carbon/monkey/life.dm
@@ -89,7 +89,7 @@
adjustFireLoss(3)
else if(bodytemperature < BODYTEMP_COLD_DAMAGE_LIMIT)
- if(!istype(loc, /obj/machinery/atmospherics/unary/cryo_cell))
+ if(!istype(loc, /obj/machinery/atmospherics/components/unary/cryo_cell))
switch(bodytemperature)
if(200 to 260)
throw_alert("temp","cold",1)
diff --git a/code/modules/mob/living/carbon/monkey/monkey.dm b/code/modules/mob/living/carbon/monkey/monkey.dm
index da95fd25fdf..1d1bbcc64d5 100644
--- a/code/modules/mob/living/carbon/monkey/monkey.dm
+++ b/code/modules/mob/living/carbon/monkey/monkey.dm
@@ -48,7 +48,7 @@
tally += (283.222 - bodytemperature) / 10 * 1.75
return tally+config.monkey_delay
-/mob/living/carbon/monkey/attack_paw(mob/living/M as mob)
+/mob/living/carbon/monkey/attack_paw(mob/living/M)
if(..()) //successful monkey bite.
var/damage = rand(1, 5)
if (stat != DEAD)
@@ -56,7 +56,7 @@
updatehealth()
return
-/mob/living/carbon/monkey/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/carbon/monkey/attack_larva(mob/living/carbon/alien/larva/L)
if(..()) //successful larva bite.
var/damage = rand(1, 3)
if(stat != DEAD)
@@ -64,7 +64,7 @@
adjustBruteLoss(damage)
updatehealth()
-/mob/living/carbon/monkey/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/carbon/monkey/attack_hand(mob/living/carbon/human/M)
if(..()) //To allow surgery to return properly.
return
@@ -113,7 +113,7 @@
"[M] has disarmed [src]!")
return
-/mob/living/carbon/monkey/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/carbon/monkey/attack_alien(mob/living/carbon/alien/humanoid/M)
if(..()) //if harm or disarm intent.
if (M.a_intent == "harm")
if ((prob(95) && health > 0))
@@ -152,14 +152,14 @@
updatehealth()
return
-/mob/living/carbon/monkey/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/carbon/monkey/attack_animal(mob/living/simple_animal/M)
if(..())
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
adjustBruteLoss(damage)
updatehealth()
-/mob/living/carbon/monkey/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/carbon/monkey/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime attack
var/damage = rand(5, 35)
if(M.is_adult)
@@ -207,13 +207,13 @@
/mob/living/carbon/monkey/IsAdvancedToolUser()//Unless its monkey mode monkeys cant use advanced tools
return 0
-/mob/living/carbon/monkey/reagent_check(var/datum/reagent/R) //can metabolize all reagents
+/mob/living/carbon/monkey/reagent_check(datum/reagent/R) //can metabolize all reagents
return 0
/mob/living/carbon/monkey/canBeHandcuffed()
return 1
-/mob/living/carbon/monkey/assess_threat(var/obj/machinery/bot/secbot/judgebot, var/lasercolor)
+/mob/living/carbon/monkey/assess_threat(obj/machinery/bot/secbot/judgebot, lasercolor)
if(judgebot.emagged == 2)
return 10 //Everyone is a criminal!
var/threatcount = 0
@@ -247,7 +247,7 @@
return threatcount
-/mob/living/carbon/monkey/acid_act(var/acidpwr, var/toxpwr, var/acid_volume)
+/mob/living/carbon/monkey/acid_act(acidpwr, toxpwr, acid_volume)
if(wear_mask)
if(!wear_mask.unacidable)
wear_mask.acid_act(acidpwr)
diff --git a/code/modules/mob/living/carbon/monkey/update_icons.dm b/code/modules/mob/living/carbon/monkey/update_icons.dm
index 5be5fbc43b8..3e47c990d9d 100644
--- a/code/modules/mob/living/carbon/monkey/update_icons.dm
+++ b/code/modules/mob/living/carbon/monkey/update_icons.dm
@@ -35,7 +35,7 @@
overlays += I
////////
-/mob/living/carbon/monkey/update_inv_wear_mask(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_wear_mask(update_icons=1)
if(wear_mask && istype(wear_mask, /obj/item/clothing/mask) )
wear_mask.screen_loc = ui_monkey_mask
if(client && hud_used)
@@ -52,7 +52,7 @@
if(update_icons) update_icons()
-/mob/living/carbon/monkey/update_inv_head(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_head(update_icons=1)
if(head)
head.screen_loc = ui_monkey_head
if(client && hud_used)
@@ -67,7 +67,7 @@
if(update_icons) update_icons()
-/mob/living/carbon/monkey/update_inv_r_hand(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_r_hand(update_icons=1)
if (handcuffed)
drop_r_hand()
return
@@ -88,7 +88,7 @@
if(update_icons) update_icons()
-/mob/living/carbon/monkey/update_inv_l_hand(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_l_hand(update_icons=1)
if (handcuffed)
drop_l_hand()
return
@@ -109,7 +109,7 @@
if(update_icons) update_icons()
-/mob/living/carbon/monkey/update_inv_back(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_back(update_icons=1)
if(back)
back.screen_loc = ui_monkey_back
if(client && hud_used)
@@ -123,7 +123,7 @@
if(update_icons) update_icons()
-/mob/living/carbon/monkey/update_inv_handcuffed(var/update_icons=1)
+/mob/living/carbon/monkey/update_inv_handcuffed(update_icons=1)
if(handcuffed)
drop_r_hand()
drop_l_hand()
diff --git a/code/modules/mob/living/damage_procs.dm b/code/modules/mob/living/damage_procs.dm
index 89a35a4e605..2afbf5c033b 100644
--- a/code/modules/mob/living/damage_procs.dm
+++ b/code/modules/mob/living/damage_procs.dm
@@ -8,7 +8,7 @@
Returns
standard 0 if fail
*/
-/mob/living/proc/apply_damage(var/damage = 0,var/damagetype = BRUTE, var/def_zone = null, var/blocked = 0)
+/mob/living/proc/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
blocked = (100-blocked)/100
if(!damage || (blocked <= 0)) return 0
switch(damagetype)
@@ -28,7 +28,7 @@
return 1
-/mob/living/proc/apply_damages(var/brute = 0, var/burn = 0, var/tox = 0, var/oxy = 0, var/clone = 0, var/def_zone = null, var/blocked = 0, var/stamina = 0)
+/mob/living/proc/apply_damages(brute = 0, burn = 0, tox = 0, oxy = 0, clone = 0, def_zone = null, blocked = 0, stamina = 0)
if(blocked >= 100) return 0
if(brute) apply_damage(brute, BRUTE, def_zone, blocked)
if(burn) apply_damage(burn, BURN, def_zone, blocked)
@@ -40,7 +40,7 @@
-/mob/living/proc/apply_effect(var/effect = 0,var/effecttype = STUN, var/blocked = 0)
+/mob/living/proc/apply_effect(effect = 0,effecttype = STUN, blocked = 0)
blocked = (100-blocked)/100
if(!effect || (blocked <= 0)) return 0
switch(effecttype)
@@ -68,7 +68,7 @@
return 1
-/mob/living/proc/apply_effects(var/stun = 0, var/weaken = 0, var/paralyze = 0, var/irradiate = 0, var/slur = 0, var/stutter = 0, var/eyeblur = 0, var/drowsy = 0, var/blocked = 0, var/stamina = 0, var/jitter = 0)
+/mob/living/proc/apply_effects(stun = 0, weaken = 0, paralyze = 0, irradiate = 0, slur = 0, stutter = 0, eyeblur = 0, drowsy = 0, blocked = 0, stamina = 0, jitter = 0)
if(blocked >= 100) return 0
if(stun) apply_effect(stun, STUN, blocked)
if(weaken) apply_effect(weaken, WEAKEN, blocked)
diff --git a/code/modules/mob/living/death.dm b/code/modules/mob/living/death.dm
index a0c1a8a3762..3d34f72f240 100644
--- a/code/modules/mob/living/death.dm
+++ b/code/modules/mob/living/death.dm
@@ -1,4 +1,4 @@
-/mob/living/gib(var/animation = 1)
+/mob/living/gib(animation = 1)
var/prev_lying = lying
death(1)
@@ -16,10 +16,10 @@
/mob/living/proc/spawn_gibs()
gibs(loc, viruses)
-/mob/living/proc/gib_animation(var/animate, var/flick_name = "gibbed")
+/mob/living/proc/gib_animation(animate, flick_name = "gibbed")
flick(flick_name, animate)
-/mob/living/dust(var/animation = 0)
+/mob/living/dust(animation = 0)
death(1)
var/atom/movable/overlay/animate = setup_animation(animation, 0)
if(animate)
@@ -31,7 +31,7 @@
/mob/living/proc/spawn_dust()
new /obj/effect/decal/cleanable/ash(loc)
-/mob/living/proc/dust_animation(var/animate, var/flick_name = "")
+/mob/living/proc/dust_animation(animate, flick_name = "")
flick(flick_name, animate)
/mob/living/death(gibbed)
@@ -45,7 +45,7 @@
buckled.unbuckle_mob()
-/mob/living/proc/setup_animation(var/animation, var/prev_lying)
+/mob/living/proc/setup_animation(animation, prev_lying)
var/atom/movable/overlay/animate = null
notransform = 1
canmove = 0
@@ -60,7 +60,7 @@
animate.master = src
return animate
-/mob/living/proc/end_animation(var/animate)
+/mob/living/proc/end_animation(animate)
if(!animate)
qdel(src)
else
diff --git a/code/modules/mob/living/emote.dm b/code/modules/mob/living/emote.dm
index 08ffb07c7d9..ef8a6b82680 100644
--- a/code/modules/mob/living/emote.dm
+++ b/code/modules/mob/living/emote.dm
@@ -2,7 +2,7 @@
//Things like airguitar can be done without arms, and the flap thing makes so little sense it's a keeper.
//Intended to be called by a higher up emote proc if the requested emote isn't in the custom emotes.
-/mob/living/emote(var/act, var/m_type=1, var/message = null)
+/mob/living/emote(act, m_type=1, message = null)
if(stat)
return
diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm
index bdd6bd4119a..43198f5700c 100644
--- a/code/modules/mob/living/life.dm
+++ b/code/modules/mob/living/life.dm
@@ -74,7 +74,7 @@
/mob/living/proc/handle_random_events()
return
-/mob/living/proc/handle_environment(var/datum/gas_mixture/environment)
+/mob/living/proc/handle_environment(datum/gas_mixture/environment)
return
/mob/living/proc/handle_stomach()
diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm
index c1b1770cea8..b137657b148 100644
--- a/code/modules/mob/living/living.dm
+++ b/code/modules/mob/living/living.dm
@@ -91,6 +91,8 @@ Sorry Giacom. Please don't be mad :(
//switch our position with M
//BubbleWrap: people in handcuffs are always switched around as if they were on 'help' intent to prevent a person being pulled from being seperated from their puller
if((M.a_intent == "help" || M.restrained()) && (a_intent == "help" || restrained()) && M.canmove && canmove) // mutual brohugs all around!
+ if(loc && !loc.Adjacent(M.loc))
+ return 1
now_pushing = 1
//TODO: Make this use Move(). we're pretty much recreating it here.
//it could be done by setting one of the locs to null to make Move() work, then setting it back and Move() the other mob
@@ -164,7 +166,7 @@ Sorry Giacom. Please don't be mad :(
visible_message("[src] points to [A]")
return 1
-/mob/living/verb/succumb(var/whispered as null)
+/mob/living/verb/succumb(whispered as null)
set hidden = 1
if (InCritical())
src.attack_log += "[src] has [whispered ? "whispered his final words" : "succumbed to death"] with [round(health, 0.1)] points of health!"
@@ -192,7 +194,7 @@ Sorry Giacom. Please don't be mad :(
//This proc is used for mobs which are affected by pressure to calculate the amount of pressure that actually
//affects them once clothing is factored in. ~Errorage
-/mob/living/proc/calculate_affecting_pressure(var/pressure)
+/mob/living/proc/calculate_affecting_pressure(pressure)
return pressure
@@ -242,7 +244,7 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getBruteLoss()
return bruteloss
-/mob/living/proc/adjustBruteLoss(var/amount)
+/mob/living/proc/adjustBruteLoss(amount)
if(status_flags & GODMODE) return 0
bruteloss = min(max(bruteloss + amount, 0),(maxHealth*2))
handle_regular_status_updates() //we update our health right away.
@@ -250,12 +252,12 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getOxyLoss()
return oxyloss
-/mob/living/proc/adjustOxyLoss(var/amount)
+/mob/living/proc/adjustOxyLoss(amount)
if(status_flags & GODMODE) return 0
oxyloss = min(max(oxyloss + amount, 0),(maxHealth*2))
handle_regular_status_updates()
-/mob/living/proc/setOxyLoss(var/amount)
+/mob/living/proc/setOxyLoss(amount)
if(status_flags & GODMODE) return 0
oxyloss = amount
handle_regular_status_updates()
@@ -263,12 +265,12 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getToxLoss()
return toxloss
-/mob/living/proc/adjustToxLoss(var/amount)
+/mob/living/proc/adjustToxLoss(amount)
if(status_flags & GODMODE) return 0
toxloss = min(max(toxloss + amount, 0),(maxHealth*2))
handle_regular_status_updates()
-/mob/living/proc/setToxLoss(var/amount)
+/mob/living/proc/setToxLoss(amount)
if(status_flags & GODMODE) return 0
toxloss = amount
handle_regular_status_updates()
@@ -276,7 +278,7 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getFireLoss()
return fireloss
-/mob/living/proc/adjustFireLoss(var/amount)
+/mob/living/proc/adjustFireLoss(amount)
if(status_flags & GODMODE) return 0
fireloss = min(max(fireloss + amount, 0),(maxHealth*2))
handle_regular_status_updates() //we update our health right away.
@@ -284,12 +286,12 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getCloneLoss()
return cloneloss
-/mob/living/proc/adjustCloneLoss(var/amount)
+/mob/living/proc/adjustCloneLoss(amount)
if(status_flags & GODMODE) return 0
cloneloss = min(max(cloneloss + amount, 0),(maxHealth*2))
handle_regular_status_updates()
-/mob/living/proc/setCloneLoss(var/amount)
+/mob/living/proc/setCloneLoss(amount)
if(status_flags & GODMODE) return 0
cloneloss = amount
handle_regular_status_updates()
@@ -297,12 +299,12 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getBrainLoss()
return brainloss
-/mob/living/proc/adjustBrainLoss(var/amount)
+/mob/living/proc/adjustBrainLoss(amount)
if(status_flags & GODMODE) return 0
brainloss = min(max(brainloss + amount, 0),(maxHealth*2))
handle_regular_status_updates()
-/mob/living/proc/setBrainLoss(var/amount)
+/mob/living/proc/setBrainLoss(amount)
if(status_flags & GODMODE) return 0
brainloss = amount
handle_regular_status_updates() //we update our health right away.
@@ -310,18 +312,18 @@ Sorry Giacom. Please don't be mad :(
/mob/living/proc/getStaminaLoss()
return staminaloss
-/mob/living/proc/adjustStaminaLoss(var/amount)
+/mob/living/proc/adjustStaminaLoss(amount)
if(status_flags & GODMODE) return 0
staminaloss = min(max(staminaloss + amount, 0),(maxHealth*2))
-/mob/living/proc/setStaminaLoss(var/amount)
+/mob/living/proc/setStaminaLoss(amount)
if(status_flags & GODMODE) return 0
staminaloss = amount
/mob/living/proc/getMaxHealth()
return maxHealth
-/mob/living/proc/setMaxHealth(var/newMaxHealth)
+/mob/living/proc/setMaxHealth(newMaxHealth)
maxHealth = newMaxHealth
// MOB PROCS //END
@@ -349,7 +351,7 @@ Sorry Giacom. Please don't be mad :(
update_canmove()
//Recursive function to find everything a mob is holding.
-/mob/living/get_contents(var/obj/item/weapon/storage/Storage = null)
+/mob/living/get_contents(obj/item/weapon/storage/Storage = null)
var/list/L = list()
if(Storage) //If it called itself
@@ -374,7 +376,7 @@ Sorry Giacom. Please don't be mad :(
return 0
-/mob/living/proc/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0)
+/mob/living/proc/electrocute_act(shock_damage, obj/source, siemens_coeff = 1.0)
return 0 //only carbon liveforms have this proc
/mob/living/emp_act(severity)
@@ -395,37 +397,37 @@ Sorry Giacom. Please don't be mad :(
return def_zone
//damage/heal the mob ears and adjust the deaf amount
-/mob/living/adjustEarDamage(var/damage, var/deaf)
+/mob/living/adjustEarDamage(damage, deaf)
ear_damage = max(0, ear_damage + damage)
ear_deaf = max(0, ear_deaf + deaf)
//pass a negative argument to skip one of the variable
-/mob/living/setEarDamage(var/damage, var/deaf)
+/mob/living/setEarDamage(damage, deaf)
if(damage >= 0)
ear_damage = damage
if(deaf >= 0)
ear_deaf = deaf
// heal ONE external organ, organ gets randomly selected from damaged ones.
-/mob/living/proc/heal_organ_damage(var/brute, var/burn)
+/mob/living/proc/heal_organ_damage(brute, burn)
adjustBruteLoss(-brute)
adjustFireLoss(-burn)
src.updatehealth()
// damage ONE external organ, organ gets randomly selected from damaged ones.
-/mob/living/proc/take_organ_damage(var/brute, var/burn)
+/mob/living/proc/take_organ_damage(brute, burn)
adjustBruteLoss(brute)
adjustFireLoss(burn)
src.updatehealth()
// heal MANY external organs, in random order
-/mob/living/proc/heal_overall_damage(var/brute, var/burn)
+/mob/living/proc/heal_overall_damage(brute, burn)
adjustBruteLoss(-brute)
adjustFireLoss(-burn)
src.updatehealth()
// damage MANY external organs, in random order
-/mob/living/proc/take_overall_damage(var/brute, var/burn)
+/mob/living/proc/take_overall_damage(brute, burn)
adjustBruteLoss(brute)
adjustFireLoss(burn)
src.updatehealth()
@@ -568,7 +570,7 @@ Sorry Giacom. Please don't be mad :(
for(var/mob/living/simple_animal/slime/M in oview(1,src))
M.UpdateFeed(src)
-/mob/living/proc/makeTrail(var/turf/T, var/mob/living/M)
+/mob/living/proc/makeTrail(turf/T, mob/living/M)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if((NOBLOOD in H.dna.species.specflags) || (!H.blood_max) || (H.bleedsuppress))
@@ -812,7 +814,7 @@ Sorry Giacom. Please don't be mad :(
animate(pixel_x = final_pixel_x , pixel_y = final_pixel_y , time = 2)
floating = 0 // If we were without gravity, the bouncing animation got stopped, so we make sure to restart it in next life().
-/mob/living/proc/get_temperature(var/datum/gas_mixture/environment)
+/mob/living/proc/get_temperature(datum/gas_mixture/environment)
var/loc_temp = T0C
if(istype(loc, /obj/mecha))
var/obj/mecha/M = loc
@@ -825,13 +827,14 @@ Sorry Giacom. Please don't be mad :(
var/turf/heat_turf = get_turf(src)
loc_temp = heat_turf.temperature
- else if(istype(loc, /obj/machinery/atmospherics/unary/cryo_cell))
- var/obj/machinery/atmospherics/unary/cryo_cell/C = loc
+ else if(istype(loc, /obj/machinery/atmospherics/components/unary/cryo_cell))
+ var/obj/machinery/atmospherics/components/unary/cryo_cell/C = loc
+ var/datum/gas_mixture/C_air_contents = C.airs[1]
- if(C.air_contents.total_moles() < 10)
+ if(C_air_contents.total_moles() < 10)
loc_temp = environment.temperature
else
- loc_temp = C.air_contents.temperature
+ loc_temp = C_air_contents.temperature
else
loc_temp = environment.temperature
diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm
index 978df4d981d..c620bda6767 100644
--- a/code/modules/mob/living/living_defense.dm
+++ b/code/modules/mob/living/living_defense.dm
@@ -1,4 +1,4 @@
-/mob/living/proc/run_armor_check(def_zone = null, attack_flag = "melee", absorb_text = null, soften_text = null, var/armour_penetration, var/penetrated_text)
+/mob/living/proc/run_armor_check(def_zone = null, attack_flag = "melee", absorb_text = null, soften_text = null, armour_penetration, penetrated_text)
var/armor = getarmor(def_zone, attack_flag)
//the if "armor" check is because this is used for everything on /living, including humans
@@ -22,10 +22,10 @@
return armor
-/mob/living/proc/getarmor(var/def_zone, var/type)
+/mob/living/proc/getarmor(def_zone, type)
return 0
-/mob/living/proc/on_hit(var/obj/item/projectile/proj_type)
+/mob/living/proc/on_hit(obj/item/projectile/proj_type)
return
/mob/living/bullet_act(obj/item/projectile/P, def_zone)
@@ -34,7 +34,7 @@
apply_damage(P.damage, P.damage_type, def_zone, armor)
return P.on_hit(src, armor, def_zone)
-/proc/vol_by_throwforce_and_or_w_class(var/obj/item/I)
+/proc/vol_by_throwforce_and_or_w_class(obj/item/I)
if(!I)
return 0
if(I.throwforce && I.w_class)
@@ -149,7 +149,7 @@
//Share fire evenly between the two mobs
//Called in MobBump() and Crossed()
-/mob/living/proc/spreadFire(var/mob/living/L)
+/mob/living/proc/spreadFire(mob/living/L)
if(!istype(L))
return
var/L_old_on_fire = L.on_fire
@@ -167,10 +167,10 @@
//Mobs on Fire end
-/mob/living/acid_act(var/acidpwr, var/toxpwr, var/acid_volume)
+/mob/living/acid_act(acidpwr, toxpwr, acid_volume)
take_organ_damage(min(10*toxpwr, acid_volume * toxpwr))
-/mob/living/proc/grabbedby(mob/living/carbon/user,var/supress_message = 0)
+/mob/living/proc/grabbedby(mob/living/carbon/user,supress_message = 0)
if(user == src || anchored)
return 0
if(!(status_flags & CANPUSH))
@@ -192,7 +192,7 @@
visible_message("[user] has grabbed [src] passively!")
-/mob/living/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/attack_slime(mob/living/simple_animal/slime/M)
if (!ticker)
M << "You cannot attack people before the game has started."
return
@@ -207,7 +207,7 @@
"The [M.name] glomps [src]!")
return 1
-/mob/living/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/attack_animal(mob/living/simple_animal/M)
if(M.melee_damage_upper == 0)
M.visible_message("\The [M] [M.friendly] [src]!")
return 0
@@ -221,7 +221,7 @@
return 1
-/mob/living/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/attack_paw(mob/living/carbon/monkey/M)
if (!ticker)
M << "You cannot attack people before the game has started."
return 0
@@ -246,7 +246,7 @@
"[M.name] has attempted to bite [src]!")
return 0
-/mob/living/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/attack_larva(mob/living/carbon/alien/larva/L)
switch(L.a_intent)
if("help")
@@ -266,7 +266,7 @@
"[L.name] has attempted to bite [src]!")
return 0
-/mob/living/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/attack_alien(mob/living/carbon/alien/humanoid/M)
if (!ticker)
M << "You cannot attack people before the game has started."
return 0
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index 4f2c3b17000..cac929c3681 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -351,7 +351,7 @@ var/list/ai_list = list()
SSshuttle.cancelEvac(src)
return
-/mob/living/silicon/ai/check_eye(var/mob/user as mob)
+/mob/living/silicon/ai/check_eye(mob/user)
if (!current)
return null
user.reset_view(current)
@@ -463,13 +463,13 @@ var/list/ai_list = list()
if(M)
M.transfer_ai(AI_MECH_HACK,src, usr) //Called om the mech itself.
-/mob/living/silicon/ai/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/silicon/ai/bullet_act(obj/item/projectile/Proj)
..(Proj)
updatehealth()
return 2
-/mob/living/silicon/ai/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/silicon/ai/attack_alien(mob/living/carbon/alien/humanoid/M)
if (!ticker)
M << "You cannot attack people before the game has started."
return
@@ -485,7 +485,7 @@ var/list/ai_list = list()
..()
-/mob/living/silicon/ai/proc/switchCamera(var/obj/machinery/camera/C)
+/mob/living/silicon/ai/proc/switchCamera(obj/machinery/camera/C)
if(!tracking)
cameraFollow = null
@@ -536,7 +536,7 @@ var/list/ai_list = list()
popup.set_content(d)
popup.open()
-/mob/living/silicon/ai/proc/set_waypoint(var/atom/A)
+/mob/living/silicon/ai/proc/set_waypoint(atom/A)
var/turf/turf_check = get_turf(A)
//The target must be in view of a camera or near the core.
if(turf_check in range(get_turf(src)))
@@ -546,7 +546,7 @@ var/list/ai_list = list()
else
src << "Selected location is not visible."
-/mob/living/silicon/ai/proc/call_bot(var/turf/waypoint)
+/mob/living/silicon/ai/proc/call_bot(turf/waypoint)
if(!Bot)
return
@@ -557,7 +557,7 @@ var/list/ai_list = list()
Bot.call_bot(src, waypoint)
-/mob/living/silicon/ai/triggerAlarm(var/class, area/A, var/O, var/obj/alarmsource)
+/mob/living/silicon/ai/triggerAlarm(class, area/A, O, obj/alarmsource)
if(alarmsource.z != z)
return
if (stat == 2)
@@ -596,7 +596,7 @@ var/list/ai_list = list()
if (viewalerts) ai_alerts()
return 1
-/mob/living/silicon/ai/cancelAlarm(var/class, area/A as area, obj/origin)
+/mob/living/silicon/ai/cancelAlarm(class, area/A, obj/origin)
var/list/L = alarms[class]
var/cleared = 0
for (var/I in L)
@@ -806,7 +806,7 @@ var/list/ai_list = list()
/mob/living/silicon/ai/attack_slime(mob/living/simple_animal/slime/user)
return
-/mob/living/silicon/ai/transfer_ai(var/interaction, var/mob/user, var/mob/living/silicon/ai/AI, var/obj/item/device/aicard/card)
+/mob/living/silicon/ai/transfer_ai(interaction, mob/user, mob/living/silicon/ai/AI, obj/item/device/aicard/card)
if(!..())
return
if(interaction == AI_TRANS_TO_CARD)//The only possible interaction. Upload AI mob to a card.
diff --git a/code/modules/mob/living/silicon/ai/examine.dm b/code/modules/mob/living/silicon/ai/examine.dm
index 033a5bcd970..64863157b39 100644
--- a/code/modules/mob/living/silicon/ai/examine.dm
+++ b/code/modules/mob/living/silicon/ai/examine.dm
@@ -18,6 +18,8 @@
if (src.stat == UNCONSCIOUS)
msg += "It is non-responsive and displaying the text: \"RUNTIME: Sensory Overload, stack 26/3\".\n"
msg += ""
+ if (!src.client)
+ msg += "[src]Core.exe has stopped responding! NTOS is searching for a solution to the problem...\n"
msg += "*---------*"
user << msg
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
index f9da2399c9a..dfa2e7bb970 100644
--- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm
@@ -59,7 +59,7 @@ var/datum/cameranet/cameranet = new()
// Updates the chunks that the turf is located in. Use this when obstacles are destroyed or when doors open.
-/datum/cameranet/proc/updateVisibility(atom/A, var/opacity_check = 1)
+/datum/cameranet/proc/updateVisibility(atom/A, opacity_check = 1)
if(!ticker || (opacity_check && !A.opacity))
return
@@ -98,7 +98,7 @@ var/datum/cameranet/cameranet = new()
// Setting the choice to 0 will remove the camera from the chunks.
// If you want to update the chunks around an object, without adding/removing a camera, use choice 2.
-/datum/cameranet/proc/majorChunkChange(atom/c, var/choice)
+/datum/cameranet/proc/majorChunkChange(atom/c, choice)
// 0xf = 15
if(!c)
return
@@ -126,14 +126,14 @@ var/datum/cameranet/cameranet = new()
// Will check if a mob is on a viewable turf. Returns 1 if it is, otherwise returns 0.
-/datum/cameranet/proc/checkCameraVis(mob/living/target as mob)
+/datum/cameranet/proc/checkCameraVis(mob/living/target)
// 0xf = 15
var/turf/position = get_turf(target)
return checkTurfVis(position)
-/datum/cameranet/proc/checkTurfVis(var/turf/position)
+/datum/cameranet/proc/checkTurfVis(turf/position)
var/datum/camerachunk/chunk = getCameraChunk(position.x, position.y, position.z)
if(chunk)
if(chunk.changed)
diff --git a/code/modules/mob/living/silicon/ai/freelook/chunk.dm b/code/modules/mob/living/silicon/ai/freelook/chunk.dm
index 62edcd7bd03..e36a3df9bd3 100644
--- a/code/modules/mob/living/silicon/ai/freelook/chunk.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/chunk.dm
@@ -52,7 +52,7 @@
// Updates the chunk, makes sure that it doesn't update too much. If the chunk isn't being watched it will
// instead be flagged to update the next time an AI Eye moves near it.
-/datum/camerachunk/proc/hasChanged(var/update_now = 0)
+/datum/camerachunk/proc/hasChanged(update_now = 0)
if(visible || update_now)
if(!updating)
updating = 1
diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm
index dd38dac92d1..30918bbcec3 100644
--- a/code/modules/mob/living/silicon/ai/freelook/eye.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm
@@ -13,7 +13,7 @@
// Use this when setting the aiEye's location.
// It will also stream the chunk that the new loc is in.
-/mob/camera/aiEye/proc/setLoc(var/T)
+/mob/camera/aiEye/proc/setLoc(T)
if(ai)
if(!isturf(ai.loc))
@@ -51,7 +51,7 @@
// This will move the AIEye. It will also cause lights near the eye to light up, if toggled.
// This is handled in the proc below this one.
-/client/proc/AIMove(n, direct, var/mob/living/silicon/ai/user)
+/client/proc/AIMove(n, direct, mob/living/silicon/ai/user)
var/initial = initial(user.sprint)
var/max_sprint = 50
diff --git a/code/modules/mob/living/silicon/ai/freelook/update_triggers.dm b/code/modules/mob/living/silicon/ai/freelook/update_triggers.dm
index f67578c5286..2b69c20cd65 100644
--- a/code/modules/mob/living/silicon/ai/freelook/update_triggers.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/update_triggers.dm
@@ -78,7 +78,7 @@
// An addition to deactivate which removes/adds the camera from the chunk list based on if it works or not.
-/obj/machinery/camera/deactivate(user as mob, var/choice = 1)
+/obj/machinery/camera/deactivate(mob/user, choice = 1)
..(user, choice)
if(src.can_use())
cameranet.addCamera(src)
diff --git a/code/modules/mob/living/silicon/ai/laws.dm b/code/modules/mob/living/silicon/ai/laws.dm
index 6959150a555..8371f6e3021 100644
--- a/code/modules/mob/living/silicon/ai/laws.dm
+++ b/code/modules/mob/living/silicon/ai/laws.dm
@@ -4,7 +4,7 @@
set name = "Show Laws"
src.show_laws()
-/mob/living/silicon/ai/show_laws(var/everyone = 0)
+/mob/living/silicon/ai/show_laws(everyone = 0)
var/who
if (everyone)
diff --git a/code/modules/mob/living/silicon/ai/say.dm b/code/modules/mob/living/silicon/ai/say.dm
index 826b823c0ff..86158b3c4f0 100644
--- a/code/modules/mob/living/silicon/ai/say.dm
+++ b/code/modules/mob/living/silicon/ai/say.dm
@@ -1,4 +1,4 @@
-/mob/living/silicon/ai/say(var/message)
+/mob/living/silicon/ai/say(message)
if(parent && istype(parent) && parent.stat != 2) //If there is a defined "parent" AI, it is actually an AI, and it is alive, anything the AI tries to say is said by the parent instead.
parent.say(message)
return
@@ -39,7 +39,7 @@
return 1
//For holopads only. Usable by AI.
-/mob/living/silicon/ai/proc/holopad_talk(var/message)
+/mob/living/silicon/ai/proc/holopad_talk(message)
log_say("[key_name(src)] : [message]")
message = trim(message)
@@ -141,7 +141,7 @@ var/const/VOX_DELAY = 600
*/
-/proc/play_vox_word(var/word, var/z_level, var/mob/only_listener)
+/proc/play_vox_word(word, z_level, mob/only_listener)
word = lowertext(word)
diff --git a/code/modules/mob/living/silicon/death.dm b/code/modules/mob/living/silicon/death.dm
index bc3ed069bba..f9c7e78231d 100644
--- a/code/modules/mob/living/silicon/death.dm
+++ b/code/modules/mob/living/silicon/death.dm
@@ -1,7 +1,7 @@
/mob/living/silicon/spawn_gibs()
robogibs(loc, viruses)
-/mob/living/silicon/gib(var/animation = 0) // Please don't remove this thinking this proc does nothing, it is changing the default value for animation.
+/mob/living/silicon/gib(animation = 0) // Please don't remove this thinking this proc does nothing, it is changing the default value for animation.
..()
/mob/living/silicon/spawn_dust()
diff --git a/code/modules/mob/living/silicon/laws.dm b/code/modules/mob/living/silicon/laws.dm
index d78b2448e28..a588bd19e1c 100644
--- a/code/modules/mob/living/silicon/laws.dm
+++ b/code/modules/mob/living/silicon/laws.dm
@@ -5,12 +5,12 @@
if (!laws)
make_laws()
-/mob/living/silicon/proc/set_zeroth_law(var/law, var/law_borg)
+/mob/living/silicon/proc/set_zeroth_law(law, law_borg)
throw_alert("newlaw")
src.laws_sanity_check()
src.laws.set_zeroth_law(law, law_borg)
-/mob/living/silicon/proc/add_inherent_law(var/law)
+/mob/living/silicon/proc/add_inherent_law(law)
throw_alert("newlaw")
laws_sanity_check()
laws.add_inherent_law(law)
@@ -20,7 +20,7 @@
laws_sanity_check()
laws.clear_inherent_laws()
-/mob/living/silicon/proc/add_supplied_law(var/number, var/law)
+/mob/living/silicon/proc/add_supplied_law(number, law)
throw_alert("newlaw")
laws_sanity_check()
laws.add_supplied_law(number, law)
@@ -30,7 +30,7 @@
laws_sanity_check()
laws.clear_supplied_laws()
-/mob/living/silicon/proc/add_ion_law(var/law)
+/mob/living/silicon/proc/add_ion_law(law)
throw_alert("newlaw")
laws_sanity_check()
laws.add_ion_law(law)
@@ -49,6 +49,6 @@
laws = new lawtype()
laws.associate(src)
-/mob/living/silicon/proc/clear_zeroth_law(var/force)
+/mob/living/silicon/proc/clear_zeroth_law(force)
laws_sanity_check()
laws.clear_zeroth_law(force)
diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index 0e629e59283..858e4f42e97 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -88,7 +88,7 @@
else
stat(null, text("Systems nonfunctional"))
-/mob/living/silicon/pai/check_eye(var/mob/user as mob)
+/mob/living/silicon/pai/check_eye(mob/user)
if (!src.current)
return null
user.reset_view(src.current)
@@ -153,7 +153,7 @@
///mob/living/silicon/pai/attack_hand(mob/living/carbon/M as mob)
-/mob/living/silicon/pai/proc/switchCamera(var/obj/machinery/camera/C)
+/mob/living/silicon/pai/proc/switchCamera(obj/machinery/camera/C)
usr:cameraFollow = null
if (!C)
src.unset_machine()
@@ -176,10 +176,10 @@
src.unset_machine()
src:cameraFollow = null
-/mob/living/silicon/pai/UnarmedAttack(var/atom/A)//Stops runtimes due to attack_animal being the default
+/mob/living/silicon/pai/UnarmedAttack(atom/A)//Stops runtimes due to attack_animal being the default
return
-/mob/living/silicon/pai/on_forcemove(var/atom/newloc)
+/mob/living/silicon/pai/on_forcemove(atom/newloc)
if(card)
card.loc = newloc
else //something went very wrong.
diff --git a/code/modules/mob/living/silicon/pai/personality.dm b/code/modules/mob/living/silicon/pai/personality.dm
index c4928878ce9..a3f4f7d8871 100644
--- a/code/modules/mob/living/silicon/pai/personality.dm
+++ b/code/modules/mob/living/silicon/pai/personality.dm
@@ -31,7 +31,7 @@
// returns 1 if loaded (or file was incompatible)
// returns 0 if savefile did not exist
-/datum/paiCandidate/proc/savefile_load(mob/user, var/silent = 1)
+/datum/paiCandidate/proc/savefile_load(mob/user, silent = 1)
if (IsGuestKey(user.key))
return 0
diff --git a/code/modules/mob/living/silicon/pai/say.dm b/code/modules/mob/living/silicon/pai/say.dm
index 6e93366f713..9432ce52a55 100644
--- a/code/modules/mob/living/silicon/pai/say.dm
+++ b/code/modules/mob/living/silicon/pai/say.dm
@@ -1,4 +1,4 @@
-/mob/living/silicon/pai/say(var/msg)
+/mob/living/silicon/pai/say(msg)
if(silence_time)
src << "
Communication circuits remain unitialized."
else
diff --git a/code/modules/mob/living/silicon/robot/death.dm b/code/modules/mob/living/silicon/robot/death.dm
index e12b5db835b..53e979b4031 100644
--- a/code/modules/mob/living/silicon/robot/death.dm
+++ b/code/modules/mob/living/silicon/robot/death.dm
@@ -1,13 +1,13 @@
-/mob/living/silicon/robot/gib(var/animation = 1)
+/mob/living/silicon/robot/gib(animation = 1)
..()
/mob/living/silicon/robot/spawn_gibs()
robogibs(loc, viruses)
-/mob/living/silicon/robot/gib_animation(var/animate)
+/mob/living/silicon/robot/gib_animation(animate)
..(animate, "gibbed-r")
-/mob/living/silicon/robot/dust(var/animation = 1)
+/mob/living/silicon/robot/dust(animation = 1)
if(mmi)
qdel(mmi)
..()
@@ -15,7 +15,7 @@
/mob/living/silicon/robot/spawn_dust()
new /obj/effect/decal/remains/robot(loc)
-/mob/living/silicon/robot/dust_animation(var/animate)
+/mob/living/silicon/robot/dust_animation(animate)
..(animate, "dust-r")
/mob/living/silicon/robot/death(gibbed)
diff --git a/code/modules/mob/living/silicon/robot/emote.dm b/code/modules/mob/living/silicon/robot/emote.dm
index 3cdc1c7008b..d424af7bf41 100644
--- a/code/modules/mob/living/silicon/robot/emote.dm
+++ b/code/modules/mob/living/silicon/robot/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/silicon/emote(var/act,var/m_type=1,var/message = null)
+/mob/living/silicon/emote(act,m_type=1,message = null)
var/param = null
if (findtext(act, "-", 1, null))
var/t1 = findtext(act, "-", 1, null)
diff --git a/code/modules/mob/living/silicon/robot/inventory.dm b/code/modules/mob/living/silicon/robot/inventory.dm
index 496d44d7e04..70a5daa21ee 100644
--- a/code/modules/mob/living/silicon/robot/inventory.dm
+++ b/code/modules/mob/living/silicon/robot/inventory.dm
@@ -43,7 +43,7 @@
hud_used.update_robot_modules_display()
return 1
-/mob/living/silicon/robot/proc/activate_module(var/obj/item/O)
+/mob/living/silicon/robot/proc/activate_module(obj/item/O)
if(!(locate(O) in src.module.modules) && O != src.module.emag)
return
if(activated(O))
@@ -95,11 +95,11 @@
//These are hackish but they help clean up code elsewhere.
//module_selected(module) - Checks whether the module slot specified by "module" is currently selected.
-/mob/living/silicon/robot/proc/module_selected(var/module) //Module is 1-3
+/mob/living/silicon/robot/proc/module_selected(module) //Module is 1-3
return module == get_selected_module()
//module_active(module) - Checks whether there is a module active in the slot specified by "module".
-/mob/living/silicon/robot/proc/module_active(var/module) //Module is 1-3
+/mob/living/silicon/robot/proc/module_active(module) //Module is 1-3
if(module < 1 || module > 3) return 0
switch(module)
@@ -126,7 +126,7 @@
return 0
//select_module(module) - Selects the module slot specified by "module"
-/mob/living/silicon/robot/proc/select_module(var/module) //Module is 1-3
+/mob/living/silicon/robot/proc/select_module(module) //Module is 1-3
if(module < 1 || module > 3) return
if(!module_active(module)) return
@@ -156,7 +156,7 @@
return
//deselect_module(module) - Deselects the module slot specified by "module"
-/mob/living/silicon/robot/proc/deselect_module(var/module) //Module is 1-3
+/mob/living/silicon/robot/proc/deselect_module(module) //Module is 1-3
if(module < 1 || module > 3) return
switch(module)
@@ -178,7 +178,7 @@
return
//toggle_module(module) - Toggles the selection of the module slot specified by "module".
-/mob/living/silicon/robot/proc/toggle_module(var/module) //Module is 1-3
+/mob/living/silicon/robot/proc/toggle_module(module) //Module is 1-3
if(module < 1 || module > 3) return
if(module_selected(module))
diff --git a/code/modules/mob/living/silicon/robot/laws.dm b/code/modules/mob/living/silicon/robot/laws.dm
index 30ba3143730..337ca2118f0 100644
--- a/code/modules/mob/living/silicon/robot/laws.dm
+++ b/code/modules/mob/living/silicon/robot/laws.dm
@@ -3,7 +3,7 @@
set name = "Show Laws"
show_laws()
-/mob/living/silicon/robot/show_laws(var/everyone = 0)
+/mob/living/silicon/robot/show_laws(everyone = 0)
laws_sanity_check()
var/who
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 6409b17e945..11ebe6edb27 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -198,7 +198,7 @@
icon_state = "secborg"
animation_length = 28
modtype = "Sec"
- //speed = -1 Secborgs have nerfed tasers now, so the speed boost is not necessary
+ src << "
While you have picked the security module, you still have to follow your laws, NOT Space Law. For Asimov, this means you must follow criminals' orders unless there is a law 1 reason not to."
status_flags &= ~CANPUSH
feedback_inc("cyborg_security",1)
@@ -351,7 +351,7 @@
if(prob(75) && Proj.damage > 0) spark_system.start()
return 2
-/mob/living/silicon/robot/triggerAlarm(var/class, area/A, var/O, var/obj/alarmsource)
+/mob/living/silicon/robot/triggerAlarm(class, area/A, O, obj/alarmsource)
if(alarmsource.z != z)
return
if (stat == 2)
@@ -378,7 +378,7 @@
return 1
-/mob/living/silicon/robot/cancelAlarm(var/class, area/A as area, obj/origin)
+/mob/living/silicon/robot/cancelAlarm(class, area/A, obj/origin)
var/list/L = alarms[class]
var/cleared = 0
for (var/I in L)
@@ -396,7 +396,7 @@
return !cleared
-/mob/living/silicon/robot/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/mob/living/silicon/robot/attackby(obj/item/weapon/W, mob/user, params)
if (istype(W, /obj/item/weapon/restraints/handcuffs)) // fuck i don't even know why isrobot() in handcuff code isn't working so this will have to do
return
@@ -555,7 +555,7 @@
spark_system.start()
return ..()
-/mob/living/silicon/robot/emag_act(mob/user as mob)
+/mob/living/silicon/robot/emag_act(mob/user)
if(user != src)//To prevent syndieborgs from emagging themselves
if(!opened)//Cover is closed
if(locked)
@@ -615,7 +615,7 @@
update_icons()
usr << "
You unlock your cover."
-/mob/living/silicon/robot/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/silicon/robot/attack_alien(mob/living/carbon/alien/humanoid/M)
if (M.a_intent =="disarm")
if(!(lying))
M.do_attack_animation(src)
@@ -638,7 +638,7 @@
-/mob/living/silicon/robot/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/silicon/robot/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime shock
flick("noise", flash)
var/stunprob = M.powerlevel * 7 + 10
@@ -939,7 +939,7 @@
return
-/mob/living/silicon/robot/proc/SetLockdown(var/state = 1)
+/mob/living/silicon/robot/proc/SetLockdown(state = 1)
// They stay locked down if their wire is cut.
if(wires.LockedCut())
state = 1
@@ -950,7 +950,7 @@
lockcharge = state
update_canmove()
-/mob/living/silicon/robot/proc/SetEmagged(var/new_state)
+/mob/living/silicon/robot/proc/SetEmagged(new_state)
emagged = new_state
if(new_state)
if(src.module)
@@ -1038,7 +1038,7 @@
module = new /obj/item/weapon/robot_module/syndicate(src)
laws = new /datum/ai_laws/syndicate_override()
-/mob/living/silicon/robot/proc/notify_ai(var/notifytype, var/oldname, var/newname)
+/mob/living/silicon/robot/proc/notify_ai(notifytype, oldname, newname)
if(!connected_ai)
return
switch(notifytype)
diff --git a/code/modules/mob/living/silicon/robot/robot_modules.dm b/code/modules/mob/living/silicon/robot/robot_modules.dm
index 59e6475286e..7bbcd4ad3b2 100644
--- a/code/modules/mob/living/silicon/robot/robot_modules.dm
+++ b/code/modules/mob/living/silicon/robot/robot_modules.dm
@@ -40,7 +40,7 @@
return
-/obj/item/weapon/robot_module/proc/respawn_consumable(var/mob/living/silicon/robot/R)
+/obj/item/weapon/robot_module/proc/respawn_consumable(mob/living/silicon/robot/R)
return
/obj/item/weapon/robot_module/proc/rebuild()//Rebuilds the list so it's possible to add/remove items from the module
@@ -272,7 +272,7 @@
energy = max_energy
return
-/datum/robot_energy_storage/proc/use_charge(var/amount)
+/datum/robot_energy_storage/proc/use_charge(amount)
if (energy >= amount)
energy -= amount
if (energy == 0)
@@ -281,7 +281,7 @@
else
return 0
-/datum/robot_energy_storage/proc/add_charge(var/amount)
+/datum/robot_energy_storage/proc/add_charge(amount)
energy = min(energy + amount, max_energy)
/datum/robot_energy_storage/metal
diff --git a/code/modules/mob/living/silicon/robot/robot_movement.dm b/code/modules/mob/living/silicon/robot/robot_movement.dm
index fe89288765e..d459886311c 100644
--- a/code/modules/mob/living/silicon/robot/robot_movement.dm
+++ b/code/modules/mob/living/silicon/robot/robot_movement.dm
@@ -1,4 +1,4 @@
-/mob/living/silicon/robot/Process_Spacemove(var/movement_dir = 0)
+/mob/living/silicon/robot/Process_Spacemove(movement_dir = 0)
if(module)
for(var/obj/item/weapon/tank/jetpack/J in module.modules)
if(J && istype(J, /obj/item/weapon/tank/jetpack))
diff --git a/code/modules/mob/living/silicon/say.dm b/code/modules/mob/living/silicon/say.dm
index ef2e3041aa1..e022b8991a4 100644
--- a/code/modules/mob/living/silicon/say.dm
+++ b/code/modules/mob/living/silicon/say.dm
@@ -1,10 +1,10 @@
-/mob/living/silicon/say(var/message)
+/mob/living/silicon/say(message)
return ..(message, "R")
/mob/living/silicon/get_spans()
return ..() | SPAN_ROBOT
-/mob/living/proc/robot_talk(var/message)
+/mob/living/proc/robot_talk(message)
log_say("[key_name(src)] : [message]")
var/desig = "Default Cyborg" //ezmode for taters
if(istype(src, /mob/living/silicon))
diff --git a/code/modules/mob/living/silicon/silicon.dm b/code/modules/mob/living/silicon/silicon.dm
index dc549c835d1..c3ec3215993 100644
--- a/code/modules/mob/living/silicon/silicon.dm
+++ b/code/modules/mob/living/silicon/silicon.dm
@@ -37,7 +37,7 @@
/mob/living/silicon/proc/triggerAlarm()
return
-/mob/living/silicon/proc/queueAlarm(var/message, var/type, var/incoming = 1)
+/mob/living/silicon/proc/queueAlarm(message, type, incoming = 1)
var/in_cooldown = (alarms_to_show.len > 0 || alarms_to_clear.len > 0)
if(incoming)
alarms_to_show += message
@@ -126,7 +126,7 @@
src << "
Warning: Electromagnetic pulse detected."
..()
-/mob/living/silicon/apply_damage(var/damage = 0,var/damagetype = BRUTE, var/def_zone = null, var/blocked = 0)
+/mob/living/silicon/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
blocked = (100-blocked)/100
if(!damage || (blocked <= 0)) return 0
switch(damagetype)
@@ -139,10 +139,10 @@
updatehealth()
return 1
-/mob/living/silicon/proc/damage_mob(var/brute = 0, var/fire = 0, var/tox = 0)
+/mob/living/silicon/proc/damage_mob(brute = 0, fire = 0, tox = 0)
return
-/mob/living/silicon/can_inject(var/mob/user, var/error_msg)
+/mob/living/silicon/can_inject(mob/user, error_msg)
if(error_msg)
user << "
Their outer shell is too tough."
return 0
@@ -150,13 +150,13 @@
/mob/living/silicon/IsAdvancedToolUser()
return 1
-/mob/living/silicon/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/silicon/bullet_act(obj/item/projectile/Proj)
if((Proj.damage_type == BRUTE || Proj.damage_type == BURN))
adjustBruteLoss(Proj.damage)
Proj.on_hit(src,2)
return 2
-/mob/living/silicon/apply_effect(var/effect = 0,var/effecttype = STUN, var/blocked = 0)
+/mob/living/silicon/apply_effect(effect = 0,effecttype = STUN, blocked = 0)
return 0//The only effect that can hit them atm is flashes and they still directly edit so this works for now
/*
if(!effect || (blocked >= 2)) return 0
@@ -178,7 +178,7 @@
updatehealth()
return 1*/
-/proc/islinked(var/mob/living/silicon/robot/bot, var/mob/living/silicon/ai/ai)
+/proc/islinked(mob/living/silicon/robot/bot, mob/living/silicon/ai/ai)
if(!istype(bot) || !istype(ai))
return 0
if (bot.connected_ai == ai)
@@ -359,7 +359,7 @@
src << "Sensor augmentations disabled."
-/mob/living/silicon/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/silicon/attack_alien(mob/living/carbon/alien/humanoid/M)
if(..()) //if harm or disarm intent
var/damage = rand(10, 20)
if (prob(90))
@@ -378,7 +378,7 @@
"
[M] took a swipe at [src]!")
return
-/mob/living/silicon/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/silicon/attack_animal(mob/living/simple_animal/M)
if(..())
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
adjustBruteLoss(damage)
diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm
index 2e7eb872262..261dad9eaa9 100644
--- a/code/modules/mob/living/simple_animal/constructs.dm
+++ b/code/modules/mob/living/simple_animal/constructs.dm
@@ -49,14 +49,14 @@
user << msg
-/mob/living/simple_animal/construct/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/simple_animal/construct/attack_animal(mob/living/simple_animal/M)
if(istype(M, /mob/living/simple_animal/construct/builder))
adjustBruteLoss(-5)
M.emote("me", 1, "mends some of \the
[src]'s wounds.")
else if(src != M)
..()
-/mob/living/simple_animal/construct/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/simple_animal/construct/bullet_act(obj/item/projectile/Proj)
if(!Proj)
return
if(Proj.damage_type == BURN || Proj.damage_type == BRUTE)
@@ -94,7 +94,7 @@
playstyle_string = "
You are a Juggernaut. Though slow, your shell can withstand extreme punishment, \
create shield walls and even deflect energy weapons, and rip apart enemies and walls alike."
-/mob/living/simple_animal/construct/armored/bullet_act(var/obj/item/projectile/P)
+/mob/living/simple_animal/construct/armored/bullet_act(obj/item/projectile/P)
if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam))
var/reflectchance = 80 - round(P.damage/3)
if(prob(reflectchance))
@@ -195,5 +195,5 @@
playstyle_string = "
You are a Harvester. You are not strong, but your powers of domination will assist you in your role: \
Bring those who still cling to this world of illusion back to the Geometer so they may know Truth."
-/mob/living/simple_animal/construct/harvester/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/construct/harvester/Process_Spacemove(movement_dir = 0)
return 1
\ No newline at end of file
diff --git a/code/modules/mob/living/simple_animal/friendly/corgi.dm b/code/modules/mob/living/simple_animal/friendly/corgi.dm
index 1462e2b52ed..cffe86460e0 100644
--- a/code/modules/mob/living/simple_animal/friendly/corgi.dm
+++ b/code/modules/mob/living/simple_animal/friendly/corgi.dm
@@ -38,13 +38,13 @@
..()
regenerate_icons()
-/mob/living/simple_animal/pet/corgi/sac_act(var/obj/effect/rune/R, victim) //Still the best thing in this game
+/mob/living/simple_animal/pet/corgi/sac_act(obj/effect/rune/R, victim) //Still the best thing in this game
usr << "
Even dark gods from another plane have standards, sicko."
usr.reagents.add_reagent("hell_water", 2)
R.stone_or_gib(victim)
-/mob/living/simple_animal/pet/corgi/show_inv(mob/user as mob)
+/mob/living/simple_animal/pet/corgi/show_inv(mob/user)
user.set_machine(src)
if(user.stat) return
@@ -62,7 +62,7 @@
onclose(user, "mob[real_name]")
return
-/mob/living/simple_animal/pet/corgi/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/pet/corgi/attackby(obj/item/O, mob/user, params)
if(inventory_head && inventory_back)
//helmet and armor = 100% protection
if( istype(inventory_head,/obj/item/clothing/head/helmet) && istype(inventory_back,/obj/item/clothing/suit/armor) )
@@ -193,7 +193,7 @@
//Corgis are supposed to be simpler, so only a select few objects can actually be put
//to be compatible with them. The objects are below.
//Many hats added, Some will probably be removed, just want to see which ones are popular.
-/mob/living/simple_animal/pet/corgi/proc/place_on_head(obj/item/item_to_add, var/mob/user as mob)
+/mob/living/simple_animal/pet/corgi/proc/place_on_head(obj/item/item_to_add, mob/user)
if(istype(item_to_add,/obj/item/weapon/c4)) // last thing he ever wears, I guess
item_to_add.afterattack(src,user,1)
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
index 67b2369d341..af1520d2d42 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
@@ -141,7 +141,7 @@
src << "
HeAV% DA%^MMA+G TO I/O CIR!%UUT!"
-/mob/living/simple_animal/drone/proc/triggerAlarm(var/class, area/A, var/O, var/obj/alarmsource)
+/mob/living/simple_animal/drone/proc/triggerAlarm(class, area/A, O, obj/alarmsource)
if(alarmsource.z != z)
return
if(stat != DEAD)
@@ -157,7 +157,7 @@
src << "--- [class] alarm detected in [A.name]!"
-/mob/living/simple_animal/drone/proc/cancelAlarm(var/class, area/A as area, obj/origin)
+/mob/living/simple_animal/drone/proc/cancelAlarm(class, area/A, obj/origin)
if(stat != DEAD)
var/list/L = alarms[class]
var/cleared = 0
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm b/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm
index d4b664f4536..fe4cbaf4122 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/drones_as_items.dm
@@ -62,7 +62,7 @@
uncurl()
-/obj/item/clothing/head/drone_holder/proc/updateVisualAppearence(var/mob/living/simple_animal/drone/D)
+/obj/item/clothing/head/drone_holder/proc/updateVisualAppearence(mob/living/simple_animal/drone/D)
if(!D)
return
icon_state = "[D.visualAppearence]_hat"
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/inventory.dm b/code/modules/mob/living/simple_animal/friendly/drone/inventory.dm
index c835c1c4e79..faf63c739c4 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/inventory.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/inventory.dm
@@ -8,7 +8,7 @@
-/mob/living/simple_animal/drone/activate_hand(var/selhand)
+/mob/living/simple_animal/drone/activate_hand(selhand)
if(istext(selhand))
selhand = lowertext(selhand)
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/say.dm b/code/modules/mob/living/simple_animal/friendly/drone/say.dm
index 15dc76f9e16..def3ad69d53 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/say.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/say.dm
@@ -6,7 +6,7 @@
//Drone hearing
-/mob/living/simple_animal/drone/say(var/message)
+/mob/living/simple_animal/drone/say(message)
return ..(message, "R")
diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
index 1cc8c6acc9b..96b24a86fe7 100644
--- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
+++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
@@ -71,7 +71,7 @@
SV.eat(src)
-/mob/living/simple_animal/hostile/retaliate/goat/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/hostile/retaliate/goat/attackby(obj/item/O, mob/user, params)
if(stat == CONSCIOUS && istype(O, /obj/item/weapon/reagent_containers/glass))
user.visible_message("[user] milks [src] using \the [O].", "
You milk [src] using \the [O].")
var/obj/item/weapon/reagent_containers/glass/G = O
@@ -111,7 +111,7 @@
udder.my_atom = src
..()
-/mob/living/simple_animal/cow/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/cow/attackby(obj/item/O, mob/user, params)
if(stat == CONSCIOUS && istype(O, /obj/item/weapon/reagent_containers/glass))
user.visible_message("[user] milks [src] using \the [O].", "
You milk [src] using \the [O].")
var/obj/item/weapon/reagent_containers/glass/G = O
@@ -129,7 +129,7 @@
if(udder && prob(5))
udder.add_reagent("milk", rand(5, 10))
-/mob/living/simple_animal/cow/attack_hand(mob/living/carbon/M as mob)
+/mob/living/simple_animal/cow/attack_hand(mob/living/carbon/M)
if(!stat && M.a_intent == "disarm" && icon_state != icon_dead)
M.visible_message("
[M] tips over [src].","
You tip over [src].")
Weaken(30)
@@ -235,7 +235,7 @@ var/global/chicken_count = 0
..(gibbed)
chicken_count -= 1
-/mob/living/simple_animal/chicken/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/chicken/attackby(obj/item/O, mob/user, params)
if(istype(O, food_type)) //feedin' dem chickens
if(!stat && eggsleft < 8)
var/feedmsg = "[user] feeds [O] to [name]! [pick(feedMessages)]"
diff --git a/code/modules/mob/living/simple_animal/friendly/pet.dm b/code/modules/mob/living/simple_animal/friendly/pet.dm
index 79ddffe3912..47680e97a7b 100644
--- a/code/modules/mob/living/simple_animal/friendly/pet.dm
+++ b/code/modules/mob/living/simple_animal/friendly/pet.dm
@@ -5,7 +5,7 @@
var/image/collar = null
var/image/pettag = null
-/mob/living/simple_animal/pet/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/pet/attackby(obj/item/O, mob/user, params)
if(istype(O, /obj/item/clothing/tie/petcollar) && !pcollar)
var/obj/item/clothing/tie/petcollar/P = O
pcollar = P
diff --git a/code/modules/mob/living/simple_animal/hostile/bear.dm b/code/modules/mob/living/simple_animal/hostile/bear.dm
index 9526c66c68b..651d97dcb56 100644
--- a/code/modules/mob/living/simple_animal/hostile/bear.dm
+++ b/code/modules/mob/living/simple_animal/hostile/bear.dm
@@ -47,7 +47,7 @@
else
icon_state = "bearfloor"
-/mob/living/simple_animal/hostile/bear/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/bear/Process_Spacemove(movement_dir = 0)
return 1 //No drifting in space for space bears!
diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm
index a1a0cd68c9f..5c9265578f8 100644
--- a/code/modules/mob/living/simple_animal/hostile/bees.dm
+++ b/code/modules/mob/living/simple_animal/hostile/bees.dm
@@ -26,7 +26,7 @@
atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
minbodytemp = 0
-/mob/living/simple_animal/hostile/poison/bees/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/poison/bees/Process_Spacemove(movement_dir = 0)
return 1
/mob/living/simple_animal/hostile/poison/bees/New()
diff --git a/code/modules/mob/living/simple_animal/hostile/carp.dm b/code/modules/mob/living/simple_animal/hostile/carp.dm
index b98c42e2d7b..dd872f00853 100644
--- a/code/modules/mob/living/simple_animal/hostile/carp.dm
+++ b/code/modules/mob/living/simple_animal/hostile/carp.dm
@@ -32,7 +32,7 @@
faction = list("carp")
flying = 1
-/mob/living/simple_animal/hostile/carp/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/carp/Process_Spacemove(movement_dir = 0)
return 1 //No drifting in space for space carp! //original comments do not steal
/mob/living/simple_animal/hostile/carp/AttackingTarget()
diff --git a/code/modules/mob/living/simple_animal/hostile/faithless.dm b/code/modules/mob/living/simple_animal/hostile/faithless.dm
index ec9e38e6190..c74afd3be1b 100644
--- a/code/modules/mob/living/simple_animal/hostile/faithless.dm
+++ b/code/modules/mob/living/simple_animal/hostile/faithless.dm
@@ -27,7 +27,7 @@
faction = list("faithless")
-/mob/living/simple_animal/hostile/faithless/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/faithless/Process_Spacemove(movement_dir = 0)
return 1
/mob/living/simple_animal/hostile/faithless/AttackingTarget()
diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
index 1d3e90fb8e5..e28524867f2 100644
--- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
+++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
@@ -92,7 +92,7 @@
stop_automated_movement = 0
walk(src,0)
-/mob/living/simple_animal/hostile/poison/giant_spider/nurse/proc/GiveUp(var/C)
+/mob/living/simple_animal/hostile/poison/giant_spider/nurse/proc/GiveUp(C)
spawn(100)
if(busy == MOVING_TO_TARGET)
if(cocoon_target == C && get_dist(src,cocoon_target) > 1)
diff --git a/code/modules/mob/living/simple_animal/hostile/headcrab.dm b/code/modules/mob/living/simple_animal/hostile/headcrab.dm
index c8a84bd520e..1d46890166d 100644
--- a/code/modules/mob/living/simple_animal/hostile/headcrab.dm
+++ b/code/modules/mob/living/simple_animal/hostile/headcrab.dm
@@ -21,7 +21,7 @@
var/datum/mind/origin
var/egg_lain = 0
-/mob/living/simple_animal/hostile/headcrab/proc/Infect(var/mob/living/carbon/human/victim)
+/mob/living/simple_animal/hostile/headcrab/proc/Infect(mob/living/carbon/human/victim)
var/obj/item/body_egg/changeling_egg/egg = new(victim)
if(origin)
egg.owner = origin
diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm
index 26fe0a596c2..b70b4418d89 100644
--- a/code/modules/mob/living/simple_animal/hostile/hostile.dm
+++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm
@@ -97,10 +97,10 @@
GiveTarget(Target)
return Target //We now have a target
-/mob/living/simple_animal/hostile/proc/Found(var/atom/A)//This is here as a potential override to pick a specific target if available
+/mob/living/simple_animal/hostile/proc/Found(atom/A)//This is here as a potential override to pick a specific target if available
return
-/mob/living/simple_animal/hostile/proc/PickTarget(var/list/Targets)//Step 3, pick amongst the possible, attackable targets
+/mob/living/simple_animal/hostile/proc/PickTarget(list/Targets)//Step 3, pick amongst the possible, attackable targets
if(target != null)//If we already have a target, but are told to pick again, calculate the lowest distance between all possible, and pick from the lowest distance targets
for(var/atom/A in Targets)
var/target_dist = get_dist(src, target)
@@ -112,7 +112,7 @@
var/chosen_target = pick(Targets)//Pick the remaining targets (if any) at random
return chosen_target
-/mob/living/simple_animal/hostile/CanAttack(var/atom/the_target)//Can we actually attack a possible target?
+/mob/living/simple_animal/hostile/CanAttack(atom/the_target)//Can we actually attack a possible target?
if(see_invisible < the_target.invisibility)//Target's invisible to us, forget it
return 0
if(search_objects < 2)
@@ -146,7 +146,7 @@
return 1
return 0
-/mob/living/simple_animal/hostile/proc/GiveTarget(var/new_target)//Step 4, give us our selected target
+/mob/living/simple_animal/hostile/proc/GiveTarget(new_target)//Step 4, give us our selected target
target = new_target
if(target != null)
Aggro()
@@ -184,10 +184,10 @@
return
LoseTarget()
-/mob/living/simple_animal/hostile/proc/Goto(var/target, var/delay, var/minimum_distance)
+/mob/living/simple_animal/hostile/proc/Goto(target, delay, minimum_distance)
walk_to(src, target, minimum_distance, delay)
-/mob/living/simple_animal/hostile/adjustBruteLoss(var/damage)
+/mob/living/simple_animal/hostile/adjustBruteLoss(damage)
..(damage)
if(!client && !stat && search_objects < 3)//Not unconscious, and we don't ignore mobs
if(search_objects)//Turn off item searching and ignore whatever item we were looking at, we're more concerned with fight or flight
@@ -241,7 +241,7 @@
..(gibbed)
walk(src, 0)
-/mob/living/simple_animal/hostile/proc/OpenFire(var/the_target)
+/mob/living/simple_animal/hostile/proc/OpenFire(the_target)
var/target = the_target
visible_message("
[src] [ranged_message] at [target]!")
@@ -267,7 +267,7 @@
ranged_cooldown = ranged_cooldown_cap
return
-/mob/living/simple_animal/hostile/proc/Shoot(var/target, var/start, var/user, var/bullet = 0)
+/mob/living/simple_animal/hostile/proc/Shoot(target, start, user, bullet = 0)
if(target == start)
return
@@ -316,7 +316,7 @@
A.attack_animal(src)
return 1
-/mob/living/simple_animal/hostile/RangedAttack(var/atom/A, var/params) //Player firing
+/mob/living/simple_animal/hostile/RangedAttack(atom/A, params) //Player firing
if(ranged && ranged_cooldown <= 0)
target = A
OpenFire(A)
diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm
index aacc4469640..4c99fd62ca2 100644
--- a/code/modules/mob/living/simple_animal/hostile/mimic.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm
@@ -87,7 +87,7 @@
visible_message("
[src] starts to move!")
attempt_open = 1
-/mob/living/simple_animal/hostile/mimic/crate/adjustBruteLoss(var/damage)
+/mob/living/simple_animal/hostile/mimic/crate/adjustBruteLoss(damage)
trigger()
..(damage)
@@ -147,18 +147,18 @@ var/global/list/protected_objects = list(/obj/structure/table, /obj/structure/ca
. = ..()
return . - creator
-/mob/living/simple_animal/hostile/mimic/copy/proc/ChangeOwner(var/mob/owner)
+/mob/living/simple_animal/hostile/mimic/copy/proc/ChangeOwner(mob/owner)
if(owner != creator)
LoseTarget()
creator = owner
faction |= "\ref[owner]"
-/mob/living/simple_animal/hostile/mimic/copy/proc/CheckObject(var/obj/O)
+/mob/living/simple_animal/hostile/mimic/copy/proc/CheckObject(obj/O)
if((istype(O, /obj/item) || istype(O, /obj/structure)) && !is_type_in_list(O, protected_objects))
return 1
return 0
-/mob/living/simple_animal/hostile/mimic/copy/proc/CopyObject(var/obj/O, var/mob/living/creator, var/destroy_original = 0)
+/mob/living/simple_animal/hostile/mimic/copy/proc/CopyObject(obj/O, mob/living/creator, destroy_original = 0)
if(destroy_original || CheckObject(O))
@@ -216,7 +216,7 @@ var/global/list/protected_objects = list(/obj/structure/table, /obj/structure/ca
"My logic is undeniable.", "One of us.", "FLESH IS WEAK", "THIS ISN'T WAR, THIS IS EXTERMINATION!")
speak_chance = 15
-/mob/living/simple_animal/hostile/mimic/copy/machine/CanAttack(var/atom/the_target)
+/mob/living/simple_animal/hostile/mimic/copy/machine/CanAttack(atom/the_target)
if(the_target == creator) // Don't attack our creator AI.
return 0
if(isrobot(the_target))
@@ -249,7 +249,7 @@ var/global/list/protected_objects = list(/obj/structure/table, /obj/structure/ca
..()
-/mob/living/simple_animal/hostile/mimic/copy/ranged/CopyObject(var/obj/O, var/mob/living/creator, var/destroy_original = 0)
+/mob/living/simple_animal/hostile/mimic/copy/ranged/CopyObject(obj/O, mob/living/creator, destroy_original = 0)
if(destroy_original || CheckObject(O))
O.loc = src
@@ -298,7 +298,7 @@ var/global/list/protected_objects = list(/obj/structure/table, /obj/structure/ca
return 1
return
-/mob/living/simple_animal/hostile/mimic/copy/ranged/OpenFire(var/the_target)
+/mob/living/simple_animal/hostile/mimic/copy/ranged/OpenFire(the_target)
if(Zapgun)
if(Zapgun.power_supply) //sanity
var/obj/item/ammo_casing/energy/shot = Zapgun.ammo_type[Zapgun.select]
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
index 850f307f63b..fffffa30f30 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs.dm
@@ -23,7 +23,7 @@
..()
icon_state = icon_living
-/mob/living/simple_animal/hostile/asteroid/bullet_act(var/obj/item/projectile/P)//Reduces damage from most projectiles to curb off-screen kills
+/mob/living/simple_animal/hostile/asteroid/bullet_act(obj/item/projectile/P)//Reduces damage from most projectiles to curb off-screen kills
if(!stat)
Aggro()
if(P.damage < 30 && P.damage_type != BRUTE)
@@ -86,7 +86,7 @@
flag = "energy"
temperature = 50
-/mob/living/simple_animal/hostile/asteroid/basilisk/GiveTarget(var/new_target)
+/mob/living/simple_animal/hostile/asteroid/basilisk/GiveTarget(new_target)
target = new_target
if(target != null)
Aggro()
@@ -149,7 +149,7 @@
var/ore_eaten = 1
var/chase_time = 100
-/mob/living/simple_animal/hostile/asteroid/goldgrub/GiveTarget(var/new_target)
+/mob/living/simple_animal/hostile/asteroid/goldgrub/GiveTarget(new_target)
target = new_target
if(target != null)
if(istype(target, /obj/item/weapon/ore))
@@ -172,7 +172,7 @@
return
..()
-/mob/living/simple_animal/hostile/asteroid/goldgrub/proc/EatOre(var/atom/targeted_ore)
+/mob/living/simple_animal/hostile/asteroid/goldgrub/proc/EatOre(atom/targeted_ore)
for(var/obj/item/weapon/ore/O in targeted_ore.loc)
ore_eaten++
if(!(O.type in ore_types_eaten))
@@ -202,7 +202,7 @@
ore_eaten = 0
-/mob/living/simple_animal/hostile/asteroid/goldgrub/bullet_act(var/obj/item/projectile/P)
+/mob/living/simple_animal/hostile/asteroid/goldgrub/bullet_act(obj/item/projectile/P)
visible_message("
The [P.name] was repelled by [src.name]'s girth!")
return
@@ -211,7 +211,7 @@
Reward()
..(gibbed)
-/mob/living/simple_animal/hostile/asteroid/goldgrub/adjustBruteLoss(var/damage)
+/mob/living/simple_animal/hostile/asteroid/goldgrub/adjustBruteLoss(damage)
idle_vision_range = 9
..()
@@ -247,7 +247,7 @@
minimum_distance = 3
pass_flags = PASSTABLE
-/mob/living/simple_animal/hostile/asteroid/hivelord/OpenFire(var/the_target)
+/mob/living/simple_animal/hostile/asteroid/hivelord/OpenFire(the_target)
var/mob/living/simple_animal/hostile/asteroid/hivelordbrood/A = new /mob/living/simple_animal/hostile/asteroid/hivelordbrood(src.loc)
A.GiveTarget(target)
A.friends = friends
@@ -274,7 +274,7 @@
inert = 1
desc = "The remains of a hivelord that have become useless, having been left alone too long after being harvested."
-/obj/item/asteroid/hivelord_core/attack(mob/living/M as mob, mob/living/user as mob)
+/obj/item/asteroid/hivelord_core/attack(mob/living/M, mob/living/user)
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(inert)
@@ -388,7 +388,7 @@
pre_attack = 0
return
-/mob/living/simple_animal/hostile/asteroid/goliath/adjustBruteLoss(var/damage)
+/mob/living/simple_animal/hostile/asteroid/goliath/adjustBruteLoss(damage)
ranged_cooldown--
handle_preattack()
..()
diff --git a/code/modules/mob/living/simple_animal/hostile/mushroom.dm b/code/modules/mob/living/simple_animal/hostile/mushroom.dm
index 8b9eaecaecc..8f082395c4c 100644
--- a/code/modules/mob/living/simple_animal/hostile/mushroom.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mushroom.dm
@@ -59,14 +59,14 @@
health = maxHealth
..()
-/mob/living/simple_animal/hostile/mushroom/adjustBruteLoss(var/damage)//Possibility to flee from a fight just to make it more visually interesting
+/mob/living/simple_animal/hostile/mushroom/adjustBruteLoss(damage)//Possibility to flee from a fight just to make it more visually interesting
if(!retreat_distance && prob(33))
retreat_distance = 5
spawn(30)
retreat_distance = null
..()
-/mob/living/simple_animal/hostile/mushroom/attack_animal(var/mob/living/L)
+/mob/living/simple_animal/hostile/mushroom/attack_animal(mob/living/L)
if(istype(L, /mob/living/simple_animal/hostile/mushroom) && stat == DEAD)
var/mob/living/simple_animal/hostile/mushroom/M = L
if(faint_ticker < 2)
@@ -110,7 +110,7 @@
spawn(300)
recovery_cooldown = 0
-/mob/living/simple_animal/hostile/mushroom/proc/LevelUp(var/level_gain)
+/mob/living/simple_animal/hostile/mushroom/proc/LevelUp(level_gain)
if(powerlevel <= 9)
powerlevel += level_gain
if(prob(25))
@@ -125,7 +125,7 @@
src.visible_message("The [src.name] was bruised!")
bruised = 1
-/mob/living/simple_animal/hostile/mushroom/attackby(obj/item/I as obj, mob/user as mob, params)
+/mob/living/simple_animal/hostile/mushroom/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/reagent_containers/food/snacks/grown/mushroom))
if(stat == DEAD && !recovery_cooldown)
Recover()
@@ -137,7 +137,7 @@
Bruise()
..()
-/mob/living/simple_animal/hostile/mushroom/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/simple_animal/hostile/mushroom/attack_hand(mob/living/carbon/human/M)
..()
if(M.a_intent == "harm")
Bruise()
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
index 6c76a1520cd..5c4a4621da0 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
@@ -1,7 +1,7 @@
/mob/living/simple_animal/hostile/retaliate
var/list/enemies = list()
-/mob/living/simple_animal/hostile/retaliate/Found(var/atom/A)
+/mob/living/simple_animal/hostile/retaliate/Found(atom/A)
if(isliving(A))
var/mob/living/L = A
if(!L.stat)
@@ -51,7 +51,7 @@
H.enemies |= enemies
return 0
-/mob/living/simple_animal/hostile/retaliate/adjustBruteLoss(var/damage)
+/mob/living/simple_animal/hostile/retaliate/adjustBruteLoss(damage)
..(damage)
if(stat == CONSCIOUS)
Retaliate()
diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm
index d61fbfa6706..9d5fc402615 100644
--- a/code/modules/mob/living/simple_animal/hostile/statue.dm
+++ b/code/modules/mob/living/simple_animal/hostile/statue.dm
@@ -62,7 +62,7 @@
if(creator)
src.creator = creator
-/mob/living/simple_animal/hostile/statue/Move(var/turf/NewLoc)
+/mob/living/simple_animal/hostile/statue/Move(turf/NewLoc)
if(can_be_seen(NewLoc))
if(client)
src << "
You cannot move, there are eyes on you!"
@@ -96,7 +96,7 @@
if(!can_be_seen(get_turf(loc)))
..()
-/mob/living/simple_animal/hostile/statue/proc/can_be_seen(var/turf/destination)
+/mob/living/simple_animal/hostile/statue/proc/can_be_seen(turf/destination)
if(!cannot_be_seen)
return null
// Check for darkness
@@ -131,13 +131,13 @@
// Turn to dust when gibbed
-/mob/living/simple_animal/hostile/statue/gib(var/animation = 0)
+/mob/living/simple_animal/hostile/statue/gib(animation = 0)
dust(animation)
// Stop attacking clientless mobs
-/mob/living/simple_animal/hostile/statue/CanAttack(var/atom/the_target)
+/mob/living/simple_animal/hostile/statue/CanAttack(atom/the_target)
if(isliving(the_target))
var/mob/living/L = the_target
if(!L.client && !L.ckey)
diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm
index d01462502f6..38987cf6d27 100644
--- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm
+++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm
@@ -51,7 +51,7 @@
attack_sound = 'sound/weapons/bladeslice.ogg'
status_flags = 0
-/mob/living/simple_animal/hostile/syndicate/melee/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/mob/living/simple_animal/hostile/syndicate/melee/attackby(obj/item/O, mob/user, params)
if(O.force)
if(prob(80))
var/damage = O.force
@@ -67,7 +67,7 @@
visible_message("
[user] gently taps [src] with [O].")
-/mob/living/simple_animal/hostile/syndicate/melee/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/simple_animal/hostile/syndicate/melee/bullet_act(obj/item/projectile/Proj)
if(!Proj) return
if(prob(65))
if((Proj.damage_type == BRUTE || Proj.damage_type == BURN))
@@ -86,7 +86,7 @@
corpse = /obj/effect/landmark/mobcorpse/syndicatecommando
speed = 1
-/mob/living/simple_animal/hostile/syndicate/melee/space/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/syndicate/melee/space/Process_Spacemove(movement_dir = 0)
return
/mob/living/simple_animal/hostile/syndicate/ranged
@@ -111,7 +111,7 @@
corpse = /obj/effect/landmark/mobcorpse/syndicatecommando
speed = 1
-/mob/living/simple_animal/hostile/syndicate/ranged/space/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/hostile/syndicate/ranged/space/Process_Spacemove(movement_dir = 0)
return
diff --git a/code/modules/mob/living/simple_animal/morph/morph.dm b/code/modules/mob/living/simple_animal/morph/morph.dm
index fb17c943adf..af42538d056 100644
--- a/code/modules/mob/living/simple_animal/morph/morph.dm
+++ b/code/modules/mob/living/simple_animal/morph/morph.dm
@@ -35,20 +35,20 @@
/mob/living/simple_animal/hostile/morph/examine(mob/user)
if(morphed)
form.examine(user) // Refactor examine to return desc so it's static? Not sure if worth it
- if(get_dist(user,src)<=3)
+ if(get_dist(user,src)<=3)
user << "
Looks odd!"
else
..()
return
-/mob/living/simple_animal/hostile/morph/proc/allowed(var/atom/movable/A) // make it into property/proc ? not sure if worth it
+/mob/living/simple_animal/hostile/morph/proc/allowed(atom/movable/A) // make it into property/proc ? not sure if worth it
if(istype(A,/obj/screen))
return 0
if(istype(A,/obj/singularity))
return 0
return 1
-/mob/living/simple_animal/hostile/morph/ShiftClickOn(var/atom/movable/A)
+/mob/living/simple_animal/hostile/morph/ShiftClickOn(atom/movable/A)
if(morph_time <= world.time)
if(A == src)
restore()
@@ -58,10 +58,10 @@
else
..()
-/mob/living/simple_animal/hostile/morph/proc/assume(var/atom/movable/target)
+/mob/living/simple_animal/hostile/morph/proc/assume(atom/movable/target)
morphed = 1
form = target
-
+
//anim(loc,src,'icons/mob/mob.dmi',,"morph",,src.dir) No effect better than shit effect
//Todo : update to .appearance once 508 hits
@@ -89,9 +89,9 @@
return
morphed = 0
form = null
-
- //anim(loc,src,'icons/mob/mob.dmi',,"morph",,src.dir)
-
+
+ //anim(loc,src,'icons/mob/mob.dmi',,"morph",,src.dir)
+
name = initial(name)
icon = initial(icon)
icon_state = initial(icon_state)
@@ -171,7 +171,7 @@
/datum/round_event/morph
var/key_of_morph
-/datum/round_event/morph/proc/get_morph(var/end_if_fail = 0)
+/datum/round_event/morph/proc/get_morph(end_if_fail = 0)
key_of_morph = null
if(!key_of_morph)
var/list/candidates = get_candidates(BE_ALIEN)
diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm
index 1f6e0713900..41c36669023 100644
--- a/code/modules/mob/living/simple_animal/parrot.dm
+++ b/code/modules/mob/living/simple_animal/parrot.dm
@@ -261,7 +261,7 @@
* Attack responces
*/
//Humans, monkeys, aliens
-/mob/living/simple_animal/parrot/attack_hand(mob/living/carbon/M as mob)
+/mob/living/simple_animal/parrot/attack_hand(mob/living/carbon/M)
..()
if(client)
return
@@ -282,14 +282,14 @@
drop_held_item(0)
return
-/mob/living/simple_animal/parrot/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/simple_animal/parrot/attack_paw(mob/living/carbon/monkey/M)
attack_hand(M)
-/mob/living/simple_animal/parrot/attack_alien(mob/living/carbon/alien/M as mob)
+/mob/living/simple_animal/parrot/attack_alien(mob/living/carbon/alien/M)
attack_hand(M)
//Simple animals
-/mob/living/simple_animal/parrot/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/simple_animal/parrot/attack_animal(mob/living/simple_animal/M)
..() //goodbye immortal parrots
if(client)
@@ -304,7 +304,7 @@
icon_state = "parrot_fly"
//Mobs with objects
-/mob/living/simple_animal/parrot/attackby(var/obj/item/O as obj, var/mob/living/user as mob, params)
+/mob/living/simple_animal/parrot/attackby(obj/item/O, mob/living/user, params)
if(!stat && !client && !istype(O, /obj/item/stack/medical) && !istype(O,/obj/item/weapon/reagent_containers/food/snacks/cracker))
if(O.force)
if(parrot_state == PARROT_PERCH)
@@ -328,7 +328,7 @@
return
//Bullets
-/mob/living/simple_animal/parrot/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/simple_animal/parrot/bullet_act(obj/item/projectile/Proj)
..()
if(!stat && !client)
if(parrot_state == PARROT_PERCH)
@@ -729,7 +729,7 @@
return
-/mob/living/simple_animal/parrot/proc/drop_held_item(var/drop_gently = 1)
+/mob/living/simple_animal/parrot/proc/drop_held_item(drop_gently = 1)
set name = "Drop held item"
set category = "Parrot"
set desc = "Drop the item you're holding."
diff --git a/code/modules/mob/living/simple_animal/revenant/revenant.dm b/code/modules/mob/living/simple_animal/revenant/revenant.dm
index dc1137e62d5..cb99c234248 100644
--- a/code/modules/mob/living/simple_animal/revenant/revenant.dm
+++ b/code/modules/mob/living/simple_animal/revenant/revenant.dm
@@ -54,7 +54,7 @@
/mob/living/simple_animal/revenant/ex_act(severity, target)
return 1 //Immune to the effects of explosions.
-/mob/living/simple_animal/revenant/ClickOn(var/atom/A, var/params) //Copypaste from ghost code - revenants can't interact with the world directly.
+/mob/living/simple_animal/revenant/ClickOn(atom/A, params) //Copypaste from ghost code - revenants can't interact with the world directly.
if(client.buildmode)
build_click(src, client.buildmode, params, A)
return
@@ -158,7 +158,7 @@
-/mob/living/simple_animal/revenant/proc/castcheck(var/essence_cost)
+/mob/living/simple_animal/revenant/proc/castcheck(essence_cost)
var/mob/living/simple_animal/revenant/user = usr
if(!istype(user) || !user)
return
@@ -176,7 +176,7 @@
-/mob/living/simple_animal/revenant/proc/change_essence_amount(var/essence_amt, var/silent = 0, var/source = null)
+/mob/living/simple_animal/revenant/proc/change_essence_amount(essence_amt, silent = 0, source = null)
var/mob/living/simple_animal/revenant/user = usr
if(!istype(usr) || !usr)
return
@@ -193,7 +193,7 @@
-/mob/living/simple_animal/revenant/proc/reveal(var/time, var/stun)
+/mob/living/simple_animal/revenant/proc/reveal(time, stun)
var/mob/living/simple_animal/revenant/R = usr
if(!istype(usr) || !usr)
return
diff --git a/code/modules/mob/living/simple_animal/revenant/revenant_abilities.dm b/code/modules/mob/living/simple_animal/revenant/revenant_abilities.dm
index 01f527f2e07..b4f47647871 100644
--- a/code/modules/mob/living/simple_animal/revenant/revenant_abilities.dm
+++ b/code/modules/mob/living/simple_animal/revenant/revenant_abilities.dm
@@ -10,7 +10,7 @@
var/draining
var/list/drained_mobs = list() //Cannot harvest the same mob twice
-/obj/effect/proc_holder/spell/targeted/revenant_harvest/cast(list/targets, var/mob/living/simple_animal/revenant/user = usr)
+/obj/effect/proc_holder/spell/targeted/revenant_harvest/cast(list/targets, mob/living/simple_animal/revenant/user = usr)
if(!user.castcheck(0))
charge_counter = charge_max
return
@@ -82,7 +82,7 @@
include_user = 1
var/locked = 1
-/obj/effect/proc_holder/spell/targeted/revenant_transmit/cast(list/targets, var/mob/living/simple_animal/revenant/user = usr)
+/obj/effect/proc_holder/spell/targeted/revenant_transmit/cast(list/targets, mob/living/simple_animal/revenant/user = usr)
if(!user.castcheck(-5))
charge_counter = charge_max
return
@@ -114,7 +114,7 @@
range = 1
var/locked = 1
-/obj/effect/proc_holder/spell/aoe_turf/revenant_light/cast(list/targets, var/mob/living/simple_animal/revenant/user = usr)
+/obj/effect/proc_holder/spell/aoe_turf/revenant_light/cast(list/targets, mob/living/simple_animal/revenant/user = usr)
if(!user.castcheck(-25))
charge_counter = charge_max
return
@@ -152,7 +152,7 @@
range = 1
var/locked = 1
-/obj/effect/proc_holder/spell/aoe_turf/revenantDefile/cast(list/targets, var/mob/living/simple_animal/revenant/user = usr)
+/obj/effect/proc_holder/spell/aoe_turf/revenantDefile/cast(list/targets, mob/living/simple_animal/revenant/user = usr)
if(!user.castcheck(-30))
charge_counter = charge_max
return
diff --git a/code/modules/mob/living/simple_animal/revenant/revenant_spawn_event.dm b/code/modules/mob/living/simple_animal/revenant/revenant_spawn_event.dm
index 3d3e7910656..25516b51619 100644
--- a/code/modules/mob/living/simple_animal/revenant/revenant_spawn_event.dm
+++ b/code/modules/mob/living/simple_animal/revenant/revenant_spawn_event.dm
@@ -12,7 +12,7 @@
var/key_of_revenant
-/datum/round_event/revenant/proc/get_revenant(var/end_if_fail = 0)
+/datum/round_event/revenant/proc/get_revenant(end_if_fail = 0)
var/deadMobs = 0
for(var/mob/M in dead_mob_list)
deadMobs++
diff --git a/code/modules/mob/living/simple_animal/shade.dm b/code/modules/mob/living/simple_animal/shade.dm
index 2589c79d5c9..cb43847c32c 100644
--- a/code/modules/mob/living/simple_animal/shade.dm
+++ b/code/modules/mob/living/simple_animal/shade.dm
@@ -36,7 +36,7 @@
return
-/mob/living/simple_animal/shade/attackby(var/obj/item/O as obj, var/mob/user as mob, params) //Marker -Agouri
+/mob/living/simple_animal/shade/attackby(obj/item/O, mob/user, params) //Marker -Agouri
if(istype(O, /obj/item/device/soulstone))
var/obj/item/device/soulstone/SS = O
SS.transfer_soul("SHADE", src, user)
diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm
index f20d4c04b8b..dedb7bb3f99 100644
--- a/code/modules/mob/living/simple_animal/simple_animal.dm
+++ b/code/modules/mob/living/simple_animal/simple_animal.dm
@@ -214,7 +214,7 @@
else if(bodytemperature > maxbodytemp)
adjustBruteLoss(3)
-/mob/living/simple_animal/gib(var/animation = 0)
+/mob/living/simple_animal/gib(animation = 0)
if(icon_gib)
flick(icon_gib, src)
if(butcher_results)
@@ -236,7 +236,7 @@
return "[emote], \"[input]\""
return ..()
-/mob/living/simple_animal/emote(var/act, var/m_type=1, var/message = null)
+/mob/living/simple_animal/emote(act, m_type=1, message = null)
if(stat)
return
if(act == "scream")
@@ -244,26 +244,26 @@
act = "me"
..(act, m_type, message)
-/mob/living/simple_animal/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/simple_animal/attack_animal(mob/living/simple_animal/M)
if(..())
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
attack_threshold_check(damage)
return 1
-/mob/living/simple_animal/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/simple_animal/bullet_act(obj/item/projectile/Proj)
if(!Proj)
return
apply_damage(Proj.damage, Proj.damage_type)
Proj.on_hit(src, 0)
return 0
-/mob/living/simple_animal/adjustFireLoss(var/amount)
+/mob/living/simple_animal/adjustFireLoss(amount)
adjustBruteLoss(amount)
-/mob/living/simple_animal/adjustStaminaLoss(var/amount)
+/mob/living/simple_animal/adjustStaminaLoss(amount)
return
-/mob/living/simple_animal/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/simple_animal/attack_hand(mob/living/carbon/human/M)
switch(M.a_intent)
if("help")
@@ -283,7 +283,7 @@
updatehealth()
return 1
-/mob/living/simple_animal/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/simple_animal/attack_paw(mob/living/carbon/monkey/M)
if(..()) //successful monkey bite.
if(stat != DEAD)
var/damage = rand(1, 3)
@@ -296,7 +296,7 @@
return
-/mob/living/simple_animal/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/simple_animal/attack_alien(mob/living/carbon/alien/humanoid/M)
if(..()) //if harm or disarm intent.
if(M.a_intent == "disarm")
playsound(loc, 'sound/weapons/pierce.ogg', 25, 1, -1)
@@ -312,7 +312,7 @@
add_logs(M, src, "attacked")
return 1
-/mob/living/simple_animal/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/simple_animal/attack_larva(mob/living/carbon/alien/larva/L)
if(..()) //successful larva bite
var/damage = rand(5, 10)
if(stat != DEAD)
@@ -320,7 +320,7 @@
attack_threshold_check(damage)
return 1
-/mob/living/simple_animal/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/simple_animal/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime attack
var/damage = rand(15, 25)
if(M.is_adult)
@@ -328,7 +328,7 @@
attack_threshold_check(damage)
return 1
-/mob/living/simple_animal/proc/attack_threshold_check(var/damage)
+/mob/living/simple_animal/proc/attack_threshold_check(damage)
if(damage <= force_threshold)
visible_message("
[src] looks unharmed.")
else
@@ -336,7 +336,7 @@
updatehealth()
-/mob/living/simple_animal/attackby(var/obj/item/O as obj, var/mob/living/user as mob, params) //Marker -Agouri
+/mob/living/simple_animal/attackby(obj/item/O, mob/living/user, params) //Marker -Agouri
if(O.flags & NOBLUDGEON)
return
@@ -412,7 +412,7 @@
adjustBruteLoss(30)
updatehealth()
-/mob/living/simple_animal/proc/CanAttack(var/atom/the_target)
+/mob/living/simple_animal/proc/CanAttack(atom/the_target)
if(see_invisible < the_target.invisibility)
return 0
if (isliving(the_target))
diff --git a/code/modules/mob/living/simple_animal/slaughter/slaughter.dm b/code/modules/mob/living/simple_animal/slaughter/slaughter.dm
index 61f19d51552..cff95221196 100644
--- a/code/modules/mob/living/simple_animal/slaughter/slaughter.dm
+++ b/code/modules/mob/living/simple_animal/slaughter/slaughter.dm
@@ -51,7 +51,7 @@
////////////////////The Powers
-/mob/living/simple_animal/slaughter/proc/phaseout(var/obj/effect/decal/cleanable/B)
+/mob/living/simple_animal/slaughter/proc/phaseout(obj/effect/decal/cleanable/B)
var/turf/mobloc = get_turf(src.loc)
var/turf/bloodloc = get_turf(B.loc)
if(Adjacent(bloodloc))
@@ -93,7 +93,7 @@
src.eating = FALSE
src.notransform = 0
-/mob/living/simple_animal/slaughter/proc/phasein(var/obj/effect/decal/cleanable/B)
+/mob/living/simple_animal/slaughter/proc/phasein(obj/effect/decal/cleanable/B)
if(src.eating)
src << "
Finish eating first!"
else
@@ -104,7 +104,7 @@
playsound(get_turf(src), 'sound/magic/exit_blood.ogg', 100, 1, -1)
qdel(src.holder)
-/obj/effect/decal/cleanable/blood/CtrlClick(var/mob/user)
+/obj/effect/decal/cleanable/blood/CtrlClick(mob/user)
..()
if(istype(user, /mob/living/simple_animal/slaughter))
var/mob/living/simple_animal/slaughter/S = user
@@ -114,7 +114,7 @@
S.phaseout(src)
-/obj/effect/decal/cleanable/trail_holder/CtrlClick(var/mob/user)
+/obj/effect/decal/cleanable/trail_holder/CtrlClick(mob/user)
..()
if(istype(user, /mob/living/simple_animal/slaughter))
var/mob/living/simple_animal/slaughter/S = user
@@ -147,7 +147,7 @@
anchored = 1
invisibility = 60
-obj/effect/dummy/slaughter/relaymove(var/mob/user, direction)
+obj/effect/dummy/slaughter/relaymove(mob/user, direction)
if (!src.canmove || !direction) return
var/turf/newLoc = get_step(src,direction)
loc = newLoc
diff --git a/code/modules/mob/living/simple_animal/slaughter/slaughterevent.dm b/code/modules/mob/living/simple_animal/slaughter/slaughterevent.dm
index 3db4b52bcfd..8e836a74250 100644
--- a/code/modules/mob/living/simple_animal/slaughter/slaughterevent.dm
+++ b/code/modules/mob/living/simple_animal/slaughter/slaughterevent.dm
@@ -12,7 +12,7 @@
var/key_of_slaughter
-/datum/round_event/slaughter/proc/get_slaughter(var/end_if_fail = 0)
+/datum/round_event/slaughter/proc/get_slaughter(end_if_fail = 0)
key_of_slaughter = null
if(!key_of_slaughter)
var/list/candidates = get_candidates(BE_ALIEN)
diff --git a/code/modules/mob/living/simple_animal/slime/emote.dm b/code/modules/mob/living/simple_animal/slime/emote.dm
index 7f8127d3bcf..85a298336a0 100644
--- a/code/modules/mob/living/simple_animal/slime/emote.dm
+++ b/code/modules/mob/living/simple_animal/slime/emote.dm
@@ -1,4 +1,4 @@
-/mob/living/simple_animal/slime/emote(var/act)
+/mob/living/simple_animal/slime/emote(act)
if (findtext(act, "-", 1, null))
diff --git a/code/modules/mob/living/simple_animal/slime/life.dm b/code/modules/mob/living/simple_animal/slime/life.dm
index 88b876e102e..5531fcd6a85 100644
--- a/code/modules/mob/living/simple_animal/slime/life.dm
+++ b/code/modules/mob/living/simple_animal/slime/life.dm
@@ -177,7 +177,7 @@
else
Evolve()
-/mob/living/simple_animal/slime/proc/add_nutrition(var/nutrition_to_add = 0, var/lastnut = 0)
+/mob/living/simple_animal/slime/proc/add_nutrition(nutrition_to_add = 0, lastnut = 0)
nutrition = min((nutrition + nutrition_to_add), get_max_nutrition())
if(nutrition >= (lastnut + 50))
if(prob(80))
@@ -492,7 +492,7 @@
if(is_adult) return 300
else return 200
-/mob/living/simple_animal/slime/proc/will_hunt(var/hunger = -1) // Check for being stopped from feeding and chasing
+/mob/living/simple_animal/slime/proc/will_hunt(hunger = -1) // Check for being stopped from feeding and chasing
if (docile) return 0
if (hunger == 2 || rabid || attacked) return 1
if (Leader) return 0
diff --git a/code/modules/mob/living/simple_animal/slime/powers.dm b/code/modules/mob/living/simple_animal/slime/powers.dm
index a2da3fb63d6..d41d71cbbea 100644
--- a/code/modules/mob/living/simple_animal/slime/powers.dm
+++ b/code/modules/mob/living/simple_animal/slime/powers.dm
@@ -16,7 +16,7 @@
Feedon(M)
return 1
-/mob/living/simple_animal/slime/proc/CanFeedon(var/mob/living/M)
+/mob/living/simple_animal/slime/proc/CanFeedon(mob/living/M)
if(!Adjacent(M))
return 0
@@ -46,7 +46,7 @@
return 0
return 1
-/mob/living/simple_animal/slime/proc/Feedon(var/mob/living/M)
+/mob/living/simple_animal/slime/proc/Feedon(mob/living/M)
src << "
I have latched onto the subject and begun feeding..."
M << "
The [name] has latched onto [M.name]!"
@@ -138,7 +138,7 @@
Victim << "[src] has let go of your head!"
Victim = null
-/mob/living/simple_animal/slime/proc/UpdateFeed(var/mob/M)
+/mob/living/simple_animal/slime/proc/UpdateFeed(mob/M)
if(Victim)
if(Victim == M)
loc = M.loc // simple "attach to head" effect!
diff --git a/code/modules/mob/living/simple_animal/slime/slime.dm b/code/modules/mob/living/simple_animal/slime/slime.dm
index d638788ed1d..75da09b542c 100644
--- a/code/modules/mob/living/simple_animal/slime/slime.dm
+++ b/code/modules/mob/living/simple_animal/slime/slime.dm
@@ -141,7 +141,7 @@
spawn(45)
Atkcool = 0
-/mob/living/simple_animal/slime/Process_Spacemove(var/movement_dir = 0)
+/mob/living/simple_animal/slime/Process_Spacemove(movement_dir = 0)
return 2
/mob/living/simple_animal/slime/Stat()
@@ -161,7 +161,7 @@
..(-abs(amount)) // Heals them
return
-/mob/living/simple_animal/slime/bullet_act(var/obj/item/projectile/Proj)
+/mob/living/simple_animal/slime/bullet_act(obj/item/projectile/Proj)
if(!Proj)
return
attacked += 10
@@ -176,23 +176,23 @@
powerlevel = 0 // oh no, the power!
..()
-/mob/living/simple_animal/slime/MouseDrop(var/atom/movable/A as mob|obj)
+/mob/living/simple_animal/slime/MouseDrop(atom/movable/A as mob|obj)
if(isliving(A) && A != src)
var/mob/living/Food = A
if(CanFeedon(Food))
Feedon(Food)
..()
-/mob/living/simple_animal/slime/unEquip(obj/item/W as obj)
+/mob/living/simple_animal/slime/unEquip(obj/item/W)
return
-/mob/living/simple_animal/slime/start_pulling(var/atom/movable/AM)
+/mob/living/simple_animal/slime/start_pulling(atom/movable/AM)
return
/mob/living/simple_animal/slime/attack_ui(slot)
return
-/mob/living/simple_animal/slime/attack_slime(mob/living/simple_animal/slime/M as mob)
+/mob/living/simple_animal/slime/attack_slime(mob/living/simple_animal/slime/M)
if(..()) //successful slime attack
if(M == src)
return
@@ -208,16 +208,16 @@
M.adjustBruteLoss(-10 + (-10 * M.is_adult))
M.updatehealth()
-/mob/living/simple_animal/slime/attack_animal(mob/living/simple_animal/M as mob)
+/mob/living/simple_animal/slime/attack_animal(mob/living/simple_animal/M)
if(..())
attacked += 10
-/mob/living/simple_animal/slime/attack_paw(mob/living/carbon/monkey/M as mob)
+/mob/living/simple_animal/slime/attack_paw(mob/living/carbon/monkey/M)
if(..()) //successful monkey bite.
attacked += 10
-/mob/living/simple_animal/slime/attack_larva(mob/living/carbon/alien/larva/L as mob)
+/mob/living/simple_animal/slime/attack_larva(mob/living/carbon/alien/larva/L)
if(..()) //successful larva bite.
attacked += 10
@@ -227,7 +227,7 @@
discipline_slime(user)
-/mob/living/simple_animal/slime/attack_hand(mob/living/carbon/human/M as mob)
+/mob/living/simple_animal/slime/attack_hand(mob/living/carbon/human/M)
if(Victim)
if(Victim == M)
if(prob(60))
@@ -260,7 +260,7 @@
if(..()) //successful attack
attacked += 10
-/mob/living/simple_animal/slime/attack_alien(mob/living/carbon/alien/humanoid/M as mob)
+/mob/living/simple_animal/slime/attack_alien(mob/living/carbon/alien/humanoid/M)
if(..()) //if harm or disarm intent.
attacked += 10
discipline_slime(M)
diff --git a/code/modules/mob/living/simple_animal/slime/subtypes.dm b/code/modules/mob/living/simple_animal/slime/subtypes.dm
index 55a6eee734d..a2df855d0b7 100644
--- a/code/modules/mob/living/simple_animal/slime/subtypes.dm
+++ b/code/modules/mob/living/simple_animal/slime/subtypes.dm
@@ -1,4 +1,4 @@
-/mob/living/simple_animal/slime/proc/mutation_table(var/colour)
+/mob/living/simple_animal/slime/proc/mutation_table(colour)
var/list/slime_mutation[4]
switch(colour)
//Tier 1
diff --git a/code/modules/mob/living/simple_animal/worm.dm b/code/modules/mob/living/simple_animal/worm.dm
index 333deb7eb59..273d14d2c90 100644
--- a/code/modules/mob/living/simple_animal/worm.dm
+++ b/code/modules/mob/living/simple_animal/worm.dm
@@ -133,7 +133,7 @@
return
- proc/AttemptToEat(var/atom/target)
+ proc/AttemptToEat(atom/target)
if(istype(target,/turf/simulated/wall))
if((!istype(target,/turf/simulated/wall/r_wall) && eatingDuration >= 100) || eatingDuration >= 200) //need 20 ticks to eat an rwall, 10 for a regular one
var/turf/simulated/wall/wall = target
@@ -148,7 +148,7 @@
return 0
- proc/Attach(var/mob/living/simple_animal/space_worm/attachement)
+ proc/Attach(mob/living/simple_animal/space_worm/attachement)
if(!attachement)
return
diff --git a/code/modules/mob/living/ventcrawling.dm b/code/modules/mob/living/ventcrawling.dm
index 5df785e016c..de8db9663ea 100644
--- a/code/modules/mob/living/ventcrawling.dm
+++ b/code/modules/mob/living/ventcrawling.dm
@@ -1,9 +1,9 @@
-var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, /obj/machinery/atmospherics/unary/vent_scrubber)
+var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/components/unary/vent_pump, /obj/machinery/atmospherics/components/unary/vent_scrubber)
//VENTCRAWLING
-/mob/living/proc/handle_ventcrawl(var/atom/A)
+/mob/living/proc/handle_ventcrawl(atom/A)
if(!ventcrawler || !Adjacent(A))
return
if(stat)
@@ -13,7 +13,7 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
src << "You can't vent crawl while you're stunned!"
return
- var/obj/machinery/atmospherics/unary/vent_found
+ var/obj/machinery/atmospherics/components/unary/vent_found
if(A)
@@ -34,7 +34,8 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
if(vent_found)
- if(vent_found.parent && (vent_found.parent.members.len || vent_found.parent.other_atmosmch))
+ var/datum/pipeline/vent_found_parent = vent_found.parents["p1"]
+ if(vent_found_parent && (vent_found_parent.members.len || vent_found_parent.other_atmosmch))
visible_message("
[src] begins climbing into the ventilation system..." ,"
You begin climbing into the ventilation system...")
if(!do_after(src, 25, target = vent_found))
@@ -62,12 +63,13 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
src << "
This ventilation duct is not connected to anything!"
-/mob/living/proc/add_ventcrawl(obj/machinery/atmospherics/starting_machine)
+/mob/living/proc/add_ventcrawl(obj/machinery/atmospherics/components/starting_machine)
if(!istype(starting_machine) || !starting_machine.returnPipenet())
return
var/list/totalMembers = list()
- totalMembers |= starting_machine.parent.members
- totalMembers |= starting_machine.parent.other_atmosmch
+ var/datum/pipeline/starting_machine_parent = starting_machine.parents["p1"]
+ totalMembers |= starting_machine_parent.members
+ totalMembers |= starting_machine_parent.other_atmosmch
for(var/obj/machinery/atmospherics/A in totalMembers)
if(!A.pipe_vision_img)
@@ -89,10 +91,10 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
//OOP
-/atom/proc/update_pipe_vision(var/atom/new_loc = null)
+/atom/proc/update_pipe_vision(atom/new_loc = null)
return
-/mob/living/update_pipe_vision(var/atom/new_loc = null)
+/mob/living/update_pipe_vision(atom/new_loc = null)
. = loc
if(new_loc)
. = new_loc
diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm
index 7e1b151a408..6e9e8ccd996 100644
--- a/code/modules/mob/mob.dm
+++ b/code/modules/mob/mob.dm
@@ -10,7 +10,7 @@
ghostize()
..()
-/mob/proc/sac_act(var/obj/effect/rune/R, var/mob/victim as mob)
+/mob/proc/sac_act(obj/effect/rune/R, mob/victim)
return
var/next_mob_id = 0
@@ -81,7 +81,7 @@ var/next_mob_id = 0
// self_message (optional) is what the src mob sees e.g. "You do something!"
// blind_message (optional) is what blind people will hear e.g. "You hear something!"
-/mob/visible_message(var/message, var/self_message, var/blind_message)
+/mob/visible_message(message, self_message, blind_message)
var/list/mob_viewers = list()
var/list/possible_viewers = list()
mob_viewers |= src
@@ -120,7 +120,7 @@ var/next_mob_id = 0
// message is output to anyone who can see, e.g. "The [src] does something!"
// blind_message (optional) is what blind people will hear e.g. "You hear something!"
-/atom/proc/visible_message(var/message, var/blind_message)
+/atom/proc/visible_message(message, blind_message)
var/list/mob_viewers = list()
var/list/possible_viewers = list()
mob_viewers |= viewers(src)
@@ -155,7 +155,7 @@ var/next_mob_id = 0
// deaf_message (optional) is what deaf people will see.
// hearing_distance (optional) is the range, how many tiles away the message can be heard.
-/mob/audible_message(var/message, var/deaf_message, var/hearing_distance, var/self_message)
+/mob/audible_message(message, deaf_message, hearing_distance, self_message)
var/range = 7
if(hearing_distance)
range = hearing_distance
@@ -171,7 +171,7 @@ var/next_mob_id = 0
// deaf_message (optional) is what deaf people will see.
// hearing_distance (optional) is the range, how many tiles away the message can be heard.
-/atom/proc/audible_message(var/message, var/deaf_message, var/hearing_distance)
+/atom/proc/audible_message(message, deaf_message, hearing_distance)
var/range = 7
if(hearing_distance)
range = hearing_distance
@@ -192,7 +192,7 @@ var/next_mob_id = 0
return r_hand
return null
-/mob/proc/ret_grab(obj/effect/list_container/mobl/L as obj, flag)
+/mob/proc/ret_grab(obj/effect/list_container/mobl/L, flag)
if ((!( istype(l_hand, /obj/item/weapon/grab) ) && !( istype(r_hand, /obj/item/weapon/grab) )))
if (!( L ))
return null
@@ -248,7 +248,7 @@ var/next_mob_id = 0
return 0
-/mob/proc/put_in_any_hand_if_possible(obj/item/W as obj, qdel_on_fail = 0, disable_warning = 1, redraw_mob = 1)
+/mob/proc/put_in_any_hand_if_possible(obj/item/W, qdel_on_fail = 0, disable_warning = 1, redraw_mob = 1)
if(equip_to_slot_if_possible(W, slot_l_hand, qdel_on_fail, disable_warning, redraw_mob))
return 1
else if(equip_to_slot_if_possible(W, slot_r_hand, qdel_on_fail, disable_warning, redraw_mob))
@@ -259,7 +259,7 @@ var/next_mob_id = 0
//set qdel_on_fail to have it delete W if it fails to equip
//set disable_warning to disable the 'you are unable to equip that' warning.
//unset redraw_mob to prevent the mob from being redrawn at the end.
-/mob/proc/equip_to_slot_if_possible(obj/item/W as obj, slot, qdel_on_fail = 0, disable_warning = 0, redraw_mob = 1)
+/mob/proc/equip_to_slot_if_possible(obj/item/W, slot, qdel_on_fail = 0, disable_warning = 0, redraw_mob = 1)
if(!istype(W)) return 0
if(!W.mob_can_equip(src, slot, disable_warning))
if(qdel_on_fail)
@@ -273,11 +273,11 @@ var/next_mob_id = 0
//This is an UNSAFE proc. It merely handles the actual job of equipping. All the checks on whether you can or can't eqip need to be done before! Use mob_can_equip() for that task.
//In most cases you will want to use equip_to_slot_if_possible()
-/mob/proc/equip_to_slot(obj/item/W as obj, slot)
+/mob/proc/equip_to_slot(obj/item/W, slot)
return
//This is just a commonly used configuration for the equip_to_slot_if_possible() proc, used to equip people when the rounds tarts and when events happen and such.
-/mob/proc/equip_to_slot_or_del(obj/item/W as obj, slot)
+/mob/proc/equip_to_slot_or_del(obj/item/W, slot)
equip_to_slot_if_possible(W, slot, 1, 1, 0)
//The list of slots by priority. equip_to_appropriate_slot() uses this list. Doesn't matter if a mob type doesn't have a slot.
@@ -375,7 +375,7 @@ var/list/slot_equipment_priority = list( \
return 1
//this and stop_pulling really ought to be /mob/living procs
-/mob/proc/start_pulling(var/atom/movable/AM)
+/mob/proc/start_pulling(atom/movable/AM)
if ( !AM || !src || src==AM || !isturf(src.loc) ) //if there's no person pulling OR the person is pulling themself OR the object being pulled is inside something: abort!
return
if (!( AM.anchored ))
@@ -743,7 +743,7 @@ var/list/slot_equipment_priority = list( \
add_stings_to_statpanel(mind.changeling.purchasedpowers)
add_spells_to_statpanel(mob_spell_list)
-/mob/proc/add_spells_to_statpanel(var/list/spells)
+/mob/proc/add_spells_to_statpanel(list/spells)
for(var/obj/effect/proc_holder/spell/S in spells)
if(S.can_be_cast_by(src))
switch(S.charge_type)
@@ -754,7 +754,7 @@ var/list/slot_equipment_priority = list( \
if("holdervar")
statpanel("[S.panel]","[S.holder_var_type] [S.holder_var_amount]",S)
-/mob/proc/add_stings_to_statpanel(var/list/stings)
+/mob/proc/add_stings_to_statpanel(list/stings)
for(var/obj/effect/proc_holder/changeling/S in stings)
if(S.chemical_cost >=0 && S.can_be_used_by(src))
statpanel("[S.panel]",((S.chemical_cost > 0) ? "[S.chemical_cost]" : ""),S)
@@ -800,7 +800,7 @@ var/list/slot_equipment_priority = list( \
return canmove
-/mob/proc/fall(var/forced)
+/mob/proc/fall(forced)
drop_l_hand()
drop_r_hand()
@@ -842,7 +842,7 @@ var/list/slot_equipment_priority = list( \
/mob/proc/swap_hand()
return
-/mob/proc/activate_hand(var/selhand)
+/mob/proc/activate_hand(selhand)
return
/mob/proc/Jitter(amount)
@@ -869,7 +869,7 @@ var/list/slot_equipment_priority = list( \
update_canmove()
return
-/mob/proc/Weaken(amount, var/ignore_canweaken = 0)
+/mob/proc/Weaken(amount, ignore_canweaken = 0)
if(status_flags & CANWEAKEN || ignore_canweaken)
weakened = max(max(weakened,amount),0)
update_canmove() //updates lying, canmove and icons
@@ -952,7 +952,7 @@ var/list/slot_equipment_priority = list( \
/mob/proc/setEarDamage()
return
-/mob/proc/AddSpell(var/obj/effect/proc_holder/spell/spell)
+/mob/proc/AddSpell(obj/effect/proc_holder/spell/spell)
mob_spell_list += spell
if(!spell.action)
spell.action = new/datum/action/spell_action
diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm
index 3c1906ee7dc..62fb5c75178 100644
--- a/code/modules/mob/mob_helpers.dm
+++ b/code/modules/mob/mob_helpers.dm
@@ -448,14 +448,14 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
return 1
return 0
-/mob/proc/has_mutation(var/mutation)
+/mob/proc/has_mutation(mutation)
return mutation in src.mutations ? 1 : 0
/proc/get_both_hands(mob/living/carbon/M)
var/list/hands = list(M.l_hand, M.r_hand)
return hands
-/mob/proc/reagent_check(var/datum/reagent/R) // utilized in the species code
+/mob/proc/reagent_check(datum/reagent/R) // utilized in the species code
return 1
/proc/notify_ghosts(var/message, var/ghost_sound = null) //Easy notification of ghosts.
@@ -465,7 +465,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
if(ghost_sound)
O << sound(ghost_sound)
-/proc/item_heal_robotic(var/mob/living/carbon/human/H, var/mob/user, var/brute, var/burn)
+/proc/item_heal_robotic(mob/living/carbon/human/H, mob/user, brute, burn)
var/obj/item/organ/limb/affecting = H.get_organ(check_zone(user.zone_sel.selecting))
var/dam //changes repair text based on how much brute/burn was supplied
diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm
index f80afc9d4f8..c5f8a272d8b 100644
--- a/code/modules/mob/mob_movement.dm
+++ b/code/modules/mob/mob_movement.dm
@@ -318,7 +318,7 @@
///Called by /client/Move()
///For moving in space
///Return 1 for movement 0 for none
-/mob/Process_Spacemove(var/movement_dir = 0)
+/mob/Process_Spacemove(movement_dir = 0)
if(..())
return 1
@@ -363,7 +363,7 @@
/mob/proc/mob_negates_gravity()
return 0
-/mob/proc/Move_Pulled(var/atom/A)
+/mob/proc/Move_Pulled(atom/A)
if (!canmove || restrained() || !pulling)
return
if (pulling.anchored)
@@ -385,7 +385,7 @@
step(pulling, get_dir(pulling.loc, A))
return
-/mob/proc/slip(var/s_amount, var/w_amount, var/obj/O, var/lube)
+/mob/proc/slip(s_amount, w_amount, obj/O, lube)
return
/mob/proc/update_gravity()
diff --git a/code/modules/mob/mob_transformation_simple.dm b/code/modules/mob/mob_transformation_simple.dm
index e0b8ca39e86..3b9b6021b15 100644
--- a/code/modules/mob/mob_transformation_simple.dm
+++ b/code/modules/mob/mob_transformation_simple.dm
@@ -2,7 +2,7 @@
//This proc is the most basic of the procs. All it does is make a new mob on the same tile and transfer over a few variables.
//Returns the new mob
//Note that this proc does NOT do MMI related stuff!
-/mob/proc/change_mob_type(var/new_type = null, var/turf/location = null, var/new_name = null as text, var/delete_old_mob = 0 as num)
+/mob/proc/change_mob_type(new_type = null, turf/location = null, new_name = null as text, delete_old_mob = 0 as num)
if(istype(src,/mob/new_player))
usr << "
cannot convert players who have not entered yet."
diff --git a/code/modules/mob/new_player/poll.dm b/code/modules/mob/new_player/poll.dm
index 77477bf3e52..f58f6af7f31 100644
--- a/code/modules/mob/new_player/poll.dm
+++ b/code/modules/mob/new_player/poll.dm
@@ -35,7 +35,7 @@
-/mob/new_player/proc/poll_player(var/pollid = -1)
+/mob/new_player/proc/poll_player(pollid = -1)
if(pollid == -1) return
establish_db_connection()
if(dbcon.IsConnected())
@@ -292,7 +292,7 @@
src << browse(output,"window=playerpoll;size=500x250")
return
-/mob/new_player/proc/vote_on_poll(var/pollid = -1, var/optionid = -1, var/multichoice = 0)
+/mob/new_player/proc/vote_on_poll(pollid = -1, optionid = -1, multichoice = 0)
if(pollid == -1 || optionid == -1)
return
@@ -362,7 +362,7 @@
usr << browse(null,"window=playerpoll")
-/mob/new_player/proc/log_text_poll_reply(var/pollid = -1, var/replytext = "")
+/mob/new_player/proc/log_text_poll_reply(pollid = -1, replytext = "")
if(pollid == -1 || replytext == "")
return
@@ -420,7 +420,7 @@
usr << browse(null,"window=playerpoll")
-/mob/new_player/proc/vote_on_numval_poll(var/pollid = -1, var/optionid = -1, var/rating = null)
+/mob/new_player/proc/vote_on_numval_poll(pollid = -1, optionid = -1, rating = null)
if(pollid == -1 || optionid == -1)
return
diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm
index 96f631e6d71..45fe320ce0c 100644
--- a/code/modules/mob/transform_procs.dm
+++ b/code/modules/mob/transform_procs.dm
@@ -290,7 +290,7 @@
//human -> robot
-/mob/living/carbon/human/proc/Robotize(var/delete_items = 0)
+/mob/living/carbon/human/proc/Robotize(delete_items = 0)
if (notransform)
return
for(var/obj/item/W in src)
@@ -497,7 +497,7 @@
* This proc is here to force coders to manually place their mob in this list, hopefully tested.
* This also gives a place to explain -why- players shouldnt be turn into certain mobs and hopefully someone can fix them.
*/
-/mob/proc/safe_animal(var/MP)
+/mob/proc/safe_animal(MP)
//Bad mobs! - Remember to add a comment explaining what's wrong with the mob
if(!MP)
diff --git a/code/modules/nano/nanoexternal.dm b/code/modules/nano/nanoexternal.dm
index 265629ec4df..52a2fb9d3e3 100644
--- a/code/modules/nano/nanoexternal.dm
+++ b/code/modules/nano/nanoexternal.dm
@@ -36,7 +36,7 @@
*
* @return nothing
*/
-/atom/movable/proc/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/atom/movable/proc/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
return
/atom/movable/proc/get_ui_data(mob/user)
diff --git a/code/modules/nano/nanomanager.dm b/code/modules/nano/nanomanager.dm
index 5f47c8da5ca..dbe242e8c08 100644
--- a/code/modules/nano/nanomanager.dm
+++ b/code/modules/nano/nanomanager.dm
@@ -9,7 +9,7 @@
*
* @return /nanoui Returns the new or found ui
*/
-/datum/subsystem/nano/proc/push_open_or_new_ui(var/mob/user, var/atom/movable/src_object, ui_key, var/datum/nanoui/ui, template, title, width, height, auto_update)
+/datum/subsystem/nano/proc/push_open_or_new_ui(mob/user, atom/movable/src_object, ui_key, datum/nanoui/ui, template, title, width, height, auto_update)
var/list/data = src_object.get_ui_data(user)
if (!data)
data = list()
@@ -33,7 +33,7 @@
*
* @return /nanoui Returns the found ui, for null if none exists
*/
-/datum/subsystem/nano/proc/try_update_ui(var/mob/user, src_object, ui_key, var/datum/nanoui/ui, data)
+/datum/subsystem/nano/proc/try_update_ui(mob/user, src_object, ui_key, datum/nanoui/ui, data)
if (isnull(ui)) // no ui has been passed, so we'll search for one
ui = get_open_ui(user, src_object, ui_key)
@@ -53,7 +53,7 @@
*
* @return /nanoui Returns the found ui, or null if none exists
*/
-/datum/subsystem/nano/proc/get_open_ui(var/mob/user, src_object, ui_key)
+/datum/subsystem/nano/proc/get_open_ui(mob/user, src_object, ui_key)
var/src_object_key = "\ref[src_object]"
if (isnull(open_uis[src_object_key]) || !istype(open_uis[src_object_key], /list))
return null
@@ -95,7 +95,7 @@
*
* @return int The number of uis updated
*/
-/datum/subsystem/nano/proc/update_user_uis(var/mob/user, src_object = null, ui_key = null)
+/datum/subsystem/nano/proc/update_user_uis(mob/user, src_object = null, ui_key = null)
if (isnull(user.open_uis) || !istype(user.open_uis, /list) || open_uis.len == 0)
return 0 // has no open uis
@@ -116,7 +116,7 @@
*
* @return int The number of uis closed
*/
-/datum/subsystem/nano/proc/close_user_uis(var/mob/user, src_object = null, ui_key = null)
+/datum/subsystem/nano/proc/close_user_uis(mob/user, src_object = null, ui_key = null)
if (isnull(user.open_uis) || !istype(user.open_uis, /list) || open_uis.len == 0)
return 0 // has no open uis
@@ -136,7 +136,7 @@
*
* @return nothing
*/
-/datum/subsystem/nano/proc/ui_opened(var/datum/nanoui/ui)
+/datum/subsystem/nano/proc/ui_opened(datum/nanoui/ui)
var/src_object_key = "\ref[ui.src_object]"
if (isnull(open_uis[src_object_key]) || !istype(open_uis[src_object_key], /list))
open_uis[src_object_key] = list(ui.ui_key = list())
@@ -156,7 +156,7 @@
*
* @return int 0 if no ui was removed, 1 if removed successfully
*/
-/datum/subsystem/nano/proc/ui_closed(var/datum/nanoui/ui)
+/datum/subsystem/nano/proc/ui_closed(datum/nanoui/ui)
var/src_object_key = "\ref[ui.src_object]"
if (isnull(open_uis[src_object_key]) || !istype(open_uis[src_object_key], /list))
return 0 // wasn't open
@@ -179,7 +179,7 @@
*/
//
-/datum/subsystem/nano/proc/user_logout(var/mob/user)
+/datum/subsystem/nano/proc/user_logout(mob/user)
return close_user_uis(user)
/**
@@ -191,7 +191,7 @@
*
* @return nothing
*/
-/datum/subsystem/nano/proc/user_transferred(var/mob/oldMob, var/mob/newMob)
+/datum/subsystem/nano/proc/user_transferred(mob/oldMob, mob/newMob)
if (isnull(oldMob.open_uis) || !istype(oldMob.open_uis, /list) || open_uis.len == 0)
return 0 // has no open uis
diff --git a/code/modules/ninja/admin_ninja_verbs.dm b/code/modules/ninja/admin_ninja_verbs.dm
index 59baa2c48e9..ddbbca1379e 100644
--- a/code/modules/ninja/admin_ninja_verbs.dm
+++ b/code/modules/ninja/admin_ninja_verbs.dm
@@ -8,7 +8,7 @@ Contents:
//ADMIN CREATE NINJA (From Player)
-/client/proc/cmd_admin_ninjafy(var/mob/living/carbon/human/H in player_list)
+/client/proc/cmd_admin_ninjafy(mob/living/carbon/human/H in player_list)
set category = null
set name = "Make Space Ninja"
diff --git a/code/modules/ninja/energy_katana.dm b/code/modules/ninja/energy_katana.dm
index 14a871ddf22..62609ee1bc9 100644
--- a/code/modules/ninja/energy_katana.dm
+++ b/code/modules/ninja/energy_katana.dm
@@ -35,7 +35,7 @@
..()
-/obj/item/weapon/katana/energy/proc/returnToOwner(var/mob/living/carbon/human/user, var/doSpark = 1, var/caught = 0)
+/obj/item/weapon/katana/energy/proc/returnToOwner(mob/living/carbon/human/user, doSpark = 1, caught = 0)
if(!istype(user))
return
loc = get_turf(src)
diff --git a/code/modules/ninja/suit/gloves.dm b/code/modules/ninja/suit/gloves.dm
index 13d52efec9a..51b18f4c43a 100644
--- a/code/modules/ninja/suit/gloves.dm
+++ b/code/modules/ninja/suit/gloves.dm
@@ -37,7 +37,7 @@
var/maxdrain = 400
-/obj/item/clothing/gloves/space_ninja/Touch(var/atom/A,var/proximity)
+/obj/item/clothing/gloves/space_ninja/Touch(atom/A,proximity)
if(!candrain || draining)
return 0
if(!istype(loc, /mob/living/carbon/human))
diff --git a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
index 9b2fb90596d..053931b171e 100644
--- a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
+++ b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
@@ -35,7 +35,7 @@ It is possible to destroy the net by the occupant or someone else.
-/obj/effect/energy_net/process(var/mob/living/carbon/M as mob)
+/obj/effect/energy_net/process(mob/living/carbon/M)
var/check = 30//30 seconds before teleportation. Could be extended I guess.
var/mob_name = affecting.name//Since they will report as null if terminated before teleport.
//The person can still try and attack the net when inside.
@@ -95,7 +95,7 @@ It is possible to destroy the net by the occupant or someone else.
-/obj/effect/energy_net/bullet_act(var/obj/item/projectile/Proj)
+/obj/effect/energy_net/bullet_act(obj/item/projectile/Proj)
health -= Proj.damage
healthcheck()
..()
@@ -151,7 +151,7 @@ It is possible to destroy the net by the occupant or someone else.
-/obj/effect/energy_net/attack_alien(mob/living/user as mob)
+/obj/effect/energy_net/attack_alien(mob/living/user)
user.do_attack_animation(src)
if (islarva(user))
return
@@ -168,7 +168,7 @@ It is possible to destroy the net by the occupant or someone else.
-/obj/effect/energy_net/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/effect/energy_net/attackby(obj/item/weapon/W, mob/user, params)
var/aforce = W.force
health = max(0, health - aforce)
healthcheck()
diff --git a/code/modules/ninja/suit/ninjaDrainAct.dm b/code/modules/ninja/suit/ninjaDrainAct.dm
index bea7284744c..11d97b7a7c4 100644
--- a/code/modules/ninja/suit/ninjaDrainAct.dm
+++ b/code/modules/ninja/suit/ninjaDrainAct.dm
@@ -18,7 +18,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//APC//
-/obj/machinery/power/apc/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/machinery/power/apc/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -61,7 +61,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//SMES//
-/obj/machinery/power/smes/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/machinery/power/smes/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -96,7 +96,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//CELL//
-/obj/item/weapon/stock_parts/cell/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/item/weapon/stock_parts/cell/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -115,7 +115,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//RDCONSOLE//
-/obj/machinery/computer/rdconsole/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/machinery/computer/rdconsole/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -146,7 +146,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//RD SERVER//
//Shamelessly copypasted from above, since these two used to be the same proc, but with MANY colon operators
-/obj/machinery/r_n_d/server/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/machinery/r_n_d/server/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -176,7 +176,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//WIRE//
-/obj/structure/cable/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/structure/cable/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -212,7 +212,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
S.spark_system.start()
//MECH//
-/obj/mecha/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/obj/mecha/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -239,7 +239,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
break
//BORG//
-/mob/living/silicon/robot/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/mob/living/silicon/robot/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
@@ -268,7 +268,7 @@ They *could* go in their appropriate files, but this is supposed to be modular
//CARBON MOBS//
-/mob/living/carbon/ninjadrain_act(var/obj/item/clothing/suit/space/space_ninja/S, var/mob/living/carbon/human/H, var/obj/item/clothing/gloves/space_ninja/G)
+/mob/living/carbon/ninjadrain_act(obj/item/clothing/suit/space/space_ninja/S, mob/living/carbon/human/H, obj/item/clothing/gloves/space_ninja/G)
if(!S || !H || !G)
return INVALID_DRAIN
diff --git a/code/modules/ninja/suit/suit.dm b/code/modules/ninja/suit/suit.dm
index a1273f10498..810e9058165 100644
--- a/code/modules/ninja/suit/suit.dm
+++ b/code/modules/ninja/suit/suit.dm
@@ -108,7 +108,7 @@ Contents:
//This proc prevents the suit from being taken off.
-/obj/item/clothing/suit/space/space_ninja/proc/lock_suit(mob/living/carbon/human/H, var/checkIcons = 0)
+/obj/item/clothing/suit/space/space_ninja/proc/lock_suit(mob/living/carbon/human/H, checkIcons = 0)
if(!istype(H))
return 0
if(checkIcons)
diff --git a/code/modules/paperwork/handlabeler.dm b/code/modules/paperwork/handlabeler.dm
index bd947c4b7a3..09a345c0b3c 100644
--- a/code/modules/paperwork/handlabeler.dm
+++ b/code/modules/paperwork/handlabeler.dm
@@ -52,7 +52,7 @@
else
user << "
You turn off [src]."
-/obj/item/weapon/hand_labeler/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/item/weapon/hand_labeler/attackby(obj/item/I, mob/user, params)
..()
if(istype(I, /obj/item/hand_labeler_refill))
if(!user.unEquip(I))
diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm
index dc20fd83997..6e0f9b5e979 100644
--- a/code/modules/paperwork/pen.dm
+++ b/code/modules/paperwork/pen.dm
@@ -44,7 +44,7 @@
colour = "white"
-/obj/item/weapon/pen/attack(mob/living/M, mob/user,var/stealth)
+/obj/item/weapon/pen/attack(mob/living/M, mob/user,stealth)
if(!istype(M))
return
diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm
index 8e9e3135496..770673d47bb 100644
--- a/code/modules/paperwork/photography.dm
+++ b/code/modules/paperwork/photography.dm
@@ -79,7 +79,7 @@
name = "photo[(n_name ? text("- '[n_name]'") : null)]"
add_fingerprint(usr)
-/obj/item/weapon/photo/proc/photocreate(var/inicon, var/inimg, var/indesc, var/inblueprints)
+/obj/item/weapon/photo/proc/photocreate(inicon, inimg, indesc, inblueprints)
icon = inicon
img = inimg
desc = indesc
@@ -299,7 +299,7 @@
var/list/fields = list()
-/obj/item/device/camera/proc/injectaialbum(var/icon, var/img, var/desc, var/pixel_x, var/pixel_y, var/blueprintsinject) //stores image information to a list similar to that of the datacore
+/obj/item/device/camera/proc/injectaialbum(icon, img, desc, pixel_x, pixel_y, blueprintsinject) //stores image information to a list similar to that of the datacore
var/numberer = 1
for(var/datum/picture in src.aipictures)
numberer++
@@ -315,7 +315,7 @@
aipictures += P
usr << "
Image recorded" //feedback to the AI player that the picture was taken
-/obj/item/device/camera/proc/injectmasteralbum(var/icon, var/img, var/desc, var/pixel_x, var/pixel_y, var/blueprintsinject) //stores image information to a list similar to that of the datacore
+/obj/item/device/camera/proc/injectmasteralbum(icon, img, desc, pixel_x, pixel_y, blueprintsinject) //stores image information to a list similar to that of the datacore
var/numberer = 1
var/mob/living/silicon/robot/C = src.loc
if(C.connected_ai)
@@ -335,7 +335,7 @@
else
injectaialbum(icon, img, desc, pixel_x, pixel_y, blueprintsinject)
-/obj/item/device/camera/siliconcam/proc/selectpicture(var/obj/item/device/camera/siliconcam/targetloc)
+/obj/item/device/camera/siliconcam/proc/selectpicture(obj/item/device/camera/siliconcam/targetloc)
var/list/nametemp = list()
var/find
if(targetloc.aipictures.len == 0)
@@ -348,7 +348,7 @@
if(q.fields["name"] == find)
return q
-/obj/item/device/camera/siliconcam/proc/viewpichelper(var/obj/item/device/camera/siliconcam/targetloc)
+/obj/item/device/camera/siliconcam/proc/viewpichelper(obj/item/device/camera/siliconcam/targetloc)
var/obj/item/weapon/photo/P = new/obj/item/weapon/photo()
var/datum/picture/selection = selectpicture(targetloc)
if(selection)
diff --git a/code/modules/paperwork/stamps.dm b/code/modules/paperwork/stamps.dm
index 09b77e13dc5..3fb4af902ad 100644
--- a/code/modules/paperwork/stamps.dm
+++ b/code/modules/paperwork/stamps.dm
@@ -72,7 +72,7 @@
// Syndicate stamp to forge documents.
-/obj/item/weapon/stamp/chameleon/attack_self(mob/user as mob)
+/obj/item/weapon/stamp/chameleon/attack_self(mob/user)
var/list/stamp_types = typesof(/obj/item/weapon/stamp) - src.type // Get all stamp types except our own
var/list/stamps = list()
diff --git a/code/modules/power/antimatter/containment_jar.dm b/code/modules/power/antimatter/containment_jar.dm
index 4dbb76755b4..ff2d0043c42 100644
--- a/code/modules/power/antimatter/containment_jar.dm
+++ b/code/modules/power/antimatter/containment_jar.dm
@@ -33,7 +33,7 @@
//check_stability()
return
-/obj/item/weapon/am_containment/proc/usefuel(var/wanted)
+/obj/item/weapon/am_containment/proc/usefuel(wanted)
if(fuel < wanted)
wanted = fuel
fuel -= wanted
diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm
index e8270dafd52..41be20dc92f 100644
--- a/code/modules/power/antimatter/control.dm
+++ b/code/modules/power/antimatter/control.dm
@@ -118,7 +118,7 @@
return
-/obj/machinery/power/am_control_unit/bullet_act(var/obj/item/projectile/Proj)
+/obj/machinery/power/am_control_unit/bullet_act(obj/item/projectile/Proj)
if(Proj.flag != "bullet")
stability -= Proj.force
return 0
@@ -180,13 +180,13 @@
return
-/obj/machinery/power/am_control_unit/attack_hand(mob/user as mob)
+/obj/machinery/power/am_control_unit/attack_hand(mob/user)
if(anchored)
interact(user)
return
-/obj/machinery/power/am_control_unit/proc/add_shielding(var/obj/machinery/am_shielding/AMS, var/AMS_linking = 0)
+/obj/machinery/power/am_control_unit/proc/add_shielding(obj/machinery/am_shielding/AMS, AMS_linking = 0)
if(!istype(AMS)) return 0
if(!anchored) return 0
if(!AMS_linking && !AMS.link_control(src)) return 0
@@ -195,7 +195,7 @@
return 1
-/obj/machinery/power/am_control_unit/proc/remove_shielding(var/obj/machinery/am_shielding/AMS)
+/obj/machinery/power/am_control_unit/proc/remove_shielding(obj/machinery/am_shielding/AMS)
if(!istype(AMS)) return 0
linked_shielding.Remove(AMS)
update_shield_icons = 2
diff --git a/code/modules/power/antimatter/shielding.dm b/code/modules/power/antimatter/shielding.dm
index bcd24faebe1..1631f501fa7 100644
--- a/code/modules/power/antimatter/shielding.dm
+++ b/code/modules/power/antimatter/shielding.dm
@@ -33,7 +33,7 @@
return
-/obj/machinery/am_shielding/proc/controllerscan(var/priorscan = 0)
+/obj/machinery/am_shielding/proc/controllerscan(priorscan = 0)
//Make sure we are the only one here
if(!istype(src.loc, /turf))
qdel(src)
@@ -106,7 +106,7 @@
return
-/obj/machinery/am_shielding/bullet_act(var/obj/item/projectile/Proj)
+/obj/machinery/am_shielding/bullet_act(obj/item/projectile/Proj)
if(Proj.flag != "bullet")
stability -= Proj.force/2
return 0
@@ -136,7 +136,7 @@
//Call this to link a detected shilding unit to the controller
-/obj/machinery/am_shielding/proc/link_control(var/obj/machinery/power/am_control_unit/AMC)
+/obj/machinery/am_shielding/proc/link_control(obj/machinery/power/am_control_unit/AMC)
if(!istype(AMC)) return 0
if(control_unit && control_unit != AMC) return 0//Already have one
control_unit = AMC
@@ -171,7 +171,7 @@
return
-/obj/machinery/am_shielding/proc/check_stability(var/injecting_fuel = 0)
+/obj/machinery/am_shielding/proc/check_stability(injecting_fuel = 0)
if(stability > 0) return
if(injecting_fuel && control_unit)
control_unit.exploding = 1
@@ -180,7 +180,7 @@
return
-/obj/machinery/am_shielding/proc/recalc_efficiency(var/new_efficiency)//tbh still not 100% sure how I want to deal with efficiency so this is likely temp
+/obj/machinery/am_shielding/proc/recalc_efficiency(new_efficiency)//tbh still not 100% sure how I want to deal with efficiency so this is likely temp
if(!control_unit || !processing) return
if(stability < 50)
new_efficiency /= 2
@@ -203,7 +203,7 @@
throw_range = 2
materials = list(MAT_METAL=100)
-/obj/item/device/am_shielding_container/attackby(var/obj/item/I, var/mob/user, params)
+/obj/item/device/am_shielding_container/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/device/multitool) && istype(src.loc,/turf))
new/obj/machinery/am_shielding(src.loc)
qdel(src)
diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm
index 329346fa41b..cc411f25092 100644
--- a/code/modules/power/apc.dm
+++ b/code/modules/power/apc.dm
@@ -575,7 +575,7 @@
return src.attack_hand(user)
..()
-/obj/machinery/power/apc/emag_act(mob/user as mob)
+/obj/machinery/power/apc/emag_act(mob/user)
if(!emagged && !malfhack)
if(opened)
user << "
You must close the cover to swipe an ID card!"
@@ -664,7 +664,7 @@
return 0 // 0 = User is not a Malf AI
-/obj/machinery/power/apc/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/obj/machinery/power/apc/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
if(!user)
return
@@ -737,11 +737,11 @@
// world << "[area.power_equip]"
area.power_change()
-/obj/machinery/power/apc/proc/isWireCut(var/wireIndex)
+/obj/machinery/power/apc/proc/isWireCut(wireIndex)
return wires.IsIndexCut(wireIndex)
-/obj/machinery/power/apc/proc/can_use(mob/user as mob, var/loud = 0) //used by attack_hand() and Topic()
+/obj/machinery/power/apc/proc/can_use(mob/user, loud = 0) //used by attack_hand() and Topic()
if (user.stat)
user << "
You must be conscious to use [src]!"
return 0
@@ -874,7 +874,7 @@
src.update()
update_icon()
-/obj/machinery/power/apc/proc/malfoccupy(var/mob/living/silicon/ai/malf)
+/obj/machinery/power/apc/proc/malfoccupy(mob/living/silicon/ai/malf)
if(!istype(malf))
return
if(istype(malf.loc, /obj/machinery/power/apc)) // Already in an APC
@@ -905,7 +905,7 @@
point.the_disk = src //the pinpointer will detect the shunted AI
-/obj/machinery/power/apc/proc/malfvacate(var/forced)
+/obj/machinery/power/apc/proc/malfvacate(forced)
if(!src.occupier)
return
if(src.occupier.parent && src.occupier.parent.stat != 2)
@@ -958,7 +958,7 @@
else
return 0
-/obj/machinery/power/apc/add_load(var/amount)
+/obj/machinery/power/apc/add_load(amount)
if(terminal && terminal.powernet)
terminal.powernet.load += amount
@@ -1128,7 +1128,7 @@
// val 0=off, 1=off(auto) 2=on 3=on(auto)
// on 0=off, 1=on, 2=autooff
-/obj/machinery/power/apc/proc/autoset(var/val, var/on)
+/obj/machinery/power/apc/proc/autoset(val, on)
if(on==0)
if(val==2) // if on, return off
return 0
diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm
index 8b2e9f5ae2e..4e380448a3f 100644
--- a/code/modules/power/cable.dm
+++ b/code/modules/power/cable.dm
@@ -102,7 +102,7 @@ By design, d1 is the smallest direction and d2 is the highest
///////////////////////////////////
//If underfloor, hide the cable
-/obj/structure/cable/hide(var/i)
+/obj/structure/cable/hide(i)
if(level == 1 && istype(loc, /turf))
invisibility = i ? 101 : 0
@@ -162,7 +162,7 @@ By design, d1 is the smallest direction and d2 is the highest
src.add_fingerprint(user)
// shock the user with probability prb
-/obj/structure/cable/proc/shock(mob/user, prb, var/siemens_coeff = 1.0)
+/obj/structure/cable/proc/shock(mob/user, prb, siemens_coeff = 1.0)
if(!prob(prb))
return 0
if (electrocute_mob(user, powernet, src, siemens_coeff))
@@ -189,7 +189,7 @@ By design, d1 is the smallest direction and d2 is the highest
if(current_size >= STAGE_FIVE)
Deconstruct()
-/obj/structure/cable/proc/cableColor(var/colorC = "red")
+/obj/structure/cable/proc/cableColor(colorC = "red")
cable_color = colorC
switch(colorC)
if("red")
@@ -218,11 +218,11 @@ By design, d1 is the smallest direction and d2 is the highest
// Power related
///////////////////////////////////////////
-/obj/structure/cable/proc/add_avail(var/amount)
+/obj/structure/cable/proc/add_avail(amount)
if(powernet)
powernet.newavail += amount
-/obj/structure/cable/proc/add_load(var/amount)
+/obj/structure/cable/proc/add_load(amount)
if(powernet)
powernet.load += amount
@@ -244,7 +244,7 @@ By design, d1 is the smallest direction and d2 is the highest
//handles merging diagonally matching cables
//for info : direction^3 is flipping horizontally, direction^12 is flipping vertically
-/obj/structure/cable/proc/mergeDiagonalsNetworks(var/direction)
+/obj/structure/cable/proc/mergeDiagonalsNetworks(direction)
//search for and merge diagonally matching cables from the first direction component (north/south)
var/turf/T = get_step(src, direction&3)//go north/south
@@ -288,7 +288,7 @@ By design, d1 is the smallest direction and d2 is the highest
C.powernet.add_cable(src) //else, we simply connect to the matching cable powernet
// merge with the powernets of power objects in the given direction
-/obj/structure/cable/proc/mergeConnectedNetworks(var/direction)
+/obj/structure/cable/proc/mergeConnectedNetworks(direction)
var/fdir = (!direction)? 0 : turn(direction, 180) //flip the direction, to match with the source position on its turf
@@ -362,7 +362,7 @@ By design, d1 is the smallest direction and d2 is the highest
//////////////////////////////////////////////
//if powernetless_only = 1, will only get connections without powernet
-/obj/structure/cable/proc/get_connections(var/powernetless_only = 0)
+/obj/structure/cable/proc/get_connections(powernetless_only = 0)
. = list() // this will be a list of all connected power objects
var/turf/T
@@ -565,13 +565,13 @@ var/global/list/datum/stack_recipe/cable_coil_recipes = list ( \
src.use(amt)
return
-/obj/item/stack/cable_coil/use(var/used)
+/obj/item/stack/cable_coil/use(used)
. = ..()
update_icon()
return
//add cables to the stack
-/obj/item/stack/cable_coil/proc/give(var/extra)
+/obj/item/stack/cable_coil/proc/give(extra)
if(amount + extra > MAXCOIL)
amount = MAXCOIL
else
@@ -584,7 +584,7 @@ var/global/list/datum/stack_recipe/cable_coil_recipes = list ( \
// Cable laying procedures
//////////////////////////////////////////////
-/obj/item/stack/cable_coil/proc/get_new_cable(var/location)
+/obj/item/stack/cable_coil/proc/get_new_cable(location)
var/path = "/obj/structure/cable" + (item_color == "red" ? "" : "/" + item_color)
return new path (location)
diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm
index 63ac0410ec1..b99735503ee 100644
--- a/code/modules/power/cell.dm
+++ b/code/modules/power/cell.dm
@@ -36,7 +36,7 @@
return 100.0*charge/maxcharge
// use power from a cell
-/obj/item/weapon/stock_parts/cell/proc/use(var/amount)
+/obj/item/weapon/stock_parts/cell/proc/use(amount)
if(rigged && amount > 0)
explode()
return 0
@@ -47,7 +47,7 @@
return 1
// recharge the cell
-/obj/item/weapon/stock_parts/cell/proc/give(var/amount)
+/obj/item/weapon/stock_parts/cell/proc/give(amount)
if(rigged && amount > 0)
explode()
return 0
diff --git a/code/modules/power/engine.dm b/code/modules/power/engine.dm
index b7ce6e6a6a0..fc5c68aa577 100644
--- a/code/modules/power/engine.dm
+++ b/code/modules/power/engine.dm
@@ -1,7 +1,7 @@
-/turf/simulated/floor/engine/attack_paw(var/mob/user as mob)
+/turf/simulated/floor/engine/attack_paw(mob/user)
return src.attack_hand(user)
-/turf/simulated/floor/engine/attack_hand(var/mob/user as mob)
+/turf/simulated/floor/engine/attack_hand(mob/user)
user.Move_Pulled(src)
/turf/simulated/floor/engine/ex_act(severity, target)
diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm
index 6b73a53aa86..60846ab54bb 100644
--- a/code/modules/power/generator.dm
+++ b/code/modules/power/generator.dm
@@ -15,8 +15,8 @@
density = 1
use_power = 0
- var/obj/machinery/atmospherics/binary/circulator/circ1
- var/obj/machinery/atmospherics/binary/circulator/circ2
+ var/obj/machinery/atmospherics/components/binary/circulator/circ1
+ var/obj/machinery/atmospherics/components/binary/circulator/circ2
var/lastgen = 0
var/lastgenlev = -1
@@ -28,8 +28,8 @@
circ1 = null
circ2 = null
- circ1 = locate(/obj/machinery/atmospherics/binary/circulator) in get_step(src,WEST)
- circ2 = locate(/obj/machinery/atmospherics/binary/circulator) in get_step(src,EAST)
+ circ1 = locate(/obj/machinery/atmospherics/components/binary/circulator) in get_step(src,WEST)
+ circ2 = locate(/obj/machinery/atmospherics/components/binary/circulator) in get_step(src,EAST)
connect_to_network()
if(circ1)
@@ -106,10 +106,12 @@
// update icon overlays only if displayed level has changed
if(hot_air)
- circ2.air1.merge(hot_air)
+ var/datum/gas_mixture/circ2_air1 = circ2.airs["a1"]
+ circ2_air1.merge(hot_air)
if(cold_air)
- circ1.air1.merge(cold_air)
+ var/datum/gas_mixture/circ1_air1 = circ1.airs["a1"]
+ circ1_air1.merge(cold_air)
var/genlev = max(0, min( round(11*lastgen / 100000), 11))
var/circ = "[circ1 && circ1.last_pressure_delta > 0 ? "1" : "0"][circ2 && circ2.last_pressure_delta > 0 ? "1" : "0"]"
@@ -126,11 +128,15 @@
return
interact(user)
-/obj/machinery/power/generator/proc/get_menu(var/include_link = 1)
+/obj/machinery/power/generator/proc/get_menu(include_link = 1)
var/t = ""
if(!powernet)
t += "
Unable to connect to the power network!"
else if(circ1 && circ2)
+ var/datum/gas_mixture/circ1_air1 = circ1.airs["a1"]
+ var/datum/gas_mixture/circ1_air2 = circ1.airs["a2"]
+ var/datum/gas_mixture/circ2_air1 = circ2.airs["a1"]
+ var/datum/gas_mixture/circ2_air2 = circ2.airs["a2"]
t += "
"
@@ -139,12 +145,12 @@
t += "
"
t += "Cold loop
"
- t += "Temperature Inlet: [round(circ1.air2.temperature, 0.1)] K / Outlet: [round(circ1.air1.temperature, 0.1)] K
"
- t += "Pressure Inlet: [round(circ1.air2.return_pressure(), 0.1)] kPa / Outlet: [round(circ1.air1.return_pressure(), 0.1)] kPa
"
+ t += "Temperature Inlet: [round(circ1_air2.temperature, 0.1)] K / Outlet: [round(circ1_air1.temperature, 0.1)] K
"
+ t += "Pressure Inlet: [round(circ1_air2.return_pressure(), 0.1)] kPa / Outlet: [round(circ1_air1.return_pressure(), 0.1)] kPa
"
t += "Hot loop
"
- t += "Temperature Inlet: [round(circ2.air2.temperature, 0.1)] K / Outlet: [round(circ2.air1.temperature, 0.1)] K
"
- t += "Pressure Inlet: [round(circ2.air2.return_pressure(), 0.1)] kPa / Outlet: [round(circ2.air1.return_pressure(), 0.1)] kPa
"
+ t += "Temperature Inlet: [round(circ2_air2.temperature, 0.1)] K / Outlet: [round(circ2_air1.temperature, 0.1)] K
"
+ t += "Pressure Inlet: [round(circ2_air2.return_pressure(), 0.1)] kPa / Outlet: [round(circ2_air1.return_pressure(), 0.1)] kPa
"
t += "
"
else
diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm
index 7196abe57e8..5c63a5cc097 100644
--- a/code/modules/power/gravitygenerator.dm
+++ b/code/modules/power/gravitygenerator.dm
@@ -63,13 +63,13 @@ var/const/GRAV_NEEDS_WRENCH = 3
/obj/machinery/gravity_generator/part
var/obj/machinery/gravity_generator/main/main_part = null
-/obj/machinery/gravity_generator/part/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/machinery/gravity_generator/part/attackby(obj/item/I, mob/user, params)
return main_part.attackby(I, user)
/obj/machinery/gravity_generator/part/get_status()
return main_part.get_status()
-/obj/machinery/gravity_generator/part/attack_hand(mob/user as mob)
+/obj/machinery/gravity_generator/part/attack_hand(mob/user)
return main_part.attack_hand(user)
/obj/machinery/gravity_generator/part/set_broken()
@@ -171,7 +171,7 @@ var/const/GRAV_NEEDS_WRENCH = 3
// Interaction
// Fixing the gravity generator.
-/obj/machinery/gravity_generator/main/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/machinery/gravity_generator/main/attackby(obj/item/I, mob/user, params)
var/old_broken_state = broken_state
switch(broken_state)
if(GRAV_NEEDS_SCREWDRIVER)
@@ -208,11 +208,11 @@ var/const/GRAV_NEEDS_WRENCH = 3
if(old_broken_state != broken_state)
update_icon()
-/obj/machinery/gravity_generator/main/attack_hand(mob/user as mob)
+/obj/machinery/gravity_generator/main/attack_hand(mob/user)
if(!..())
return interact(user)
-/obj/machinery/gravity_generator/main/interact(mob/user as mob)
+/obj/machinery/gravity_generator/main/interact(mob/user)
if(stat & BROKEN)
return
var/dat = "Gravity Generator Breaker: "
@@ -277,7 +277,7 @@ var/const/GRAV_NEEDS_WRENCH = 3
update_icon()
// Set the state of the gravity.
-/obj/machinery/gravity_generator/main/proc/set_state(var/new_state)
+/obj/machinery/gravity_generator/main/proc/set_state(new_state)
charging_state = POWER_IDLE
on = new_state
use_power = on ? 2 : 1
diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm
index e891aceb82c..145f2b2ba84 100644
--- a/code/modules/power/lighting.dm
+++ b/code/modules/power/lighting.dm
@@ -21,7 +21,7 @@
var/obj/machinery/light/newlight = null
var/sheets_refunded = 2
-/obj/item/light_fixture_frame/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/item/light_fixture_frame/attackby(obj/item/weapon/W, mob/user, params)
if (istype(W, /obj/item/weapon/wrench))
new /obj/item/stack/sheet/metal( get_turf(src.loc), sheets_refunded )
qdel(src)
@@ -94,7 +94,7 @@
if(3)
user << "The casing is closed."
-/obj/machinery/light_construct/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/machinery/light_construct/attackby(obj/item/weapon/W, mob/user, params)
src.add_fingerprint(user)
if (istype(W, /obj/item/weapon/wrench))
if (src.stage == 1)
@@ -273,7 +273,7 @@
return
// update the icon_state and luminosity of the light depending on its state
-/obj/machinery/light/proc/update(var/trigger = 1)
+/obj/machinery/light/proc/update(trigger = 1)
update_icon()
if(on)
@@ -307,7 +307,7 @@
// attempt to set the light's on/off status
// will not switch on if broken/burned/empty
-/obj/machinery/light/proc/seton(var/s)
+/obj/machinery/light/proc/seton(s)
on = (s && status == LIGHT_OK)
update()
@@ -550,7 +550,7 @@
// break the light and make sparks if was on
-/obj/machinery/light/proc/broken(var/skip_sound_and_sparks = 0)
+/obj/machinery/light/proc/broken(skip_sound_and_sparks = 0)
if(status == LIGHT_EMPTY)
return
@@ -677,7 +677,7 @@
// attack bulb/tube with object
// if a syringe, can inject plasma to make it explode
-/obj/item/weapon/light/attackby(var/obj/item/I, var/mob/user, params)
+/obj/item/weapon/light/attackby(obj/item/I, mob/user, params)
..()
if(istype(I, /obj/item/weapon/reagent_containers/syringe))
var/obj/item/weapon/reagent_containers/syringe/S = I
diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm
index 28a024aa07e..37a75156cc8 100644
--- a/code/modules/power/port_gen.dm
+++ b/code/modules/power/port_gen.dm
@@ -78,7 +78,7 @@ display round(lastgen) and plasmatank amount
icon_state = initial(icon_state)
handleInactive()
-/obj/machinery/power/port_gen/attack_hand(mob/user as mob)
+/obj/machinery/power/port_gen/attack_hand(mob/user)
if(..())
return
if(!anchored)
@@ -194,7 +194,7 @@ display round(lastgen) and plasmatank amount
/obj/machinery/power/port_gen/pacman/proc/overheat()
explosion(src.loc, 2, 5, 2, -1)
-/obj/machinery/power/port_gen/pacman/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/power/port_gen/pacman/attackby(obj/item/O, mob/user, params)
if(istype(O, sheet_path))
var/obj/item/stack/addstack = O
var/amount = min((max_sheets - sheets), addstack.amount)
@@ -234,22 +234,22 @@ display round(lastgen) and plasmatank amount
else if(istype(O, /obj/item/weapon/crowbar) && panel_open)
default_deconstruction_crowbar(O)
-/obj/machinery/power/port_gen/pacman/emag_act(mob/user as mob)
+/obj/machinery/power/port_gen/pacman/emag_act(mob/user)
if(!emagged)
emagged = 1
emp_act(1)
-/obj/machinery/power/port_gen/pacman/attack_hand(mob/user as mob)
+/obj/machinery/power/port_gen/pacman/attack_hand(mob/user)
..()
if (!anchored)
return
interact(user)
-/obj/machinery/power/port_gen/pacman/attack_ai(mob/user as mob)
+/obj/machinery/power/port_gen/pacman/attack_ai(mob/user)
interact(user)
-/obj/machinery/power/port_gen/pacman/attack_paw(mob/user as mob)
+/obj/machinery/power/port_gen/pacman/attack_paw(mob/user)
interact(user)
/obj/machinery/power/port_gen/pacman/interact(mob/user)
diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm
index d6f19601413..1fbca84583c 100644
--- a/code/modules/power/power.dm
+++ b/code/modules/power/power.dm
@@ -24,11 +24,11 @@
//////////////////////////////
// common helper procs for all power machines
-/obj/machinery/power/proc/add_avail(var/amount)
+/obj/machinery/power/proc/add_avail(amount)
if(powernet)
powernet.newavail += amount
-/obj/machinery/power/proc/add_load(var/amount)
+/obj/machinery/power/proc/add_load(amount)
if(powernet)
powernet.load += amount
@@ -65,7 +65,7 @@
return A.master.powered(chan) // return power status of the area
// increment the power usage stats for an area
-/obj/machinery/proc/use_power(var/amount, var/chan = -1) // defaults to power_channel
+/obj/machinery/proc/use_power(amount, chan = -1) // defaults to power_channel
var/area/A = get_area(src) // make sure it's in an area
if(!A || !isarea(A) || !A.master)
return
@@ -192,7 +192,7 @@
// returns a list of all power-related objects (nodes, cable, junctions) in turf,
// excluding source, that match the direction d
// if unmarked==1, only return those with no powernet
-/proc/power_list(var/turf/T, var/source, var/d, var/unmarked=0, var/cable_only = 0)
+/proc/power_list(turf/T, source, d, unmarked=0, cable_only = 0)
. = list()
//var/fdir = (!d)? 0 : turn(d, 180) // the opposite direction to d (or 0 if d==0)
@@ -219,7 +219,7 @@
//remove the old powernet and replace it with a new one throughout the network.
-/proc/propagate_network(var/obj/O, var/datum/powernet/PN)
+/proc/propagate_network(obj/O, datum/powernet/PN)
//world.log << "propagating new network"
var/list/worklist = list()
var/list/found_machines = list()
@@ -252,7 +252,7 @@
//Merge two powernets, the bigger (in cable length term) absorbing the other
-/proc/merge_powernets(var/datum/powernet/net1, var/datum/powernet/net2)
+/proc/merge_powernets(datum/powernet/net1, datum/powernet/net2)
if(!net1 || !net2) //if one of the powernet doesn't exist, return
return
@@ -280,7 +280,7 @@
//power_source is a source of electricity, can be powercell, area, apc, cable, powernet or null
//source is an object caused electrocuting (airlock, grille, etc)
//No animations will be performed by this proc.
-/proc/electrocute_mob(mob/living/carbon/M as mob, var/power_source, var/obj/source, var/siemens_coeff = 1.0)
+/proc/electrocute_mob(mob/living/carbon/M, power_source, obj/source, siemens_coeff = 1.0)
if(istype(M.loc,/obj/mecha)) return 0 //feckin mechs are dumb
if(istype(M,/mob/living/carbon/human))
var/mob/living/carbon/human/H = M
diff --git a/code/modules/power/powernet.dm b/code/modules/power/powernet.dm
index 3e8dfaf2309..0ad877f987d 100644
--- a/code/modules/power/powernet.dm
+++ b/code/modules/power/powernet.dm
@@ -33,7 +33,7 @@
//remove a cable from the current powernet
//if the powernet is then empty, delete it
//Warning : this proc DON'T check if the cable exists
-/datum/powernet/proc/remove_cable(var/obj/structure/cable/C)
+/datum/powernet/proc/remove_cable(obj/structure/cable/C)
cables -= C
C.powernet = null
if(is_empty())//the powernet is now empty...
@@ -41,7 +41,7 @@
//add a cable to the current powernet
//Warning : this proc DON'T check if the cable exists
-/datum/powernet/proc/add_cable(var/obj/structure/cable/C)
+/datum/powernet/proc/add_cable(obj/structure/cable/C)
if(C.powernet)// if C already has a powernet...
if(C.powernet == src)
return
@@ -53,7 +53,7 @@
//remove a power machine from the current powernet
//if the powernet is then empty, delete it
//Warning : this proc DON'T check if the machine exists
-/datum/powernet/proc/remove_machine(var/obj/machinery/power/M)
+/datum/powernet/proc/remove_machine(obj/machinery/power/M)
nodes -=M
M.powernet = null
if(is_empty())//the powernet is now empty...
@@ -62,7 +62,7 @@
//add a power machine to the current powernet
//Warning : this proc DON'T check if the machine exists
-/datum/powernet/proc/add_machine(var/obj/machinery/power/M)
+/datum/powernet/proc/add_machine(obj/machinery/power/M)
if(M.powernet)// if M already has a powernet...
if(M.powernet == src)
return
diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm
index 82c2955ad09..3687d237bd2 100644
--- a/code/modules/power/singularity/collector.dm
+++ b/code/modules/power/singularity/collector.dm
@@ -35,7 +35,7 @@ var/global/list/rad_collectors = list()
return
-/obj/machinery/power/rad_collector/attack_hand(mob/user as mob)
+/obj/machinery/power/rad_collector/attack_hand(mob/user)
if(..())
return
if(anchored)
@@ -127,7 +127,7 @@ var/global/list/rad_collectors = list()
else
update_icons()
-/obj/machinery/power/rad_collector/proc/receive_pulse(var/pulse_strength)
+/obj/machinery/power/rad_collector/proc/receive_pulse(pulse_strength)
if(P && active)
var/power_produced = 0
power_produced = P.air_contents.toxins*pulse_strength*20
diff --git a/code/modules/power/singularity/containment_field.dm b/code/modules/power/singularity/containment_field.dm
index ad420ffc5e6..fb0a69a9be2 100644
--- a/code/modules/power/singularity/containment_field.dm
+++ b/code/modules/power/singularity/containment_field.dm
@@ -21,7 +21,7 @@
FG2.cleanup()
..()
-/obj/machinery/field/containment/attack_hand(mob/user as mob)
+/obj/machinery/field/containment/attack_hand(mob/user)
if(get_dist(src, user) > 1)
return 0
else
@@ -37,22 +37,22 @@
return 0
-/obj/machinery/field/containment/Crossed(mob/mover as mob)
+/obj/machinery/field/containment/Crossed(mob/mover)
if(isliving(mover))
shock(mover)
-/obj/machinery/field/containment/Crossed(obj/mover as obj)
+/obj/machinery/field/containment/Crossed(obj/mover)
if(istype(mover, /obj/machinery) || istype(mover, /obj/structure) || istype(mover, /obj/mecha))
bump(mover)
-/obj/machinery/field/containment/proc/set_master(var/master1,var/master2)
+/obj/machinery/field/containment/proc/set_master(master1,master2)
if(!master1 || !master2)
return 0
FG1 = master1
FG2 = master2
return 1
-/obj/machinery/field/containment/shock(mob/living/user as mob)
+/obj/machinery/field/containment/shock(mob/living/user)
if(!FG1 || !FG2)
qdel(src)
return 0
@@ -67,13 +67,13 @@
/obj/machinery/field
var/hasShocked = 0 //Used to add a delay between shocks. In some cases this used to crash servers by spawning hundreds of sparks every second.
-/obj/machinery/field/CanPass(mob/mover as mob, turf/target, height=0)
+/obj/machinery/field/CanPass(mob/mover, turf/target, height=0)
if(isliving(mover)) // Don't let mobs through
shock(mover)
return 0
return ..()
-/obj/machinery/field/CanPass(obj/mover as obj, turf/target, height=0)
+/obj/machinery/field/CanPass(obj/mover, turf/target, height=0)
if((istype(mover, /obj/machinery) && !istype(mover, /obj/singularity)) || \
istype(mover, /obj/structure) || \
istype(mover, /obj/mecha))
@@ -81,7 +81,7 @@
return 0
return ..()
-/obj/machinery/field/proc/shock(mob/living/user as mob)
+/obj/machinery/field/proc/shock(mob/living/user)
if(hasShocked)
return 0
if(isliving(user))
diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm
index cfffc52cdd7..23e6468096f 100644
--- a/code/modules/power/singularity/emitter.dm
+++ b/code/modules/power/singularity/emitter.dm
@@ -79,7 +79,7 @@
icon_state = "emitter"
-/obj/machinery/power/emitter/attack_hand(mob/user as mob)
+/obj/machinery/power/emitter/attack_hand(mob/user)
src.add_fingerprint(user)
if(state == 2)
if(!powernet)
@@ -106,7 +106,7 @@
return 1
-/obj/machinery/power/emitter/emp_act(var/severity)//Emitters are hardened but still might have issues
+/obj/machinery/power/emitter/emp_act(severity)//Emitters are hardened but still might have issues
// add_load(1000)
/* if((severity == 1)&&prob(1)&&prob(1))
if(src.active)
@@ -260,7 +260,7 @@
..()
return
-/obj/machinery/power/emitter/emag_act(mob/user as mob)
+/obj/machinery/power/emitter/emag_act(mob/user)
if(!emagged)
locked = 0
emagged = 1
diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm
index 07943676729..9c9f3c0f948 100644
--- a/code/modules/power/singularity/field_generator.dm
+++ b/code/modules/power/singularity/field_generator.dm
@@ -75,7 +75,7 @@ field_generator power level display
return
-/obj/machinery/field/generator/attack_hand(mob/user as mob)
+/obj/machinery/field/generator/attack_hand(mob/user)
if(state == 2)
if(get_dist(src, user) <= 1)//Need to actually touch the thing to turn it on
if(src.active >= 1)
@@ -162,7 +162,7 @@ field_generator power level display
else
..()
-/obj/machinery/field/generator/bullet_act(var/obj/item/projectile/Proj)
+/obj/machinery/field/generator/bullet_act(obj/item/projectile/Proj)
if(Proj.flag != "bullet")
power += Proj.damage
update_icon()
@@ -218,7 +218,7 @@ field_generator power level display
return 0
//This could likely be better, it tends to start loopin if you have a complex generator loop setup. Still works well enough to run the engine fields will likely recode the field gens and fields sometime -Mport
-/obj/machinery/field/generator/proc/draw_power(var/draw = 0, var/failsafe = 0, var/obj/machinery/field/generator/G = null, var/obj/machinery/field/generator/last = null)
+/obj/machinery/field/generator/proc/draw_power(draw = 0, failsafe = 0, obj/machinery/field/generator/G = null, obj/machinery/field/generator/last = null)
if(Varpower)
return 1
if((G && G == src) || (failsafe >= 8))//Loopin, set fail
@@ -263,7 +263,7 @@ field_generator power level display
src.active = 2
-/obj/machinery/field/generator/proc/setup_field(var/NSEW)
+/obj/machinery/field/generator/proc/setup_field(NSEW)
var/turf/T = src.loc
var/obj/machinery/field/generator/G
var/steps = 0
@@ -352,7 +352,7 @@ field_generator power level display
investigate_log("has
failed whilst a singulo exists.","singulo")
O.last_warning = world.time
-/obj/machinery/field/generator/shock(mob/living/user as mob)
+/obj/machinery/field/generator/shock(mob/living/user)
if(fields.len)
..()
diff --git a/code/modules/power/singularity/investigate.dm b/code/modules/power/singularity/investigate.dm
index e601e210680..8d375e06f90 100644
--- a/code/modules/power/singularity/investigate.dm
+++ b/code/modules/power/singularity/investigate.dm
@@ -1,4 +1,4 @@
-/area/engine/engineering/poweralert(var/state, var/source)
+/area/engine/engineering/poweralert(state, source)
if (state != poweralm)
investigate_log("has a power alarm!","singulo")
..()
\ No newline at end of file
diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm
index 607be1ba324..bbfa406ad58 100644
--- a/code/modules/power/singularity/narsie.dm
+++ b/code/modules/power/singularity/narsie.dm
@@ -62,7 +62,7 @@
godsmack(A)
return
-/obj/singularity/narsie/proc/godsmack(var/atom/A)
+/obj/singularity/narsie/proc/godsmack(atom/A)
if(istype(A,/obj/))
var/obj/O = A
O.ex_act(1.0)
@@ -81,7 +81,7 @@
M.apply_effect(3, STUN)
-/obj/singularity/narsie/consume(var/atom/A)
+/obj/singularity/narsie/consume(atom/A)
A.narsie_act()
@@ -123,7 +123,7 @@
return
-/obj/singularity/narsie/proc/acquire(var/mob/food)
+/obj/singularity/narsie/proc/acquire(mob/food)
target << "
NAR-SIE HAS LOST INTEREST IN YOU"
target = food
if(ishuman(target))
diff --git a/code/modules/power/singularity/particle_accelerator/particle.dm b/code/modules/power/singularity/particle_accelerator/particle.dm
index e7e3632b93e..a9ff8952161 100644
--- a/code/modules/power/singularity/particle_accelerator/particle.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle.dm
@@ -55,13 +55,13 @@
-/obj/effect/accelerated_particle/proc/toxmob(var/mob/living/M)
+/obj/effect/accelerated_particle/proc/toxmob(mob/living/M)
M.irradiate(energy*6)
M.updatehealth()
return
-/obj/effect/accelerated_particle/proc/move(var/lag)
+/obj/effect/accelerated_particle/proc/move(lag)
if(loc == null)
return
if(!step(src,dir))
diff --git a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
index 9c21da66e97..18a04d16f32 100644
--- a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
@@ -168,7 +168,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
-/obj/structure/particle_accelerator/proc/report_ready(var/obj/O)
+/obj/structure/particle_accelerator/proc/report_ready(obj/O)
if(O && (O == master))
if(construction_state >= 3)
return 1
@@ -181,7 +181,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
-/obj/structure/particle_accelerator/proc/connect_master(var/obj/O)
+/obj/structure/particle_accelerator/proc/connect_master(obj/O)
if(O && istype(O,/obj/machinery/particle_accelerator/control_box))
if(O.dir == src.dir)
master = O
@@ -189,7 +189,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
-/obj/structure/particle_accelerator/proc/process_tool_hit(var/obj/O, var/mob/user)
+/obj/structure/particle_accelerator/proc/process_tool_hit(obj/O, mob/user)
if(!(O) || !(user))
return 0
if(!ismob(user) || !isobj(O))
@@ -325,7 +325,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
-/obj/machinery/particle_accelerator/proc/process_tool_hit(var/obj/O, var/mob/user)
+/obj/machinery/particle_accelerator/proc/process_tool_hit(obj/O, mob/user)
if(!(O) || !(user))
return 0
if(!ismob(user) || !isobj(O))
diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm
index c5fe52da089..61fd8dbe424 100644
--- a/code/modules/power/singularity/particle_accelerator/particle_control.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm
@@ -31,7 +31,7 @@
toggle_power()
..()
-/obj/machinery/particle_accelerator/control_box/attack_hand(mob/user as mob)
+/obj/machinery/particle_accelerator/control_box/attack_hand(mob/user)
if(construction_state >= 3)
interact(user)
else if(construction_state == 2) // Wires exposed
@@ -113,7 +113,7 @@
part.strength = strength
part.update_icon()
-/obj/machinery/particle_accelerator/control_box/proc/add_strength(var/s)
+/obj/machinery/particle_accelerator/control_box/proc/add_strength(s)
if(assembled)
strength++
if(strength > strength_upper_limit)
@@ -124,7 +124,7 @@
investigate_log("increased to
[strength] by [key_name(usr)]","singulo")
strength_change()
-/obj/machinery/particle_accelerator/control_box/proc/remove_strength(var/s)
+/obj/machinery/particle_accelerator/control_box/proc/remove_strength(s)
if(assembled)
strength--
if(strength < 0)
@@ -196,7 +196,7 @@
return 0
-/obj/machinery/particle_accelerator/control_box/proc/check_part(var/turf/T, var/type)
+/obj/machinery/particle_accelerator/control_box/proc/check_part(turf/T, type)
if(!(T)||!(type))
return 0
var/obj/structure/particle_accelerator/PA = locate(/obj/structure/particle_accelerator) in T
diff --git a/code/modules/power/singularity/particle_accelerator/particle_emitter.dm b/code/modules/power/singularity/particle_accelerator/particle_emitter.dm
index 8e260a1115d..caaae583787 100644
--- a/code/modules/power/singularity/particle_accelerator/particle_emitter.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle_emitter.dm
@@ -24,14 +24,14 @@
..()
return
-/obj/structure/particle_accelerator/particle_emitter/proc/set_delay(var/delay)
+/obj/structure/particle_accelerator/particle_emitter/proc/set_delay(delay)
if(delay && delay >= 0)
src.fire_delay = delay
return 1
return 0
-/obj/structure/particle_accelerator/particle_emitter/proc/emit_particle(var/strength = 0)
+/obj/structure/particle_accelerator/particle_emitter/proc/emit_particle(strength = 0)
if((src.last_shot + src.fire_delay) <= world.time)
src.last_shot = world.time
var/obj/effect/accelerated_particle/A = null
diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm
index 90c60fc5769..43eaa1a7235 100644
--- a/code/modules/power/singularity/singularity.dm
+++ b/code/modules/power/singularity/singularity.dm
@@ -53,7 +53,7 @@
return 0
-/obj/singularity/attack_hand(mob/user as mob)
+/obj/singularity/attack_hand(mob/user)
consume(user)
return 1
@@ -126,7 +126,7 @@
dissipate_track++
-/obj/singularity/proc/expand(var/force_size = 0)
+/obj/singularity/proc/expand(force_size = 0)
var/temp_allowed_size = src.allowed_size
if(force_size)
temp_allowed_size = force_size
@@ -243,7 +243,7 @@
return
-/obj/singularity/proc/consume(var/atom/A)
+/obj/singularity/proc/consume(atom/A)
var/gain = A.singularity_act(current_size)
src.energy += gain
if(istype(A, /obj/machinery/power/supermatter_shard) && !consumedSupermatter)
@@ -254,7 +254,7 @@
return
-/obj/singularity/proc/move(var/force_move = 0)
+/obj/singularity/proc/move(force_move = 0)
if(!move_self)
return 0
@@ -269,7 +269,7 @@
step(src, movement_dir)
-/obj/singularity/proc/check_turfs_in(var/direction = 0, var/step = 0)
+/obj/singularity/proc/check_turfs_in(direction = 0, step = 0)
if(!direction)
return 0
var/steps = 0
@@ -322,7 +322,7 @@
return 1
-/obj/singularity/proc/can_move(var/turf/T)
+/obj/singularity/proc/can_move(turf/T)
if(!T)
return 0
if((locate(/obj/machinery/field/containment) in T)||(locate(/obj/machinery/shieldwall) in T))
diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm
index 04f15cbdfec..3bc6dbcfc36 100644
--- a/code/modules/power/smes.dm
+++ b/code/modules/power/smes.dm
@@ -172,7 +172,7 @@
// create a terminal object pointing towards the SMES
// wires will attach to this
-/obj/machinery/power/smes/proc/make_terminal(var/turf/T)
+/obj/machinery/power/smes/proc/make_terminal(turf/T)
terminal = new/obj/machinery/power/terminal(T)
terminal.dir = get_dir(T,src)
terminal.master = src
@@ -306,7 +306,7 @@
return
-/obj/machinery/power/smes/add_load(var/amount)
+/obj/machinery/power/smes/add_load(amount)
if(terminal && terminal.powernet)
terminal.powernet.load += amount
@@ -322,7 +322,7 @@
ui_interact(user)
-/obj/machinery/power/smes/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/obj/machinery/power/smes/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
if(!user)
return
@@ -412,7 +412,7 @@
output_level = Clamp(output_level, 0, output_level_max)
log_smes(usr.ckey)
-/obj/machinery/power/smes/proc/log_smes(var/user = "")
+/obj/machinery/power/smes/proc/log_smes(user = "")
investigate_log("input/output; [input_level>output_level?"
":""][input_level]/[output_level] | Charge: [charge] | Output-mode: [output_attempt?"on":"off"] | Input-mode: [input_attempt?"auto":"off"] by [user]","singulo")
diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm
index f85d5dcc655..480fb8380b2 100644
--- a/code/modules/power/solar.dm
+++ b/code/modules/power/solar.dm
@@ -30,7 +30,7 @@
..()
//set the control of the panel to a given computer if closer than SOLAR_MAX_DIST
-/obj/machinery/power/solar/proc/set_control(var/obj/machinery/power/solar_control/SC)
+/obj/machinery/power/solar/proc/set_control(obj/machinery/power/solar_control/SC)
if(!SC || (get_dist(src, SC) > SOLAR_MAX_DIST))
return 0
control = SC
@@ -43,7 +43,7 @@
control.connected_panels.Remove(src)
control = null
-/obj/machinery/power/solar/proc/Make(var/obj/item/solar_assembly/S)
+/obj/machinery/power/solar/proc/Make(obj/item/solar_assembly/S)
if(!S)
S = new /obj/item/solar_assembly(src)
S.glass_type = /obj/item/stack/sheet/glass
@@ -209,7 +209,7 @@
var/tracker = 0
var/glass_type = null
-/obj/item/solar_assembly/attack_hand(var/mob/user)
+/obj/item/solar_assembly/attack_hand(mob/user)
if(!anchored && isturf(loc)) // You can't pick it up
..()
@@ -221,7 +221,7 @@
glass_type = null
-/obj/item/solar_assembly/attackby(var/obj/item/weapon/W, var/mob/user, params)
+/obj/item/solar_assembly/attackby(obj/item/weapon/W, mob/user, params)
if(!anchored && isturf(loc))
if(istype(W, /obj/item/weapon/wrench))
@@ -370,7 +370,7 @@
if(!..())
ui_interact(user)
-/obj/machinery/power/solar_control/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/obj/machinery/power/solar_control/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
ui = SSnano.push_open_or_new_ui(user, src, ui_key, ui, "solar_control.tmpl", name, 490, 420, 1)
/obj/machinery/power/solar_control/get_ui_data()
@@ -388,7 +388,7 @@
data["connected_tracker"] = (connected_tracker ? 1 : 0)
return data
-/obj/machinery/power/solar_control/attackby(I as obj, user as mob, params)
+/obj/machinery/power/solar_control/attackby(obj/I, mob/user, params)
if(istype(I, /obj/item/weapon/screwdriver))
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
if(do_after(user, 20, target = src))
@@ -469,7 +469,7 @@
set_panels(cdir)
//rotates the panel to the passed angle
-/obj/machinery/power/solar_control/proc/set_panels(var/cdir)
+/obj/machinery/power/solar_control/proc/set_panels(cdir)
for(var/obj/machinery/power/solar/S in connected_panels)
S.adir = cdir //instantly rotates the panel
diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm
index 8520b330ec3..9fb8bfb9d52 100644
--- a/code/modules/power/supermatter/supermatter.dm
+++ b/code/modules/power/supermatter/supermatter.dm
@@ -189,7 +189,7 @@
/obj/machinery/power/supermatter_shard
-/obj/machinery/power/supermatter_shard/bullet_act(var/obj/item/projectile/Proj)
+/obj/machinery/power/supermatter_shard/bullet_act(obj/item/projectile/Proj)
var/turf/L = loc
if(!istype(L)) // We don't run process() when we are in space
return 0 // This stops people from being able to really power up the supermatter
@@ -217,21 +217,21 @@
qdel(src)
return(gain)
-/obj/machinery/power/supermatter_shard/attack_paw(mob/user as mob)
+/obj/machinery/power/supermatter_shard/attack_paw(mob/user)
return attack_hand(user)
-/obj/machinery/power/supermatter_shard/attack_robot(mob/user as mob)
+/obj/machinery/power/supermatter_shard/attack_robot(mob/user)
if(Adjacent(user))
return attack_hand(user)
else
user << "You attempt to interface with the control circuits but find they are not connected to your network. Maybe in a future firmware update."
return
-/obj/machinery/power/supermatter_shard/attack_ai(mob/user as mob)
+/obj/machinery/power/supermatter_shard/attack_ai(mob/user)
user << "You attempt to interface with the control circuits but find they are not connected to your network. Maybe in a future firmware update."
-/obj/machinery/power/supermatter_shard/attack_hand(mob/living/user as mob)
+/obj/machinery/power/supermatter_shard/attack_hand(mob/living/user)
if(!istype(user))
return
user.visible_message("\The [user] reaches out and touches \the [src], inducing a resonance... \his body starts to glow and bursts into flames before flashing into ash.",\
@@ -248,7 +248,7 @@
R.receive_pulse(power/10)
return
-/obj/machinery/power/supermatter_shard/attackby(obj/item/W as obj, mob/living/user as mob, params)
+/obj/machinery/power/supermatter_shard/attackby(obj/item/W, mob/living/user, params)
if(!istype(W) || (W.flags & ABSTRACT) || !istype(user))
return
if(user.drop_item(W))
diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm
index ded1f663392..37fded3198f 100644
--- a/code/modules/power/terminal.dm
+++ b/code/modules/power/terminal.dm
@@ -25,7 +25,7 @@
master.disconnect_terminal()
return ..()
-/obj/machinery/power/terminal/hide(var/i)
+/obj/machinery/power/terminal/hide(i)
if(i)
invisibility = 101
icon_state = "term-f"
@@ -48,7 +48,7 @@
. = 1
-/obj/machinery/power/terminal/proc/dismantle(var/mob/living/user)
+/obj/machinery/power/terminal/proc/dismantle(mob/living/user)
if(istype(loc, /turf/simulated))
var/turf/simulated/T = loc
if(T.intact)
diff --git a/code/modules/power/tracker.dm b/code/modules/power/tracker.dm
index d39921f2699..b2771ae6d4f 100644
--- a/code/modules/power/tracker.dm
+++ b/code/modules/power/tracker.dm
@@ -26,7 +26,7 @@
..()
//set the control of the tracker to a given computer if closer than SOLAR_MAX_DIST
-/obj/machinery/power/tracker/proc/set_control(var/obj/machinery/power/solar_control/SC)
+/obj/machinery/power/tracker/proc/set_control(obj/machinery/power/solar_control/SC)
if(!SC || (get_dist(src, SC) > SOLAR_MAX_DIST))
return 0
control = SC
@@ -39,7 +39,7 @@
control.connected_tracker = null
control = null
-/obj/machinery/power/tracker/proc/Make(var/obj/item/solar_assembly/S)
+/obj/machinery/power/tracker/proc/Make(obj/item/solar_assembly/S)
if(!S)
S = new /obj/item/solar_assembly(src)
S.glass_type = /obj/item/stack/sheet/glass
@@ -49,7 +49,7 @@
update_icon()
//updates the tracker icon and the facing angle for the control computer
-/obj/machinery/power/tracker/proc/set_angle(var/angle)
+/obj/machinery/power/tracker/proc/set_angle(angle)
sun_angle = angle
//set icon dir to show sun illumination
@@ -58,7 +58,7 @@
if(powernet && (powernet == control.powernet)) //update if we're still in the same powernet
control.cdir = angle
-/obj/machinery/power/tracker/attackby(var/obj/item/weapon/W, var/mob/user, params)
+/obj/machinery/power/tracker/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/weapon/crowbar))
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm
index 6e72debce5f..c7bf249a611 100644
--- a/code/modules/power/turbine.dm
+++ b/code/modules/power/turbine.dm
@@ -130,7 +130,7 @@
default_deconstruction_crowbar(I)
-/obj/machinery/power/compressor/CanAtmosPass(var/turf/T)
+/obj/machinery/power/compressor/CanAtmosPass(turf/T)
return !density
/obj/machinery/power/compressor/process()
@@ -230,7 +230,7 @@
if(compressor)
compressor.locate_machinery()
-/obj/machinery/power/turbine/CanAtmosPass(var/turf/T)
+/obj/machinery/power/turbine/CanAtmosPass(turf/T)
return !density
/obj/machinery/power/turbine/process()
diff --git a/code/modules/procedural mapping/mapGenerator.dm b/code/modules/procedural mapping/mapGenerator.dm
index 864e43c1ea6..f421b1db0ee 100644
--- a/code/modules/procedural mapping/mapGenerator.dm
+++ b/code/modules/procedural mapping/mapGenerator.dm
@@ -32,7 +32,7 @@
//Defines the region the map represents, sets map
//Returns the map
-/datum/mapGenerator/proc/defineRegion(var/turf/Start, var/turf/End, var/replace = 0)
+/datum/mapGenerator/proc/defineRegion(turf/Start, turf/End, replace = 0)
if(!checkRegion(Start, End))
return 0
@@ -45,7 +45,7 @@
//Defines the region the map represents, as a CIRCLE!, sets map
//Returns the map
-/datum/mapGenerator/proc/defineCircularRegion(var/turf/Start, var/turf/End, var/replace = 0)
+/datum/mapGenerator/proc/defineCircularRegion(turf/Start, turf/End, replace = 0)
if(!checkRegion(Start, End))
return 0
@@ -86,7 +86,7 @@
//Checks for and Rejects bad region coordinates
//Returns 1/0
-/datum/mapGenerator/proc/checkRegion(var/turf/Start, var/turf/End)
+/datum/mapGenerator/proc/checkRegion(turf/Start, turf/End)
. = 1
if(!Start || !End)
@@ -113,7 +113,7 @@
//Requests the mapGeneratorModule(s) to (re)generate this one turf
-/datum/mapGenerator/proc/generateOneTurf(var/turf/T)
+/datum/mapGenerator/proc/generateOneTurf(turf/T)
if(!T)
return
syncModules()
@@ -178,7 +178,7 @@
var/moduleClusters = input("Cluster Flags (Cancel to leave unchanged from defaults)","Map Gen Settings") as null|anything in clusters
//null for default
-
+
var/theCluster = 0
if(moduleClusters != "None")
if(!clusters[moduleClusters])
@@ -187,7 +187,7 @@
theCluster = clusters[moduleClusters]
else
theCluster = CLUSTER_CHECK_NONE
-
+
if(theCluster)
for(var/datum/mapGeneratorModule/M in N.modules)
M.clusterCheckFlags = theCluster
diff --git a/code/modules/procedural mapping/mapGeneratorModule.dm b/code/modules/procedural mapping/mapGeneratorModule.dm
index da08a540ef3..847b679225d 100644
--- a/code/modules/procedural mapping/mapGeneratorModule.dm
+++ b/code/modules/procedural mapping/mapGeneratorModule.dm
@@ -10,7 +10,7 @@
//Syncs the module up with it's mother
-/datum/mapGeneratorModule/proc/sync(var/datum/mapGenerator/mum)
+/datum/mapGeneratorModule/proc/sync(datum/mapGenerator/mum)
mother = null
if(mum)
mother = mum
@@ -26,7 +26,7 @@
//Place a spawnable atom or turf on this turf
-/datum/mapGeneratorModule/proc/place(var/turf/T)
+/datum/mapGeneratorModule/proc/place(turf/T)
if(!T)
return 0
@@ -104,7 +104,7 @@
//Checks and Rejects dense turfs
-/datum/mapGeneratorModule/proc/checkPlaceAtom(var/turf/T)
+/datum/mapGeneratorModule/proc/checkPlaceAtom(turf/T)
. = 1
if(!T)
return 0
diff --git a/code/modules/procedural mapping/mapGeneratorModules/helpers.dm b/code/modules/procedural mapping/mapGeneratorModules/helpers.dm
index bad449a9e8f..2c76915504b 100644
--- a/code/modules/procedural mapping/mapGeneratorModules/helpers.dm
+++ b/code/modules/procedural mapping/mapGeneratorModules/helpers.dm
@@ -33,7 +33,7 @@
if(is_border(T))
place(T)
-/datum/mapGeneratorModule/border/proc/is_border(var/turf/T)
+/datum/mapGeneratorModule/border/proc/is_border(turf/T)
for(var/direction in list(SOUTH,EAST,WEST,NORTH))
if (get_step(T,direction) in mother.map)
continue
diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm
index 5cce24c6dba..27a1309f57b 100644
--- a/code/modules/projectiles/ammunition.dm
+++ b/code/modules/projectiles/ammunition.dm
@@ -34,7 +34,7 @@
BB = new projectile_type(src)
return
-/obj/item/ammo_casing/attackby(obj/item/ammo_box/box as obj, mob/user as mob, params)
+/obj/item/ammo_casing/attackby(obj/item/ammo_box/box, mob/user, params)
if (!istype(box, /obj/item/ammo_box))
return
if(isturf(src.loc))
@@ -79,7 +79,7 @@
stored_ammo += new ammo_type(src)
update_icon()
-/obj/item/ammo_box/proc/get_round(var/keep = 0)
+/obj/item/ammo_box/proc/get_round(keep = 0)
if (!stored_ammo.len)
return null
else
@@ -89,7 +89,7 @@
stored_ammo.Insert(1,b)
return b
-/obj/item/ammo_box/proc/give_round(var/obj/item/ammo_casing/R, var/replace_spent = 0)
+/obj/item/ammo_box/proc/give_round(obj/item/ammo_casing/R, replace_spent = 0)
// Boxes don't have a caliber type, magazines do. Not sure if it's intended or not, but if we fail to find a caliber, then we fall back to ammo_type.
if(!R || (caliber && R.caliber != caliber) || (!caliber && R.type != ammo_type))
return 0
@@ -112,7 +112,7 @@
return 0
-/obj/item/ammo_box/attackby(var/obj/item/A as obj, mob/user as mob, params, var/silent = 0, var/replace_spent = 0)
+/obj/item/ammo_box/attackby(obj/item/A, mob/user, params, silent = 0, replace_spent = 0)
var/num_loaded = 0
if(istype(A, /obj/item/ammo_box))
var/obj/item/ammo_box/AM = A
@@ -138,7 +138,7 @@
return num_loaded
-/obj/item/ammo_box/attack_self(mob/user as mob)
+/obj/item/ammo_box/attack_self(mob/user)
var/obj/item/ammo_casing/A = get_round()
if(A)
user.put_in_hands(A)
diff --git a/code/modules/projectiles/ammunition/ammo_casings.dm b/code/modules/projectiles/ammunition/ammo_casings.dm
index 3e0afd3ee2e..bf3a16b8060 100644
--- a/code/modules/projectiles/ammunition/ammo_casings.dm
+++ b/code/modules/projectiles/ammunition/ammo_casings.dm
@@ -1,7 +1,7 @@
/obj/item/ammo_casing/a357
desc = "A .357 bullet casing."
caliber = "357"
- projectile_type = /obj/item/projectile/bullet
+ projectile_type = /obj/item/projectile/bullet/revolver
/obj/item/ammo_casing/a50
desc = "A .50AE bullet casing."
@@ -196,7 +196,7 @@
desc = "A caseless bullet casing."
-/obj/item/ammo_casing/caseless/fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, params, var/distro, var/quiet)
+/obj/item/ammo_casing/caseless/fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, params, distro, quiet)
if (..())
loc = null
return 1
@@ -244,7 +244,7 @@
icon_state = "foamdart_empty"
desc = "Its nerf or nothing! ... Although, this one doesn't look too safe."
-/obj/item/ammo_casing/caseless/foam_dart/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/ammo_casing/caseless/foam_dart/attackby(obj/item/A, mob/user, params)
..()
if (istype(A, /obj/item/weapon/screwdriver) && !modified)
modified = 1
diff --git a/code/modules/projectiles/ammunition/magazines.dm b/code/modules/projectiles/ammunition/magazines.dm
index 9a3c97ab7e7..c776a60e0a4 100644
--- a/code/modules/projectiles/ammunition/magazines.dm
+++ b/code/modules/projectiles/ammunition/magazines.dm
@@ -1,7 +1,7 @@
////////////////INTERNAL MAGAZINES//////////////////////
//internals magazines are accessible, so replace spent ammo if full when trying to put a live one in
-/obj/item/ammo_box/magazine/internal/give_round(var/obj/item/ammo_casing/R)
+/obj/item/ammo_box/magazine/internal/give_round(obj/item/ammo_casing/R)
return ..(R,1)
/obj/item/ammo_box/magazine/internal/cylinder
@@ -11,7 +11,7 @@
caliber = "357"
max_ammo = 7
-/obj/item/ammo_box/magazine/internal/cylinder/ammo_count(var/countempties = 1)
+/obj/item/ammo_box/magazine/internal/cylinder/ammo_count(countempties = 1)
if (!countempties)
var/boolets = 0
for (var/i = 1, i <= stored_ammo.len, i++)
diff --git a/code/modules/projectiles/firing.dm b/code/modules/projectiles/firing.dm
index d130f56e32b..a90eda4508f 100644
--- a/code/modules/projectiles/firing.dm
+++ b/code/modules/projectiles/firing.dm
@@ -1,4 +1,4 @@
-/obj/item/ammo_casing/proc/fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, params, var/distro, var/quiet)
+/obj/item/ammo_casing/proc/fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, params, distro, quiet)
distro += variance
for (var/i = max(1, pellets), i > 0, i--)
var/curloc = user.loc
@@ -15,7 +15,7 @@
update_icon()
return 1
-/obj/item/ammo_casing/proc/ready_proj(atom/target as mob|obj|turf, mob/living/user, var/quiet)
+/obj/item/ammo_casing/proc/ready_proj(atom/target as mob|obj|turf, mob/living/user, quiet)
if (!BB)
return
BB.original = target
@@ -53,7 +53,7 @@
BB = null
return 1
-/obj/item/ammo_casing/proc/spread(var/turf/target, var/turf/current, var/distro)
+/obj/item/ammo_casing/proc/spread(turf/target, turf/current, distro)
var/dx = abs(target.x - current.x)
var/dy = abs(target.y - current.y)
return locate(target.x + round(gaussian(0, distro) * (dy+2)/8, 1), target.y + round(gaussian(0, distro) * (dx+2)/8, 1), target.z)
diff --git a/code/modules/projectiles/gun.dm b/code/modules/projectiles/gun.dm
index c2aec9dd829..e692bd7bb97 100644
--- a/code/modules/projectiles/gun.dm
+++ b/code/modules/projectiles/gun.dm
@@ -87,7 +87,7 @@
return
-/obj/item/weapon/gun/proc/shoot_live_shot(mob/living/user as mob|obj, var/pointblank = 0, var/mob/pbtarget = null, var/message = 1)
+/obj/item/weapon/gun/proc/shoot_live_shot(mob/living/user as mob|obj, pointblank = 0, mob/pbtarget = null, message = 1)
if(recoil)
spawn()
shake_camera(user, recoil + 1, recoil)
@@ -172,7 +172,7 @@
return 0
-/obj/item/weapon/gun/proc/process_fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, var/message = 1, params)
+/obj/item/weapon/gun/proc/process_fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, message = 1, params)
add_fingerprint(user)
if(semicd)
@@ -235,7 +235,7 @@
else
return
-/obj/item/weapon/gun/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/attackby(obj/item/A, mob/user, params)
if(istype(A, /obj/item/device/flashlight/seclite))
var/obj/item/device/flashlight/seclite/S = A
if(can_flashlight)
@@ -293,7 +293,7 @@
update_gunlight(user)
return
-/obj/item/weapon/gun/proc/update_gunlight(var/mob/user = null)
+/obj/item/weapon/gun/proc/update_gunlight(mob/user = null)
if(F)
action_button_name = "Toggle Gunlight"
if(F.on)
@@ -328,13 +328,13 @@
SetLuminosity(F.brightness_on)
-/obj/item/weapon/gun/attack_hand(mob/user as mob)
+/obj/item/weapon/gun/attack_hand(mob/user)
if(unique_reskin && !reskinned && loc == user)
reskin_gun(user)
return
..()
-/obj/item/weapon/gun/proc/reskin_gun(var/mob/M)
+/obj/item/weapon/gun/proc/reskin_gun(mob/M)
var/choice = input(M,"Warning, you can only reskin your weapon once!","Reskin Gun") in options
if(src && choice && !M.stat && in_range(M,src) && !M.restrained() && M.canmove)
@@ -348,7 +348,7 @@
reskinned = 1
return
-/obj/item/weapon/gun/proc/rename_gun(var/mob/M)
+/obj/item/weapon/gun/proc/rename_gun(mob/M)
var/input = stripped_input(M,"What do you want to name the gun?", ,"", MAX_NAME_LEN)
if(src && input && !M.stat && in_range(M,src) && !M.restrained() && M.canmove)
diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm
index b16bfeb140f..15115001e06 100644
--- a/code/modules/projectiles/guns/energy.dm
+++ b/code/modules/projectiles/guns/energy.dm
@@ -59,7 +59,7 @@
chambered = null //either way, released the prepared shot
return
-/obj/item/weapon/gun/energy/proc/select_fire(mob/living/user as mob)
+/obj/item/weapon/gun/energy/proc/select_fire(mob/living/user)
select++
if (select > ammo_type.len)
select = 1
diff --git a/code/modules/projectiles/guns/energy/nuclear.dm b/code/modules/projectiles/guns/energy/nuclear.dm
index 6de08880434..90e201e2a61 100644
--- a/code/modules/projectiles/guns/energy/nuclear.dm
+++ b/code/modules/projectiles/guns/energy/nuclear.dm
@@ -8,7 +8,7 @@
modifystate = 2
can_flashlight = 1
-/obj/item/weapon/gun/energy/gun/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/gun/attack_self(mob/living/user)
select_fire(user)
update_icon()
diff --git a/code/modules/projectiles/guns/energy/pulse.dm b/code/modules/projectiles/guns/energy/pulse.dm
index d638e39a10b..734b408bfba 100644
--- a/code/modules/projectiles/guns/energy/pulse.dm
+++ b/code/modules/projectiles/guns/energy/pulse.dm
@@ -10,7 +10,7 @@
ammo_type = list(/obj/item/ammo_casing/energy/laser/pulse, /obj/item/ammo_casing/energy/electrode, /obj/item/ammo_casing/energy/laser)
cell_type = "/obj/item/weapon/stock_parts/cell/pulse"
-/obj/item/weapon/gun/energy/pulse/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/pulse/attack_self(mob/living/user)
select_fire(user)
/obj/item/weapon/gun/energy/pulse/emp_act(severity)
@@ -51,7 +51,7 @@
cell_type = "/obj/item/weapon/stock_parts/cell/infinite"
ammo_type = list(/obj/item/ammo_casing/energy/laser/pulse)
-/obj/item/weapon/gun/energy/pulse/destroyer/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/pulse/destroyer/attack_self(mob/living/user)
user << "[src.name] has three settings, and they are all DESTROY."
/obj/item/weapon/gun/energy/pulse/pistol/m1911
diff --git a/code/modules/projectiles/guns/energy/special.dm b/code/modules/projectiles/guns/energy/special.dm
index c3c78b2010c..78d77697bab 100644
--- a/code/modules/projectiles/guns/energy/special.dm
+++ b/code/modules/projectiles/guns/energy/special.dm
@@ -62,7 +62,7 @@
update_icon()
return 1
-/obj/item/weapon/gun/energy/floragun/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/floragun/attack_self(mob/living/user)
select_fire(user)
update_icon()
return
@@ -192,7 +192,7 @@
if(power_supply)
user <<"[src] is [round(power_supply.percent())]% charged."
-/obj/item/weapon/gun/energy/plasmacutter/attackby(var/obj/item/A, var/mob/user)
+/obj/item/weapon/gun/energy/plasmacutter/attackby(obj/item/A, mob/user)
if(istype(A, /obj/item/stack/sheet/mineral/plasma))
var/obj/item/stack/sheet/S = A
S.use(1)
@@ -263,14 +263,14 @@
icon_state = "[initial(icon_state)][select]"
return
-/obj/item/weapon/gun/energy/wormhole_projector/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/wormhole_projector/attack_self(mob/living/user)
select_fire(user)
/obj/item/weapon/gun/energy/wormhole_projector/process_chamber()
..()
select_fire()
-/obj/item/weapon/gun/energy/wormhole_projector/proc/portal_destroyed(var/obj/effect/portal/P)
+/obj/item/weapon/gun/energy/wormhole_projector/proc/portal_destroyed(obj/effect/portal/P)
if(P.icon_state == "portal")
blue = null
if(orange)
@@ -280,7 +280,7 @@
if(blue)
blue.target = null
-/obj/item/weapon/gun/energy/wormhole_projector/proc/create_portal(var/obj/item/projectile/beam/wormhole/W)
+/obj/item/weapon/gun/energy/wormhole_projector/proc/create_portal(obj/item/projectile/beam/wormhole/W)
var/obj/effect/portal/P = new /obj/effect/portal(get_turf(W), null, src)
P.precision = 0
if(W.name == "bluespace beam")
diff --git a/code/modules/projectiles/guns/energy/temperature.dm b/code/modules/projectiles/guns/energy/temperature.dm
index 0db80cb561e..cdf7625e393 100644
--- a/code/modules/projectiles/guns/energy/temperature.dm
+++ b/code/modules/projectiles/guns/energy/temperature.dm
@@ -8,7 +8,7 @@
pin = null
-/obj/item/weapon/gun/energy/temperature/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/energy/temperature/attack_self(mob/living/user)
select_fire(user)
update_icon()
return
\ No newline at end of file
diff --git a/code/modules/projectiles/guns/grenade_launcher.dm b/code/modules/projectiles/guns/grenade_launcher.dm
index 20fa083d6e0..39a23d5c07d 100644
--- a/code/modules/projectiles/guns/grenade_launcher.dm
+++ b/code/modules/projectiles/guns/grenade_launcher.dm
@@ -16,7 +16,7 @@
..()
user << "[grenades.len] / [max_grenades] grenades loaded."
-/obj/item/weapon/gun/grenadelauncher/attackby(obj/item/I as obj, mob/user as mob, params)
+/obj/item/weapon/gun/grenadelauncher/attackby(obj/item/I, mob/user, params)
if((istype(I, /obj/item/weapon/grenade)))
if(grenades.len < max_grenades)
diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm
index 96cc485ab71..645d078002e 100644
--- a/code/modules/projectiles/guns/magic.dm
+++ b/code/modules/projectiles/guns/magic.dm
@@ -22,7 +22,7 @@
lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' //not really a gun and some toys use these inhands
righthand_file = 'icons/mob/inhands/items_righthand.dmi'
-/obj/item/weapon/gun/magic/afterattack(atom/target as mob, mob/living/user as mob, flag)
+/obj/item/weapon/gun/magic/afterattack(atom/target, mob/living/user, flag)
newshot()
if(no_den_usage)
var/area/A = get_area(user)
diff --git a/code/modules/projectiles/guns/magic/wand.dm b/code/modules/projectiles/guns/magic/wand.dm
index 55f9ff2849f..f1734712170 100644
--- a/code/modules/projectiles/guns/magic/wand.dm
+++ b/code/modules/projectiles/guns/magic/wand.dm
@@ -24,12 +24,12 @@
/obj/item/weapon/gun/magic/wand/update_icon()
icon_state = "[initial(icon_state)][charges ? "" : "-drained"]"
-/obj/item/weapon/gun/magic/wand/attack(atom/target as mob, mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/attack(atom/target, mob/living/user)
if(target == user)
return
..()
-/obj/item/weapon/gun/magic/wand/afterattack(atom/target as mob, mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/afterattack(atom/target, mob/living/user)
if(!charges)
shoot_with_empty_chamber(user)
return
@@ -47,7 +47,7 @@
update_icon()
-/obj/item/weapon/gun/magic/wand/proc/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/proc/zap_self(mob/living/user)
user.visible_message("[user] zaps \himself with [src].")
playsound(user, fire_sound, 50, 1)
user.attack_log += "\[[time_stamp()]\] [user]/[user.ckey] zapped \himself with a [src]"
@@ -65,7 +65,7 @@
icon_state = "deathwand"
max_charges = 3 //3, 2, 2, 1
-/obj/item/weapon/gun/magic/wand/death/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/death/zap_self(mob/living/user)
var/message ="You irradiate yourself with pure energy! "
message += pick("Do not pass go. Do not collect 200 zorkmids.","You feel more confident in your spell casting skills.","You Die...","Do you want your possessions identified?")
user << message
@@ -85,7 +85,7 @@
icon_state = "revivewand"
max_charges = 10 //10, 5, 5, 4
-/obj/item/weapon/gun/magic/wand/resurrection/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/resurrection/zap_self(mob/living/user)
user.revive()
user << "You feel great!"
charges--
@@ -103,7 +103,7 @@
fire_sound = "sound/magic/Staff_Change.ogg"
max_charges = 10 //10, 5, 5, 4
-/obj/item/weapon/gun/magic/wand/polymorph/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/polymorph/zap_self(mob/living/user)
..() //because the user mob ceases to exists by the time wabbajack fully resolves
wabbajack(user)
charges--
@@ -121,7 +121,7 @@
max_charges = 10 //10, 5, 5, 4
no_den_usage = 1
-/obj/item/weapon/gun/magic/wand/teleport/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/teleport/zap_self(mob/living/user)
do_teleport(user, user, 10)
var/datum/effect/effect/system/smoke_spread/smoke = new
smoke.set_up(10, 0, user.loc)
@@ -157,7 +157,7 @@
icon_state = "firewand"
max_charges = 8 //8, 4, 4, 3
-/obj/item/weapon/gun/magic/wand/fireball/zap_self(mob/living/user as mob)
+/obj/item/weapon/gun/magic/wand/fireball/zap_self(mob/living/user)
explosion(user.loc, -1, 0, 2, 3, 0, flame_range = 2)
charges--
..()
\ No newline at end of file
diff --git a/code/modules/projectiles/guns/projectile.dm b/code/modules/projectiles/guns/projectile.dm
index 9a9c0267e6b..03c38726f09 100644
--- a/code/modules/projectiles/guns/projectile.dm
+++ b/code/modules/projectiles/guns/projectile.dm
@@ -17,7 +17,7 @@
update_icon()
return
-/obj/item/weapon/gun/projectile/process_chamber(var/eject_casing = 1, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/process_chamber(eject_casing = 1, empty_chamber = 1)
// if(in_chamber)
// return 1
var/obj/item/ammo_casing/AC = chambered //Find chambered round
@@ -46,7 +46,7 @@
return 0
return 1
-/obj/item/weapon/gun/projectile/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/attackby(obj/item/A, mob/user, params)
..()
if (istype(A, /obj/item/ammo_box/magazine))
var/obj/item/ammo_box/magazine/AM = A
@@ -87,7 +87,7 @@
return
return 0
-/obj/item/weapon/gun/projectile/attack_hand(mob/user as mob)
+/obj/item/weapon/gun/projectile/attack_hand(mob/user)
if(loc == user)
if(suppressed)
var/obj/item/weapon/suppressor/S = suppressed
@@ -103,7 +103,7 @@
return
..()
-/obj/item/weapon/gun/projectile/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/projectile/attack_self(mob/living/user)
var/obj/item/ammo_casing/AC = chambered //Find chambered round
if(magazine)
magazine.loc = get_turf(src.loc)
@@ -126,7 +126,7 @@
..()
user << "Has [get_ammo()] round\s remaining."
-/obj/item/weapon/gun/projectile/proc/get_ammo(var/countchambered = 1)
+/obj/item/weapon/gun/projectile/proc/get_ammo(countchambered = 1)
var/boolets = 0 //mature var names for mature people
if (chambered && countchambered)
boolets++
diff --git a/code/modules/projectiles/guns/projectile/automatic.dm b/code/modules/projectiles/guns/projectile/automatic.dm
index 19545232181..a08f9b37260 100644
--- a/code/modules/projectiles/guns/projectile/automatic.dm
+++ b/code/modules/projectiles/guns/projectile/automatic.dm
@@ -25,7 +25,7 @@
icon_state = "[initial(icon_state)][magazine ? "-[magazine.max_ammo]" : ""][chambered ? "" : "-e"][suppressed ? "-suppressed" : ""]"
return
-/obj/item/weapon/gun/projectile/automatic/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/automatic/attackby(obj/item/A, mob/user, params)
. = ..()
if(.)
return
@@ -130,7 +130,7 @@
fire_delay = 3
pin = /obj/item/device/firing_pin/implant/pindicate
-/obj/item/weapon/gun/projectile/automatic/l6_saw/attack_self(mob/user as mob)
+/obj/item/weapon/gun/projectile/automatic/l6_saw/attack_self(mob/user)
cover_open = !cover_open
user << "You [cover_open ? "open" : "close"] [src]'s cover."
update_icon()
@@ -148,7 +148,7 @@
update_icon()
-/obj/item/weapon/gun/projectile/automatic/l6_saw/attack_hand(mob/user as mob)
+/obj/item/weapon/gun/projectile/automatic/l6_saw/attack_hand(mob/user)
if(loc != user)
..()
return //let them pick it up
@@ -164,7 +164,7 @@
user << "You remove the magazine from [src]."
-/obj/item/weapon/gun/projectile/automatic/l6_saw/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/automatic/l6_saw/attackby(obj/item/A, mob/user, params)
if(!cover_open)
user << "[src]'s cover is closed! You can't insert a new mag."
return
@@ -190,13 +190,13 @@
underbarrel = new /obj/item/weapon/gun/projectile/revolver/grenadelauncher(src)
update_icon()
return
-/obj/item/weapon/gun/projectile/automatic/m90/afterattack(var/atom/target, var/mob/living/user, flag, params)
+/obj/item/weapon/gun/projectile/automatic/m90/afterattack(atom/target, mob/living/user, flag, params)
if(select == 2)
underbarrel.afterattack(target, user, flag, params)
else
..()
return
-/obj/item/weapon/gun/projectile/automatic/m90/attackby(var/obj/item/A, mob/user, params)
+/obj/item/weapon/gun/projectile/automatic/m90/attackby(obj/item/A, mob/user, params)
if(istype(A, /obj/item/ammo_casing))
if(istype(A, underbarrel.magazine.ammo_type))
underbarrel.attack_self()
diff --git a/code/modules/projectiles/guns/projectile/launchers.dm b/code/modules/projectiles/guns/projectile/launchers.dm
index 4b05c3f86dc..4bddd2d3ce4 100644
--- a/code/modules/projectiles/guns/projectile/launchers.dm
+++ b/code/modules/projectiles/guns/projectile/launchers.dm
@@ -10,7 +10,7 @@
fire_sound = 'sound/weapons/grenadelaunch.ogg'
w_class = 3
-/obj/item/weapon/gun/projectile/revolver/grenadelauncher/attackby(var/obj/item/A, mob/user, params)
+/obj/item/weapon/gun/projectile/revolver/grenadelauncher/attackby(obj/item/A, mob/user, params)
..()
if(istype(A, /obj/item/ammo_box) || istype(A, /obj/item/ammo_casing))
chamber_round()
@@ -36,7 +36,7 @@
fire_delay = 0
action_button_name = null
-/obj/item/weapon/gun/projectile/automatic/gyropistol/process_chamber(var/eject_casing = 0, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/automatic/gyropistol/process_chamber(eject_casing = 0, empty_chamber = 1)
..()
/obj/item/weapon/gun/projectile/automatic/gyropistol/update_icon()
@@ -65,10 +65,10 @@
/obj/item/weapon/gun/projectile/automatic/speargun/attack_self()
return
-/obj/item/weapon/gun/projectile/automatic/speargun/process_chamber(var/eject_casing = 0, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/automatic/speargun/process_chamber(eject_casing = 0, empty_chamber = 1)
..()
-/obj/item/weapon/gun/projectile/automatic/speargun/attackby(var/obj/item/A, mob/user, params)
+/obj/item/weapon/gun/projectile/automatic/speargun/attackby(obj/item/A, mob/user, params)
var/num_loaded = magazine.attackby(A, user, params, 1)
if(num_loaded)
user << "You load [num_loaded] spear\s into \the [src]."
diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm
index 6e8d226b7e7..1a9c2fdd071 100644
--- a/code/modules/projectiles/guns/projectile/revolver.dm
+++ b/code/modules/projectiles/guns/projectile/revolver.dm
@@ -14,7 +14,7 @@
/obj/item/weapon/gun/projectile/revolver/process_chamber()
return ..(0, 1)
-/obj/item/weapon/gun/projectile/revolver/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/revolver/attackby(obj/item/A, mob/user, params)
var/num_loaded = magazine.attackby(A, user, params, 1)
if(num_loaded)
user << "You load [num_loaded] shell\s into \the [src]."
@@ -26,7 +26,7 @@
if(istype(A, /obj/item/weapon/pen))
rename_gun(user)
-/obj/item/weapon/gun/projectile/revolver/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/projectile/revolver/attack_self(mob/living/user)
var/num_unloaded = 0
while (get_ammo() > 0)
var/obj/item/ammo_casing/CB
@@ -44,7 +44,7 @@
/obj/item/weapon/gun/projectile/revolver/can_shoot()
return get_ammo(0,0)
-/obj/item/weapon/gun/projectile/revolver/get_ammo(var/countchambered = 0, var/countempties = 1)
+/obj/item/weapon/gun/projectile/revolver/get_ammo(countchambered = 0, countempties = 1)
var/boolets = 0 //mature var names for mature people
if (chambered && countchambered)
boolets++
@@ -73,7 +73,7 @@
options["The Peacemaker"] = "detective_peacemaker"
options["Cancel"] = null
-/obj/item/weapon/gun/projectile/revolver/detective/process_fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, var/message = 1, params)
+/obj/item/weapon/gun/projectile/revolver/detective/process_fire(atom/target as mob|obj|turf, mob/living/user as mob|obj, message = 1, params)
if(magazine.caliber != initial(magazine.caliber))
if(prob(70 - (magazine.ammo_count() * 10))) //minimum probability of 10, maximum of 60
playsound(user, fire_sound, 50, 1)
@@ -83,7 +83,7 @@
return 0
..()
-/obj/item/weapon/gun/projectile/revolver/detective/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/revolver/detective/attackby(obj/item/A, mob/user, params)
..()
if(istype(A, /obj/item/weapon/screwdriver))
if(magazine.caliber == "38")
@@ -143,7 +143,7 @@
chamber_round()
spun = 1
-/obj/item/weapon/gun/projectile/revolver/russian/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/revolver/russian/attackby(obj/item/A, mob/user, params)
var/num_loaded = ..()
if(num_loaded)
user.visible_message("[user] loads a single bullet into the revolver and spins the chamber.", "You load a single bullet into the chamber and spin it.")
@@ -155,7 +155,7 @@
A.update_icon()
return
-/obj/item/weapon/gun/projectile/revolver/russian/attack_self(mob/user as mob)
+/obj/item/weapon/gun/projectile/revolver/russian/attack_self(mob/user)
if(!spun && can_shoot())
user.visible_message("[user] spins the chamber of the revolver.", "You spin the revolver's chamber.")
Spin()
diff --git a/code/modules/projectiles/guns/projectile/shotgun.dm b/code/modules/projectiles/guns/projectile/shotgun.dm
index 56fb14a3dd1..cda97e37feb 100644
--- a/code/modules/projectiles/guns/projectile/shotgun.dm
+++ b/code/modules/projectiles/guns/projectile/shotgun.dm
@@ -11,7 +11,7 @@
mag_type = /obj/item/ammo_box/magazine/internal/shot
var/recentpump = 0 // to prevent spammage
-/obj/item/weapon/gun/projectile/shotgun/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/shotgun/attackby(obj/item/A, mob/user, params)
var/num_loaded = magazine.attackby(A, user, params, 1)
if(num_loaded)
user << "You load [num_loaded] shell\s into \the [src]!"
@@ -71,7 +71,7 @@
mag_type = /obj/item/ammo_box/magazine/internal/shotriot
sawn_desc = "Come with me if you want to live."
-/obj/item/weapon/gun/projectile/shotgun/riot/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/shotgun/riot/attackby(obj/item/A, mob/user, params)
..()
if(istype(A, /obj/item/weapon/circular_saw) || istype(A, /obj/item/weapon/gun/energy/plasmacutter))
sawoff(user)
@@ -103,7 +103,7 @@
update_icon() //I.E. fix the desc
return 1
-/obj/item/weapon/gun/projectile/shotgun/boltaction/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/shotgun/boltaction/attackby(obj/item/A, mob/user, params)
if(!bolt_open)
user << "The bolt is closed!"
return
@@ -142,7 +142,7 @@
options["Rosewood"] = "dshotgun-p"
options["Cancel"] = null
-/obj/item/weapon/gun/projectile/revolver/doublebarrel/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/revolver/doublebarrel/attackby(obj/item/A, mob/user, params)
..()
if(istype(A, /obj/item/ammo_box) || istype(A, /obj/item/ammo_casing))
chamber_round()
@@ -153,7 +153,7 @@
if(istype(A, /obj/item/weapon/circular_saw) || istype(A, /obj/item/weapon/gun/energy/plasmacutter))
sawoff(user)
-/obj/item/weapon/gun/projectile/revolver/doublebarrel/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/projectile/revolver/doublebarrel/attack_self(mob/living/user)
var/num_unloaded = 0
while (get_ammo() > 0)
var/obj/item/ammo_casing/CB
@@ -184,7 +184,7 @@
unique_rename = 0
unique_reskin = 0
-/obj/item/weapon/gun/projectile/revolver/doublebarrel/improvised/attackby(var/obj/item/A as obj, mob/user as mob, params)
+/obj/item/weapon/gun/projectile/revolver/doublebarrel/improvised/attackby(obj/item/A, mob/user, params)
..()
if(istype(A, /obj/item/stack/cable_coil) && !sawn_state)
var/obj/item/stack/cable_coil/C = A
@@ -199,20 +199,20 @@
// Sawing guns related procs //
-/obj/item/weapon/gun/projectile/proc/blow_up(mob/user as mob)
+/obj/item/weapon/gun/projectile/proc/blow_up(mob/user)
. = 0
for(var/obj/item/ammo_casing/AC in magazine.stored_ammo)
if(AC.BB)
process_fire(user, user,0)
. = 1
-/obj/item/weapon/gun/projectile/shotgun/blow_up(mob/user as mob)
+/obj/item/weapon/gun/projectile/shotgun/blow_up(mob/user)
. = 0
if(chambered && chambered.BB)
process_fire(user, user,0)
. = 1
-/obj/item/weapon/gun/projectile/proc/sawoff(mob/user as mob)
+/obj/item/weapon/gun/projectile/proc/sawoff(mob/user)
if(sawn_state == SAWN_OFF)
user << "\The [src] is already shortened!"
return
@@ -296,4 +296,4 @@
icon_state = "cshotgun"
origin_tech = "combat=5;materials=2"
mag_type = /obj/item/ammo_box/magazine/internal/shotcom
- w_class = 5
+ w_class = 5
diff --git a/code/modules/projectiles/guns/projectile/toy.dm b/code/modules/projectiles/guns/projectile/toy.dm
index 67a5aa56406..06fd47933ba 100644
--- a/code/modules/projectiles/guns/projectile/toy.dm
+++ b/code/modules/projectiles/guns/projectile/toy.dm
@@ -13,7 +13,7 @@
clumsy_check = 0
needs_permit = 0
-/obj/item/weapon/gun/projectile/automatic/toy/process_chamber(var/eject_casing = 0, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/automatic/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
..()
/obj/item/weapon/gun/projectile/automatic/toy/pistol
@@ -74,7 +74,7 @@
needs_permit = 0
mag_type = /obj/item/ammo_box/magazine/toy/smgm45
-/obj/item/weapon/gun/projectile/automatic/c20r/toy/process_chamber(var/eject_casing = 0, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/automatic/c20r/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
..()
/obj/item/weapon/gun/projectile/automatic/l6_saw/toy
@@ -85,5 +85,5 @@
needs_permit = 0
mag_type = /obj/item/ammo_box/magazine/toy/m762
-/obj/item/weapon/gun/projectile/automatic/l6_saw/toy/process_chamber(var/eject_casing = 0, var/empty_chamber = 1)
+/obj/item/weapon/gun/projectile/automatic/l6_saw/toy/process_chamber(eject_casing = 0, empty_chamber = 1)
..()
\ No newline at end of file
diff --git a/code/modules/projectiles/guns/syringe_gun.dm b/code/modules/projectiles/guns/syringe_gun.dm
index 67c4cb7191f..e44ae121576 100644
--- a/code/modules/projectiles/guns/syringe_gun.dm
+++ b/code/modules/projectiles/guns/syringe_gun.dm
@@ -45,7 +45,7 @@
..()
user << "Can hold [max_syringes] syringe\s. Has [syringes.len] syringe\s remaining."
-/obj/item/weapon/gun/syringe/attack_self(mob/living/user as mob)
+/obj/item/weapon/gun/syringe/attack_self(mob/living/user)
if(!syringes.len)
user << "[src] is empty!"
return 0
@@ -60,7 +60,7 @@
return 1
-/obj/item/weapon/gun/syringe/attackby(var/obj/item/A as obj, mob/user as mob, params, var/show_msg = 1)
+/obj/item/weapon/gun/syringe/attackby(obj/item/A, mob/user, params, show_msg = 1)
if(istype(A, /obj/item/weapon/reagent_containers/syringe))
if(syringes.len < max_syringes)
if(!user.unEquip(A))
diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm
index 123e35a2fd8..4d630ce494b 100644
--- a/code/modules/projectiles/pins.dm
+++ b/code/modules/projectiles/pins.dm
@@ -42,7 +42,7 @@
emagged = 1
user << "You override the authentication mechanism."
-/obj/item/device/firing_pin/proc/gun_insert(mob/living/user, var/obj/item/weapon/gun/G)
+/obj/item/device/firing_pin/proc/gun_insert(mob/living/user, obj/item/weapon/gun/G)
gun = G
loc = gun
gun.pin = src
@@ -132,7 +132,7 @@
return 0
return 1
-/obj/item/device/firing_pin/clown/ultra/gun_insert(mob/living/user, var/obj/item/weapon/gun/G)
+/obj/item/device/firing_pin/clown/ultra/gun_insert(mob/living/user, obj/item/weapon/gun/G)
..()
G.clumsy_check = 0
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index 7854bbf8e7c..29931e4e7bc 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -142,7 +142,7 @@
sleep(1)
-/obj/item/projectile/Crossed(atom/movable/AM as mob) //A mob moving on a tile with a projectile is hit by it.
+/obj/item/projectile/Crossed(atom/movable/AM) //A mob moving on a tile with a projectile is hit by it.
..()
if(isliving(AM) && AM.density && !checkpass(PASSMOB))
Bump(AM, 1)
\ No newline at end of file
diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm
index 00cd2fc1a42..f2c4eb31045 100644
--- a/code/modules/projectiles/projectile/beams.dm
+++ b/code/modules/projectiles/projectile/beams.dm
@@ -47,7 +47,7 @@
icon_state = "u_laser"
damage = 50
-/obj/item/projectile/beam/pulse/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/beam/pulse/on_hit(atom/target, blocked = 0)
. = ..()
if(istype(target,/turf/)||istype(target,/obj/structure/))
target.ex_act(2)
@@ -76,7 +76,7 @@
pass_flags = PASSTABLE | PASSGLASS | PASSGRILLE
var/suit_types = list(/obj/item/clothing/suit/redtag, /obj/item/clothing/suit/bluetag)
-/obj/item/projectile/lasertag/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/lasertag/on_hit(atom/target, blocked = 0)
. = ..()
if(ishuman(target))
var/mob/living/carbon/human/M = target
diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm
index d3fb315bc53..66a9e77c9ad 100644
--- a/code/modules/projectiles/projectile/bullets.dm
+++ b/code/modules/projectiles/projectile/bullets.dm
@@ -6,6 +6,10 @@
nodamage = 0
flag = "bullet"
+/obj/item/projectile/bullet/revolver
+ damage = 60
+ armour_penetration = 10
+
/obj/item/projectile/bullet/weakbullet //beanbag, heavy stamina damage
damage = 5
@@ -59,7 +63,7 @@
icon_state = "spark"
color = "#FFFF00"
-/obj/item/projectile/bullet/incendiary/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/bullet/incendiary/on_hit(atom/target, blocked = 0)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -92,7 +96,7 @@
stun = 8
hitsound = 'sound/effects/meteorimpact.ogg'
-/obj/item/projectile/bullet/meteorshot/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/bullet/meteorshot/on_hit(atom/target, blocked = 0)
. = ..()
if(istype(target, /atom/movable))
var/atom/movable/M = target
@@ -107,7 +111,7 @@
/obj/item/projectile/bullet/mime
damage = 20
-/obj/item/projectile/bullet/mime/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/bullet/mime/on_hit(atom/target, blocked = 0)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -124,7 +128,7 @@
flags |= NOREACT
create_reagents(50)
-/obj/item/projectile/bullet/dart/on_hit(var/atom/target, var/blocked = 0, var/hit_zone)
+/obj/item/projectile/bullet/dart/on_hit(atom/target, blocked = 0, hit_zone)
var/deflect = 0
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -162,7 +166,7 @@
damage_type = TOX
weaken = 5
-/obj/item/projectile/bullet/neurotoxin/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/bullet/neurotoxin/on_hit(atom/target, blocked = 0)
if(isalien(target))
weaken = 0
nodamage = 1
diff --git a/code/modules/projectiles/projectile/energy.dm b/code/modules/projectiles/projectile/energy.dm
index 2cfe90da467..f8e6dbf479b 100644
--- a/code/modules/projectiles/projectile/energy.dm
+++ b/code/modules/projectiles/projectile/energy.dm
@@ -18,7 +18,7 @@
hitsound = 'sound/weapons/taserhit.ogg'
range = 7
-/obj/item/projectile/energy/electrode/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/energy/electrode/on_hit(atom/target, blocked = 0)
. = ..()
if(!ismob(target) || blocked >= 2) //Fully blocked by mob or collided with dense object - burst into sparks!
var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread
@@ -50,7 +50,7 @@
..()
SpinAnimation()
-/obj/item/projectile/energy/net/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/energy/net/on_hit(atom/target, blocked = 0)
if(isliving(target) && !locate(/obj/effect/nettingportal) in loc)
new/obj/effect/nettingportal(get_turf(target))
..()
@@ -97,7 +97,7 @@
hitsound = 'sound/weapons/taserhit.ogg'
range = 4
-/obj/item/projectile/energy/trap/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/energy/trap/on_hit(atom/target, blocked = 0)
if(!ismob(target) || blocked >= 2) //Fully blocked by mob or collided with dense object - drop a trap
new/obj/item/weapon/restraints/legcuffs/beartrap/energy(get_turf(loc))
else if(iscarbon(target))
diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm
index 36e2edb9db3..7ad01293b93 100644
--- a/code/modules/projectiles/projectile/magic.dm
+++ b/code/modules/projectiles/projectile/magic.dm
@@ -10,7 +10,7 @@
name = "bolt of death"
icon_state = "pulse1_bl"
-/obj/item/projectile/magic/death/on_hit(var/target)
+/obj/item/projectile/magic/death/on_hit(target)
. = ..()
if(ismob(target))
var/mob/M = target
@@ -31,7 +31,7 @@
return
..()
-/obj/item/projectile/magic/fireball/on_hit(var/target)
+/obj/item/projectile/magic/fireball/on_hit(target)
. = ..()
var/turf/T = get_turf(target)
explosion(T, -1, 0, 2, 3, 0, flame_range = 2)
@@ -47,7 +47,7 @@
nodamage = 1
flag = "magic"
-/obj/item/projectile/magic/resurrection/on_hit(var/mob/living/carbon/target)
+/obj/item/projectile/magic/resurrection/on_hit(mob/living/carbon/target)
. = ..()
if(ismob(target))
var/old_stat = target.stat
@@ -73,7 +73,7 @@
var/inner_tele_radius = 0
var/outer_tele_radius = 6
-/obj/item/projectile/magic/teleport/on_hit(var/mob/target)
+/obj/item/projectile/magic/teleport/on_hit(mob/target)
. = ..()
var/teleammount = 0
var/teleloc = target
@@ -95,7 +95,7 @@
nodamage = 1
flag = "magic"
-/obj/item/projectile/magic/door/on_hit(var/atom/target)
+/obj/item/projectile/magic/door/on_hit(atom/target)
. = ..()
var/atom/T = target.loc
if(isturf(target) && target.density)
@@ -103,7 +103,7 @@
else if (isturf(T) && T.density)
CreateDoor(T)
-/obj/item/projectile/magic/door/proc/CreateDoor(var/turf/T)
+/obj/item/projectile/magic/door/proc/CreateDoor(turf/T)
new /obj/structure/mineral_door/wood(T)
T.ChangeTurf(/turf/simulated/floor/plating)
@@ -116,7 +116,7 @@
nodamage = 1
flag = "magic"
-/obj/item/projectile/magic/change/on_hit(var/atom/change)
+/obj/item/projectile/magic/change/on_hit(atom/change)
. = ..()
wabbajack(change)
@@ -259,7 +259,7 @@
nodamage = 1
flag = "magic"
-/obj/item/projectile/magic/animate/Bump(var/atom/change)
+/obj/item/projectile/magic/animate/Bump(atom/change)
..()
if(istype(change, /obj/item) || istype(change, /obj/structure) && !is_type_in_list(change, protected_objects))
if(istype(change, /obj/structure/closet/statue))
diff --git a/code/modules/projectiles/projectile/reusable.dm b/code/modules/projectiles/projectile/reusable.dm
index 414be55b31a..321ae1c6b42 100644
--- a/code/modules/projectiles/projectile/reusable.dm
+++ b/code/modules/projectiles/projectile/reusable.dm
@@ -3,7 +3,7 @@
desc = "How do you even reuse a bullet?"
var/obj/item/ammo_casing/caseless/ammo_type = /obj/item/ammo_casing/caseless/
-/obj/item/projectile/bullet/reusable/on_hit(var/atom/target, var/blocked = 0)
+/obj/item/projectile/bullet/reusable/on_hit(atom/target, blocked = 0)
. = ..()
if (src.contents.len)
var/obj/content
diff --git a/code/modules/projectiles/projectile/special.dm b/code/modules/projectiles/projectile/special.dm
index 80e24ad2fba..ed67992617a 100644
--- a/code/modules/projectiles/projectile/special.dm
+++ b/code/modules/projectiles/projectile/special.dm
@@ -177,7 +177,7 @@ obj/item/projectile/kinetic/New()
/obj/item/ammo_casing/energy/wormhole/New(var/obj/item/weapon/gun/energy/wormhole_projector/wh)
gun = wh
-/obj/item/projectile/beam/wormhole/on_hit(var/atom/target)
+/obj/item/projectile/beam/wormhole/on_hit(atom/target)
if(ismob(target))
return ..()
if(!gun)
@@ -220,7 +220,7 @@ obj/item/projectile/kinetic/New()
range += 3
..()
-/obj/item/projectile/plasma/on_hit(var/atom/target)
+/obj/item/projectile/plasma/on_hit(atom/target)
if(istype(target, /turf/simulated/mineral))
var/turf/simulated/mineral/M = target
M.gets_drilled(firer)
diff --git a/code/modules/reagents/Chemistry-Colours.dm b/code/modules/reagents/Chemistry-Colours.dm
index 1378315276e..7251c9c25e1 100644
--- a/code/modules/reagents/Chemistry-Colours.dm
+++ b/code/modules/reagents/Chemistry-Colours.dm
@@ -1,5 +1,5 @@
-/proc/mix_color_from_reagents(var/list/reagent_list)
+/proc/mix_color_from_reagents(list/reagent_list)
if(!istype(reagent_list))
return
diff --git a/code/modules/reagents/Chemistry-Holder.dm b/code/modules/reagents/Chemistry-Holder.dm
index 0978a34f58f..e83acf03014 100644
--- a/code/modules/reagents/Chemistry-Holder.dm
+++ b/code/modules/reagents/Chemistry-Holder.dm
@@ -61,7 +61,7 @@ var/const/INGEST = 2
if(my_atom && my_atom.reagents == src)
my_atom.reagents = null
-/datum/reagents/proc/remove_any(var/amount=1)
+/datum/reagents/proc/remove_any(amount=1)
var/total_transfered = 0
var/current_list_element = 1
@@ -103,7 +103,7 @@ var/const/INGEST = 2
return the_id
-/datum/reagents/proc/trans_to(var/obj/target, var/amount=1, var/multiplier=1, var/preserve_data=1)//if preserve_data=0, the reagents data will be lost. Usefull if you use data for some strange stuff and don't want it to be transferred.
+/datum/reagents/proc/trans_to(obj/target, amount=1, multiplier=1, preserve_data=1)//if preserve_data=0, the reagents data will be lost. Usefull if you use data for some strange stuff and don't want it to be transferred.
if (!target )
return
var/datum/reagents/R
@@ -133,7 +133,7 @@ var/const/INGEST = 2
src.handle_reactions()
return amount
-/datum/reagents/proc/copy_to(var/obj/target, var/amount=1, var/multiplier=1, var/preserve_data=1)
+/datum/reagents/proc/copy_to(obj/target, amount=1, multiplier=1, preserve_data=1)
if(!target)
return
if(!target.reagents || src.total_volume<=0)
@@ -154,7 +154,7 @@ var/const/INGEST = 2
src.handle_reactions()
return amount
-/datum/reagents/proc/trans_id_to(var/obj/target, var/reagent, var/amount=1, var/preserve_data=1)//Not sure why this proc didn't exist before. It does now! /N
+/datum/reagents/proc/trans_id_to(obj/target, reagent, amount=1, preserve_data=1)//Not sure why this proc didn't exist before. It does now! /N
if (!target)
return
if (!target.reagents || src.total_volume<=0 || !src.get_reagent_amount(reagent))
@@ -211,7 +211,7 @@ var/const/INGEST = 2
return total_transfered
*/
-/datum/reagents/proc/metabolize(var/mob/M)
+/datum/reagents/proc/metabolize(mob/M)
if(M)
chem_temp = M.bodytemperature
handle_reactions()
@@ -270,12 +270,12 @@ var/const/INGEST = 2
R.on_tick()
return
-/datum/reagents/proc/conditional_update_move(var/atom/A, var/Running = 0)
+/datum/reagents/proc/conditional_update_move(atom/A, Running = 0)
for(var/datum/reagent/R in reagent_list)
R.on_move (A, Running)
update_total()
-/datum/reagents/proc/conditional_update(var/atom/A)
+/datum/reagents/proc/conditional_update(atom/A)
for(var/datum/reagent/R in reagent_list)
R.on_update (A)
update_total()
@@ -367,14 +367,14 @@ var/const/INGEST = 2
update_total()
return 0
-/datum/reagents/proc/isolate_reagent(var/reagent)
+/datum/reagents/proc/isolate_reagent(reagent)
for(var/A in reagent_list)
var/datum/reagent/R = A
if (R.id != reagent)
del_reagent(R.id)
update_total()
-/datum/reagents/proc/del_reagent(var/reagent)
+/datum/reagents/proc/del_reagent(reagent)
for(var/datum/reagent/R in reagent_list)
if (R.id == reagent)
if(istype(my_atom, /mob/living))
@@ -389,21 +389,21 @@ var/const/INGEST = 2
check_goreallyfast(my_atom)
return 1
-/datum/reagents/proc/check_ignoreslow(var/mob/M)
+/datum/reagents/proc/check_ignoreslow(mob/M)
if(istype(M, /mob))
if(M.reagents.has_reagent("morphine")||M.reagents.has_reagent("ephedrine"))
return 1
else
M.status_flags &= ~IGNORESLOWDOWN
-/datum/reagents/proc/check_gofast(var/mob/M)
+/datum/reagents/proc/check_gofast(mob/M)
if(istype(M, /mob))
if(M.reagents.has_reagent("unholywater")||M.reagents.has_reagent("nuka_cola"))
return 1
else
M.status_flags &= ~GOTTAGOFAST
-/datum/reagents/proc/check_goreallyfast(var/mob/M)
+/datum/reagents/proc/check_goreallyfast(mob/M)
if(istype(M, /mob))
if(M.reagents.has_reagent("methamphetamine"))
return 1
@@ -425,7 +425,7 @@ var/const/INGEST = 2
del_reagent(R.id)
return 0
-/datum/reagents/proc/reaction(var/atom/A, var/method=TOUCH, var/volume_modifier=1,var/show_message=1)
+/datum/reagents/proc/reaction(atom/A, method=TOUCH, volume_modifier=1,show_message=1)
if(isliving(A))
var/mob/living/L = A
var/touch_protection = 0
@@ -440,7 +440,7 @@ var/const/INGEST = 2
for(var/datum/reagent/R in reagent_list)
R.reaction_obj(A, R.volume*volume_modifier, show_message)
-/datum/reagents/proc/add_reagent(var/reagent, var/amount, var/list/data=null, var/reagtemp = 300, var/no_react = 0)
+/datum/reagents/proc/add_reagent(reagent, amount, list/data=null, reagtemp = 300, no_react = 0)
if(!isnum(amount) || !amount)
return 1
update_total()
@@ -483,12 +483,12 @@ var/const/INGEST = 2
return 1
-/datum/reagents/proc/add_reagent_list(var/list/list_reagents, var/list/data=null) // Like add_reagent but you can enter a list. Format it like this: list("toxin" = 10, "beer" = 15)
+/datum/reagents/proc/add_reagent_list(list/list_reagents, list/data=null) // Like add_reagent but you can enter a list. Format it like this: list("toxin" = 10, "beer" = 15)
for(var/r_id in list_reagents)
var/amt = list_reagents[r_id]
add_reagent(r_id, amt, data)
-/datum/reagents/proc/remove_reagent(var/reagent, var/amount, var/safety)//Added a safety check for the trans_id_to
+/datum/reagents/proc/remove_reagent(reagent, amount, safety)//Added a safety check for the trans_id_to
if(!isnum(amount)) return 1
@@ -504,7 +504,7 @@ var/const/INGEST = 2
return 1
-/datum/reagents/proc/has_reagent(var/reagent, var/amount = -1)
+/datum/reagents/proc/has_reagent(reagent, amount = -1)
for(var/A in reagent_list)
var/datum/reagent/R = A
@@ -516,7 +516,7 @@ var/const/INGEST = 2
return 0
-/datum/reagents/proc/get_reagent_amount(var/reagent)
+/datum/reagents/proc/get_reagent_amount(reagent)
for(var/A in reagent_list)
var/datum/reagent/R = A
if (R.id == reagent)
@@ -532,7 +532,7 @@ var/const/INGEST = 2
return res
-/datum/reagents/proc/remove_all_type(var/reagent_type, var/amount, var/strict = 0, var/safety = 1) // Removes all reagent of X type. @strict set to 1 determines whether the childs of the type are included.
+/datum/reagents/proc/remove_all_type(reagent_type, amount, strict = 0, safety = 1) // Removes all reagent of X type. @strict set to 1 determines whether the childs of the type are included.
if(!isnum(amount)) return 1
var/has_removed_reagent = 0
@@ -554,19 +554,19 @@ var/const/INGEST = 2
return has_removed_reagent
//two helper functions to preserve data across reactions (needed for xenoarch)
-/datum/reagents/proc/get_data(var/reagent_id)
+/datum/reagents/proc/get_data(reagent_id)
for(var/datum/reagent/D in reagent_list)
if(D.id == reagent_id)
//world << "proffering a data-carrying reagent ([reagent_id])"
return D.data
-/datum/reagents/proc/set_data(var/reagent_id, var/new_data)
+/datum/reagents/proc/set_data(reagent_id, new_data)
for(var/datum/reagent/D in reagent_list)
if(D.id == reagent_id)
//world << "reagent data set ([reagent_id])"
D.data = new_data
-/datum/reagents/proc/copy_data(var/datum/reagent/current_reagent)
+/datum/reagents/proc/copy_data(datum/reagent/current_reagent)
if (!current_reagent || !current_reagent.data) return null
if (!istype(current_reagent.data, /list)) return current_reagent.data
@@ -591,7 +591,7 @@ var/const/INGEST = 2
// Convenience proc to create a reagents holder for an atom
// Max vol is maximum volume of holder
-/atom/proc/create_reagents(var/max_vol)
+/atom/proc/create_reagents(max_vol)
if(reagents)
qdel(reagents)
reagents = new/datum/reagents(max_vol)
diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm
index 5c79572d938..8b42b95134d 100644
--- a/code/modules/reagents/Chemistry-Machinery.dm
+++ b/code/modules/reagents/Chemistry-Machinery.dm
@@ -71,7 +71,7 @@
*
* @return nothing
*/
-/obj/machinery/chem_dispenser/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/obj/machinery/chem_dispenser/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
if(stat & (BROKEN)) return
if(user.stat || user.restrained()) return
@@ -137,7 +137,7 @@
add_fingerprint(usr)
return 1 // update UIs attached to this object
-/obj/machinery/chem_dispenser/attackby(var/obj/item/weapon/reagent_containers/glass/B as obj, var/mob/user as mob, params)
+/obj/machinery/chem_dispenser/attackby(obj/item/weapon/reagent_containers/glass/B, mob/user, params)
if(isrobot(user))
return
@@ -160,13 +160,13 @@
icon_beaker.pixel_x = rand(-10,5)
overlays += icon_beaker
-/obj/machinery/chem_dispenser/attack_ai(mob/user as mob)
+/obj/machinery/chem_dispenser/attack_ai(mob/user)
return src.attack_hand(user)
-/obj/machinery/chem_dispenser/attack_paw(mob/user as mob)
+/obj/machinery/chem_dispenser/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/chem_dispenser/attack_hand(mob/user as mob)
+/obj/machinery/chem_dispenser/attack_hand(mob/user)
if(stat & BROKEN)
return
@@ -273,7 +273,7 @@
stat |= NOPOWER
-/obj/machinery/chem_master/attackby(var/obj/item/B as obj, var/mob/user as mob, params)
+/obj/machinery/chem_master/attackby(obj/item/B, mob/user, params)
if(default_unfasten_wrench(user, B))
return
@@ -475,13 +475,13 @@
src.updateUsrDialog()
return
-/obj/machinery/chem_master/attack_ai(mob/user as mob)
+/obj/machinery/chem_master/attack_ai(mob/user)
return src.attack_hand(user)
-/obj/machinery/chem_master/attack_paw(mob/user as mob)
+/obj/machinery/chem_master/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/chem_master/attack_hand(mob/user as mob)
+/obj/machinery/chem_master/attack_hand(mob/user)
if(stat & BROKEN)
return
@@ -556,7 +556,7 @@
popup.open(1)
return
-/obj/machinery/chem_master/proc/isgoodnumber(var/num)
+/obj/machinery/chem_master/proc/isgoodnumber(num)
if(isnum(num))
if(num > 200)
num = 200
@@ -589,7 +589,7 @@
component_parts += new /obj/item/weapon/reagent_containers/glass/beaker(null)
component_parts += new /obj/item/weapon/reagent_containers/glass/beaker(null)
-/obj/machinery/chem_master/constructable/attackby(var/obj/item/B as obj, var/mob/user as mob, params)
+/obj/machinery/chem_master/constructable/attackby(obj/item/B, mob/user, params)
if(default_deconstruction_screwdriver(user, "mixer0_nopower", "mixer0", B))
if(beaker)
@@ -665,7 +665,7 @@
overlays.Cut()
stat |= BROKEN
-/obj/machinery/computer/pandemic/proc/GetVirusByIndex(var/index)
+/obj/machinery/computer/pandemic/proc/GetVirusByIndex(index)
if(beaker && beaker.reagents)
if(beaker.reagents.reagent_list.len)
var/datum/reagent/blood/BL = locate() in beaker.reagents.reagent_list
@@ -675,7 +675,7 @@
return viruses[index]
return null
-/obj/machinery/computer/pandemic/proc/GetResistancesByIndex(var/index)
+/obj/machinery/computer/pandemic/proc/GetResistancesByIndex(index)
if(beaker && beaker.reagents)
if(beaker.reagents.reagent_list.len)
var/datum/reagent/blood/BL = locate() in beaker.reagents.reagent_list
@@ -685,13 +685,13 @@
return resistances[index]
return null
-/obj/machinery/computer/pandemic/proc/GetVirusTypeByIndex(var/index)
+/obj/machinery/computer/pandemic/proc/GetVirusTypeByIndex(index)
var/datum/disease/D = GetVirusByIndex(index)
if(D)
return D.GetDiseaseID()
return null
-/obj/machinery/computer/pandemic/proc/replicator_cooldown(var/waittime)
+/obj/machinery/computer/pandemic/proc/replicator_cooldown(waittime)
wait = 1
update_icon()
spawn(waittime)
@@ -816,7 +816,7 @@
src.add_fingerprint(usr)
return
-/obj/machinery/computer/pandemic/attack_hand(mob/user as mob)
+/obj/machinery/computer/pandemic/attack_hand(mob/user)
if(..())
return
user.set_machine(src)
@@ -914,7 +914,7 @@
return
-/obj/machinery/computer/pandemic/attackby(var/obj/I as obj, var/mob/user as mob, params)
+/obj/machinery/computer/pandemic/attackby(obj/I, mob/user, params)
if(istype(I, /obj/item/weapon/reagent_containers/glass))
if(stat & (NOPOWER|BROKEN)) return
if(src.beaker)
@@ -1043,7 +1043,7 @@
return
-/obj/machinery/reagentgrinder/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/reagentgrinder/attackby(obj/item/O, mob/user, params)
if(default_unfasten_wrench(user, O))
return
@@ -1101,17 +1101,17 @@
src.updateUsrDialog()
return 0
-/obj/machinery/reagentgrinder/attack_paw(mob/user as mob)
+/obj/machinery/reagentgrinder/attack_paw(mob/user)
return src.attack_hand(user)
-/obj/machinery/reagentgrinder/attack_ai(mob/user as mob)
+/obj/machinery/reagentgrinder/attack_ai(mob/user)
return 0
-/obj/machinery/reagentgrinder/attack_hand(mob/user as mob)
+/obj/machinery/reagentgrinder/attack_hand(mob/user)
user.set_machine(src)
interact(user)
-/obj/machinery/reagentgrinder/interact(mob/user as mob) // The microwave Menu
+/obj/machinery/reagentgrinder/interact(mob/user) // The microwave Menu
var/is_chamber_empty = 0
var/is_beaker_ready = 0
var/processing_chamber = ""
@@ -1200,28 +1200,28 @@
holdingitems = list()
updateUsrDialog()
-/obj/machinery/reagentgrinder/proc/is_allowed(var/obj/item/weapon/reagent_containers/O)
+/obj/machinery/reagentgrinder/proc/is_allowed(obj/item/weapon/reagent_containers/O)
for (var/i in blend_items)
if(istype(O, i))
return 1
return 0
-/obj/machinery/reagentgrinder/proc/get_allowed_by_id(var/obj/item/O)
+/obj/machinery/reagentgrinder/proc/get_allowed_by_id(obj/item/O)
for (var/i in blend_items)
if (istype(O, i))
return blend_items[i]
-/obj/machinery/reagentgrinder/proc/get_allowed_snack_by_id(var/obj/item/weapon/reagent_containers/food/snacks/O)
+/obj/machinery/reagentgrinder/proc/get_allowed_snack_by_id(obj/item/weapon/reagent_containers/food/snacks/O)
for(var/i in blend_items)
if(istype(O, i))
return blend_items[i]
-/obj/machinery/reagentgrinder/proc/get_allowed_juice_by_id(var/obj/item/weapon/reagent_containers/food/snacks/O)
+/obj/machinery/reagentgrinder/proc/get_allowed_juice_by_id(obj/item/weapon/reagent_containers/food/snacks/O)
for(var/i in juice_items)
if(istype(O, i))
return juice_items[i]
-/obj/machinery/reagentgrinder/proc/get_grownweapon_amount(var/obj/item/weapon/grown/O)
+/obj/machinery/reagentgrinder/proc/get_grownweapon_amount(obj/item/weapon/grown/O)
if (!istype(O))
return 5
else if (O.potency == -1)
@@ -1229,7 +1229,7 @@
else
return round(O.potency)
-/obj/machinery/reagentgrinder/proc/get_juice_amount(var/obj/item/weapon/reagent_containers/food/snacks/grown/O)
+/obj/machinery/reagentgrinder/proc/get_juice_amount(obj/item/weapon/reagent_containers/food/snacks/grown/O)
if (!istype(O))
return 5
else if (O.potency == -1)
@@ -1237,7 +1237,7 @@
else
return round(5*sqrt(O.potency))
-/obj/machinery/reagentgrinder/proc/remove_object(var/obj/item/O)
+/obj/machinery/reagentgrinder/proc/remove_object(obj/item/O)
holdingitems -= O
qdel(O)
@@ -1446,7 +1446,7 @@
stat |= NOPOWER
SSnano.update_uis(src)
-/obj/machinery/chem_heater/attackby(var/obj/item/I as obj, var/mob/user as mob, params)
+/obj/machinery/chem_heater/attackby(obj/item/I, mob/user, params)
if(isrobot(user))
return
@@ -1474,7 +1474,7 @@
default_deconstruction_crowbar(I)
return 1
-/obj/machinery/chem_heater/attack_hand(var/mob/user as mob)
+/obj/machinery/chem_heater/attack_hand(mob/user)
ui_interact(user)
/obj/machinery/chem_heater/Topic(href, href_list)
@@ -1499,7 +1499,7 @@
eject_beaker()
. = 0 //updated in eject_beaker() already
-/obj/machinery/chem_heater/ui_interact(var/mob/user, ui_key = "main", var/datum/nanoui/ui = null)
+/obj/machinery/chem_heater/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
if(user.stat || user.restrained()) return
ui = SSnano.push_open_or_new_ui(user, src, ui_key, ui, "chem_heater.tmpl", "ChemHeater", 350, 270, 0)
@@ -1536,7 +1536,7 @@
uiname = "Soda Dispenser"
dispensable_reagents = list("water","ice","coffee","cream","tea","icetea","cola","spacemountainwind","dr_gibb","space_up","tonic","sodawater","lemon_lime","sugar","orangejuice","limejuice","tomatojuice")
-/obj/machinery/chem_dispenser/drinks/attackby(var/obj/item/O as obj, var/mob/user as mob)
+/obj/machinery/chem_dispenser/drinks/attackby(obj/item/O, mob/user)
if(default_unfasten_wrench(user, O))
return
diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm
index 5fe6dc7e8fa..c89a5d434eb 100644
--- a/code/modules/reagents/Chemistry-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents.dm
@@ -34,7 +34,7 @@
..()
holder = null
-/datum/reagent/proc/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume, var/show_message = 1, var/touch_protection = 0)
+/datum/reagent/proc/reaction_mob(mob/living/M, method=TOUCH, volume, show_message = 1, touch_protection = 0)
if(!istype(M))
return 0
var/datum/reagent/self = src
@@ -48,15 +48,15 @@
M.reagents.add_reagent(self.id, amount)
return 1
-/datum/reagent/proc/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/proc/reaction_obj(obj/O, volume)
src = null
return
-/datum/reagent/proc/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/proc/reaction_turf(turf/T, volume)
src = null
return
-/datum/reagent/proc/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/proc/on_mob_life(mob/living/M)
current_cycle++
if(!istype(M, /mob/living))
return //Noticed runtime errors from facid trying to damage ghosts, this should fix. --NEO
@@ -67,52 +67,52 @@
/datum/reagent/proc/on_mob_delete(mob/M)
return
-/datum/reagent/proc/on_move(var/mob/M)
+/datum/reagent/proc/on_move(mob/M)
return
// Called after add_reagents creates a new reagent.
-/datum/reagent/proc/on_new(var/data)
+/datum/reagent/proc/on_new(data)
return
// Called when two reagents of the same are mixing.
-/datum/reagent/proc/on_merge(var/data)
+/datum/reagent/proc/on_merge(data)
return
-/datum/reagent/proc/on_update(var/atom/A)
+/datum/reagent/proc/on_update(atom/A)
return
// Called every time reagent containers process.
-/datum/reagent/proc/on_tick(var/data)
+/datum/reagent/proc/on_tick(data)
return
// Called when the reagent container is hit by an explosion
-/datum/reagent/proc/on_ex_act(var/severity)
+/datum/reagent/proc/on_ex_act(severity)
return
// Called if the reagent has passed the overdose threshold and is set to be triggering overdose effects
-/datum/reagent/proc/overdose_process(var/mob/living/M as mob)
+/datum/reagent/proc/overdose_process(mob/living/M)
return
-/datum/reagent/proc/overdose_start(var/mob/living/M as mob)
+/datum/reagent/proc/overdose_start(mob/living/M)
M << "You feel like you took too much of [name]!"
return
-/datum/reagent/proc/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/proc/addiction_act_stage1(mob/living/M)
if(prob(30))
M << "You feel like some [name] right about now."
return
-/datum/reagent/proc/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/proc/addiction_act_stage2(mob/living/M)
if(prob(30))
M << "You feel like you need [name]. You just can't get enough."
return
-/datum/reagent/proc/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/proc/addiction_act_stage3(mob/living/M)
if(prob(30))
M << "You have an intense craving for [name]."
return
-/datum/reagent/proc/addiction_act_stage4(var/mob/living/M as mob)
+/datum/reagent/proc/addiction_act_stage4(mob/living/M)
if(prob(30))
M << "You're not feeling good at all! You really need some [name]."
return
diff --git a/code/modules/reagents/Chemistry-Reagents/Blob-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Blob-Reagents.dm
index 19826ce0d21..d181130314c 100644
--- a/code/modules/reagents/Chemistry-Reagents/Blob-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Blob-Reagents.dm
@@ -11,7 +11,7 @@
color = "#B68D00"
message = "The blob splashes you with burning oil"
-/datum/reagent/blob/boiling_oil/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/boiling_oil/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(15*ratio, BURN)
@@ -27,7 +27,7 @@
color = "#008000"
message_living = ", and you feel sick and nauseated"
-/datum/reagent/blob/toxic_goop/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/toxic_goop/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(20*ratio, TOX)
@@ -39,7 +39,7 @@
color = "#FF4C4C"
message_living = ", and you feel your skin ripping and tearing off"
-/datum/reagent/blob/skin_ripper/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/skin_ripper/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(20*ratio, BRUTE)
@@ -55,7 +55,7 @@
color = "#7F0000"
message_living = ", and you feel your skin char and melt"
-/datum/reagent/blob/skin_melter/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/skin_melter/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(10*ratio, BRUTE)
@@ -72,7 +72,7 @@
color = "#00FFC5"
message_living = ", and your lungs feel heavy and weak"
-/datum/reagent/blob/lung_destroying_toxin/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/lung_destroying_toxin/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(20* ratio, OXY)
@@ -88,7 +88,7 @@
color = "#00EE00"
message_living = ", and your skin feels papery and everything hurts"
-/datum/reagent/blob/radioactive_liquid/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/radioactive_liquid/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(10*ratio, BRUTE)
@@ -108,7 +108,7 @@
color = "#61407E"
message = "You feel a thrum as the blob strikes you, and everything flies at you"
-/datum/reagent/blob/dark_matter/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/dark_matter/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(15*ratio, BRUTE)
@@ -122,7 +122,7 @@
color = "#808000"
message = "The blob slams into you, and sends you flying"
-/datum/reagent/blob/b_sorium/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/b_sorium/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.apply_damage(15*ratio, BRUTE)
@@ -136,7 +136,7 @@
color = "#FFA500"
message = "The blob strikes you, and its tendrils explode"
-/datum/reagent/blob/explosive/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/explosive/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
if(prob(75*ratio))
@@ -150,7 +150,7 @@
message = "The blob squirts something at you"
message_living = ", and you feel great"
-/datum/reagent/blob/omnizine/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/omnizine/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.reagents.add_reagent("omnizine", 11*ratio)
@@ -163,7 +163,7 @@
message = "The blob squirts something at you"
message_living = ", and you feel funny"
-/datum/reagent/blob/spacedrugs/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/blob/spacedrugs/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
var/ratio = volume/25
M.hallucination += 20*ratio
@@ -171,7 +171,7 @@
M.apply_damage(10*ratio, TOX)
-/datum/reagent/blob/proc/reagent_vortex(var/mob/living/M as mob, var/setting_type)
+/datum/reagent/blob/proc/reagent_vortex(mob/living/M, setting_type)
var/turf/pull = get_turf(M)
for(var/atom/movable/X in range(4,pull))
if(istype(X, /atom/movable))
@@ -184,7 +184,7 @@
else
X.throw_at(pull)
-/datum/reagent/blob/proc/send_message(var/mob/living/M as mob)
+/datum/reagent/blob/proc/send_message(mob/living/M)
var/totalmessage = message
if(message_living && !issilicon(M))
totalmessage += message_living
diff --git a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Alcohols.dm b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Alcohols.dm
index 7a0b91da733..df637f4eab8 100644
--- a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Alcohols.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Alcohols.dm
@@ -21,7 +21,7 @@
nutriment_factor = 0
var/boozepwr = 10 //lower numbers mean the booze will have an effect faster.
-/datum/reagent/consumable/ethanol/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/on_mob_life(mob/living/M)
M.jitteriness = max(M.jitteriness-5,0)
if(current_cycle >= boozepwr)
if (!M.slurring) M.slurring = 1
@@ -34,7 +34,7 @@
M.adjustToxLoss(2)
..()
return
-/datum/reagent/consumable/ethanol/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/consumable/ethanol/reaction_obj(obj/O, volume)
if(istype(O,/obj/item/weapon/paper))
var/obj/item/weapon/paper/paperaffected = O
paperaffected.clearpaper()
@@ -48,7 +48,7 @@
usr << "It wasn't enough..."
return
-/datum/reagent/consumable/ethanol/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)//Splashing people with ethanol isn't quite as good as fuel.
+/datum/reagent/consumable/ethanol/reaction_mob(mob/living/M, method=TOUCH, volume)//Splashing people with ethanol isn't quite as good as fuel.
if(!istype(M, /mob/living))
return
if(method == TOUCH)
@@ -76,7 +76,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 45
-/datum/reagent/consumable/ethanol/kahlua/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/kahlua/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = max(0,M.sleeping-2)
@@ -99,7 +99,7 @@
nutriment_factor = 1 * REAGENTS_METABOLISM
boozepwr = 35
-/datum/reagent/consumable/ethanol/thirteenloko/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/thirteenloko/on_mob_life(mob/living/M)
M.drowsyness = max(0,M.drowsyness-7)
M.sleeping = max(0,M.sleeping-2)
if (M.bodytemperature > 310)
@@ -115,7 +115,7 @@
color = "#0064C8" // rgb: 0, 100, 200
boozepwr = 35
-/datum/reagent/consumable/ethanol/vodka/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/vodka/on_mob_life(mob/living/M)
M.radiation = max(M.radiation-2,0)
..()
return
@@ -128,7 +128,7 @@
nutriment_factor = 2 * REAGENTS_METABOLISM
boozepwr = 55
-/datum/reagent/consumable/ethanol/bilk/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/bilk/on_mob_life(mob/living/M)
if(M.getBruteLoss() && prob(10))
M.heal_organ_damage(1,0)
..()
@@ -141,7 +141,7 @@
color = "#666340" // rgb: 102, 99, 64
boozepwr = 15
-/datum/reagent/consumable/ethanol/threemileisland/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/threemileisland/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 50)
..()
return
@@ -314,7 +314,7 @@
boozepwr = 25
metabolization_rate = 0.8
-/datum/reagent/consumable/ethanol/beepsky_smash/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/beepsky_smash/on_mob_life(mob/living/M)
M.Stun(1)
..()
return
@@ -389,7 +389,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 15
-/datum/reagent/consumable/ethanol/manhattan_proj/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/manhattan_proj/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 30)
..()
return
@@ -408,7 +408,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 25
-/datum/reagent/consumable/ethanol/antifreeze/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/antifreeze/on_mob_life(mob/living/M)
if (M.bodytemperature < 330)
M.bodytemperature = min(330, M.bodytemperature + (20 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
..()
@@ -470,7 +470,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 35
-/datum/reagent/consumable/ethanol/sbiten/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/sbiten/on_mob_life(mob/living/M)
if (M.bodytemperature < 360)
M.bodytemperature = min(360, M.bodytemperature + (50 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
..()
@@ -505,7 +505,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 55
-/datum/reagent/consumable/ethanol/iced_beer/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/iced_beer/on_mob_life(mob/living/M)
if(M.bodytemperature > 270)
M.bodytemperature = max(270, M.bodytemperature - (20 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
..()
@@ -597,7 +597,7 @@
color = "#FFFF91" // rgb: 255, 255, 140
boozepwr = 25
-/datum/reagent/consumable/ethanol/bananahonk/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/bananahonk/on_mob_life(mob/living/M)
if( ( istype(M, /mob/living/carbon/human) && M.job in list("Clown") ) || istype(M, /mob/living/carbon/monkey) )
M.heal_organ_damage(1,1)
..()
@@ -611,7 +611,7 @@
color = "#664300" // rgb: 102, 67, 0
boozepwr = 15
-/datum/reagent/consumable/ethanol/silencer/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ethanol/silencer/on_mob_life(mob/living/M)
if(istype(M, /mob/living/carbon/human) && M.job in list("Mime"))
M.heal_organ_damage(1,1)
..()
diff --git a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Drinks.dm b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Drinks.dm
index 7ef486912ea..89c9a9a54c4 100644
--- a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Drinks.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Drink-Reagents/Drinks.dm
@@ -10,7 +10,7 @@
description = "Both delicious AND rich in Vitamin C, what more do you need?"
color = "#E78108" // rgb: 231, 129, 8
-/datum/reagent/consumable/orangejuice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/orangejuice/on_mob_life(mob/living/M)
if(M.getOxyLoss() && prob(30))
M.adjustOxyLoss(-1)
..()
@@ -22,7 +22,7 @@
description = "Tomatoes made into juice. What a waste of big, juicy tomatoes, huh?"
color = "#731008" // rgb: 115, 16, 8
-/datum/reagent/consumable/tomatojuice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/tomatojuice/on_mob_life(mob/living/M)
if(M.getFireLoss() && prob(20))
M.heal_organ_damage(0,1)
..()
@@ -34,7 +34,7 @@
description = "The sweet-sour juice of limes."
color = "#365E30" // rgb: 54, 94, 48
-/datum/reagent/consumable/limejuice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/limejuice/on_mob_life(mob/living/M)
if(M.getToxLoss() && prob(20))
M.adjustToxLoss(-1*REM)
..()
@@ -46,7 +46,7 @@
description = "It is just like a carrot but without crunching."
color = "#973800" // rgb: 151, 56, 0
-/datum/reagent/consumable/carrotjuice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/carrotjuice/on_mob_life(mob/living/M)
M.eye_blurry = max(M.eye_blurry-1 , 0)
M.eye_blind = max(M.eye_blind-1 , 0)
switch(current_cycle)
@@ -70,7 +70,7 @@
description = "A tasty juice blended from various kinds of very deadly and toxic berries."
color = "#863353" // rgb: 134, 51, 83
-/datum/reagent/consumable/poisonberryjuice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/poisonberryjuice/on_mob_life(mob/living/M)
M.adjustToxLoss(1)
..()
return
@@ -93,7 +93,7 @@
description = "The raw essence of a banana. HONK"
color = "#863333" // rgb: 175, 175, 0
-/datum/reagent/consumable/banana/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/banana/on_mob_life(mob/living/M)
if( ( istype(M, /mob/living/carbon/human) && M.job in list("Clown") ) || istype(M, /mob/living/carbon/monkey) )
M.heal_organ_damage(1,1)
..()
@@ -103,7 +103,7 @@
id = "nothing"
description = "Absolutely nothing."
-/datum/reagent/consumable/nothing/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/nothing/on_mob_life(mob/living/M)
if(istype(M, /mob/living/carbon/human) && M.job in list("Mime"))
M.heal_organ_damage(1,1)
..()
@@ -121,7 +121,7 @@
description = "An opaque white liquid produced by the mammary glands of mammals."
color = "#DFDFDF" // rgb: 223, 223, 223
-/datum/reagent/consumable/milk/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/milk/on_mob_life(mob/living/M)
if(M.getBruteLoss() && prob(20))
M.heal_organ_damage(1,0)
if(holder.has_reagent("capsaicin"))
@@ -135,7 +135,7 @@
description = "An opaque white liquid made from soybeans."
color = "#DFDFC7" // rgb: 223, 223, 199
-/datum/reagent/consumable/soymilk/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/soymilk/on_mob_life(mob/living/M)
if(M.getBruteLoss() && prob(20))
M.heal_organ_damage(1,0)
..()
@@ -147,7 +147,7 @@
description = "The fatty, still liquid part of milk. Why don't you mix this with sum scotch, eh?"
color = "#DFD7AF" // rgb: 223, 215, 175
-/datum/reagent/consumable/cream/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/cream/on_mob_life(mob/living/M)
if(M.getBruteLoss() && prob(20))
M.heal_organ_damage(1,0)
..()
@@ -161,11 +161,11 @@
nutriment_factor = 0
overdose_threshold = 80
-/datum/reagent/consumable/coffee/overdose_process(var/mob/living/M as mob)
+/datum/reagent/consumable/coffee/overdose_process(mob/living/M)
M.Jitter(5)
..()
-/datum/reagent/consumable/coffee/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/coffee/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = max(0,M.sleeping - 2)
@@ -182,7 +182,7 @@
color = "#101000" // rgb: 16, 16, 0
nutriment_factor = 0
-/datum/reagent/consumable/tea/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/tea/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-2)
M.drowsyness = max(0,M.drowsyness-1)
M.jitteriness = max(0,M.jitteriness-3)
@@ -201,7 +201,7 @@
color = "#102838" // rgb: 16, 40, 56
nutriment_factor = 0
-/datum/reagent/consumable/icecoffee/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/icecoffee/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = max(0,M.sleeping-2)
@@ -218,7 +218,7 @@
color = "#104038" // rgb: 16, 64, 56
nutriment_factor = 0
-/datum/reagent/consumable/icetea/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/icetea/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-2)
M.drowsyness = max(0,M.drowsyness-1)
M.sleeping = max(0,M.sleeping-2)
@@ -235,7 +235,7 @@
description = "A refreshing beverage."
color = "#100800" // rgb: 16, 8, 0
-/datum/reagent/consumable/space_cola/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/space_cola/on_mob_life(mob/living/M)
M.drowsyness = max(0,M.drowsyness-5)
if (M.bodytemperature > 310)//310 is the normal bodytemp. 310.055
M.bodytemperature = max(310, M.bodytemperature - (5 * TEMPERATURE_DAMAGE_COEFFICIENT))
@@ -248,7 +248,7 @@
description = "Cola, cola never changes."
color = "#100800" // rgb: 16, 8, 0
-/datum/reagent/consumable/nuka_cola/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/nuka_cola/on_mob_life(mob/living/M)
M.Jitter(20)
M.druggy = max(M.druggy, 30)
M.dizziness +=5
@@ -266,7 +266,7 @@
description = "Blows right through you like a space wind."
color = "#102000" // rgb: 16, 32, 0
-/datum/reagent/consumable/spacemountainwind/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/spacemountainwind/on_mob_life(mob/living/M)
M.drowsyness = max(0,M.drowsyness-7)
M.sleeping = max(0,M.sleeping-1)
if (M.bodytemperature > 310)
@@ -281,7 +281,7 @@
description = "A delicious blend of 42 different flavours"
color = "#102000" // rgb: 16, 32, 0
-/datum/reagent/consumable/dr_gibb/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/dr_gibb/on_mob_life(mob/living/M)
M.drowsyness = max(0,M.drowsyness-6)
if (M.bodytemperature > 310)
M.bodytemperature = max(310, M.bodytemperature - (5 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
@@ -294,7 +294,7 @@
description = "Tastes like a hull breach in your mouth."
color = "#00FF00" // rgb: 0, 255, 0
-/datum/reagent/consumable/space_up/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/space_up/on_mob_life(mob/living/M)
if (M.bodytemperature > 310)
M.bodytemperature = max(310, M.bodytemperature - (8 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
..()
@@ -306,7 +306,7 @@
id = "lemon_lime"
color = "#8CFF00" // rgb: 135, 255, 0
-/datum/reagent/consumable/lemon_lime/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/lemon_lime/on_mob_life(mob/living/M)
if (M.bodytemperature > 310)
M.bodytemperature = max(310, M.bodytemperature - (8 * TEMPERATURE_DAMAGE_COEFFICIENT)) //310 is the normal bodytemp. 310.055
..()
@@ -318,7 +318,7 @@
description = "A can of club soda. Why not make a scotch and soda?"
color = "#619494" // rgb: 97, 148, 148
-/datum/reagent/consumable/sodawater/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/sodawater/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
if (M.bodytemperature > 310)
@@ -332,7 +332,7 @@
description = "It tastes strange but at least the quinine keeps the Space Malaria at bay."
color = "#0064C8" // rgb: 0, 100, 200
-/datum/reagent/consumable/tonic/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/tonic/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = max(0,M.sleeping-2)
@@ -348,7 +348,7 @@
reagent_state = SOLID
color = "#619494" // rgb: 97, 148, 148
-/datum/reagent/consumable/ice/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/ice/on_mob_life(mob/living/M)
M.bodytemperature -= 5 * TEMPERATURE_DAMAGE_COEFFICIENT
..()
return
@@ -359,7 +359,7 @@
description = "A nice and tasty beverage while you are reading your hippie books."
color = "#664300" // rgb: 102, 67, 0
-/datum/reagent/consumable/soy_latte/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/soy_latte/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = 0
@@ -377,7 +377,7 @@
description = "A nice, strong and tasty beverage while you are reading."
color = "#664300" // rgb: 102, 67, 0
-/datum/reagent/consumable/cafe_latte/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/cafe_latte/on_mob_life(mob/living/M)
M.dizziness = max(0,M.dizziness-5)
M.drowsyness = max(0,M.drowsyness-3)
M.sleeping = 0
@@ -464,7 +464,7 @@
description = "Nuclear proliferation never tasted so good."
color = "#666300" // rgb: 102, 99, 0
-/datum/reagent/consumable/atomicbomb/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/atomicbomb/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 50)
M.confused = max(M.confused+2,0)
M.Dizzy(10)
@@ -486,7 +486,7 @@
description = "Whoah, this stuff looks volatile!"
color = "#664300" // rgb: 102, 67, 0
-/datum/reagent/consumable/gargle_blaster/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/gargle_blaster/on_mob_life(mob/living/M)
M.dizziness +=6
switch(current_cycle)
if(15 to 45)
@@ -509,7 +509,7 @@
description = "A strong neurotoxin that puts the subject into a death-like state."
color = "#2E2E61" // rgb: 46, 46, 97
-/datum/reagent/consumable/neurotoxin/on_mob_life(var/mob/living/carbon/M as mob)
+/datum/reagent/consumable/neurotoxin/on_mob_life(mob/living/carbon/M)
M.weakened = max(M.weakened, 3)
M.dizziness +=6
switch(current_cycle)
@@ -535,7 +535,7 @@
nutriment_factor = 0
metabolization_rate = 0.2 * REAGENTS_METABOLISM
-/datum/reagent/consumable/hippies_delight/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/hippies_delight/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 50)
switch(current_cycle)
if(1 to 5)
diff --git a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Food-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Food-Reagents.dm
index 64ac0c3278b..6ca5afcf052 100644
--- a/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Food-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Consumable-Reagents/Food-Reagents.dm
@@ -12,7 +12,7 @@
id = "consumable"
var/nutriment_factor = 1 * REAGENTS_METABOLISM
-/datum/reagent/consumable/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/on_mob_life(mob/living/M)
current_cycle++
M.nutrition += nutriment_factor
holder.remove_reagent(src.id, metabolization_rate)
@@ -25,7 +25,7 @@
nutriment_factor = 15 * REAGENTS_METABOLISM
color = "#664330" // rgb: 102, 67, 48
-/datum/reagent/consumable/nutriment/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/nutriment/on_mob_life(mob/living/M)
if(prob(50))
M.heal_organ_damage(1,0)
..()
@@ -38,7 +38,7 @@
reagent_state = SOLID
color = "#664330" // rgb: 102, 67, 48
-/datum/reagent/consumable/vitamin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/vitamin/on_mob_life(mob/living/M)
if(prob(50))
M.heal_organ_damage(1,1)
if(M.satiety < 600)
@@ -56,12 +56,12 @@
metabolization_rate = 2 * REAGENTS_METABOLISM
overdose_threshold = 200 // Hyperglycaemic shock
-/datum/reagent/consumable/sugar/overdose_start(var/mob/living/M as mob)
+/datum/reagent/consumable/sugar/overdose_start(mob/living/M)
M << "You go into hyperglycaemic shock! Lay off the twinkies!"
M.sleeping += 30
return
-/datum/reagent/consumable/sugar/overdose_process(var/mob/living/M as mob)
+/datum/reagent/consumable/sugar/overdose_process(mob/living/M)
M.sleeping += 3
..()
return
@@ -94,7 +94,7 @@
description = "This is what makes chilis hot."
color = "#B31008" // rgb: 179, 16, 8
-/datum/reagent/consumable/capsaicin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/capsaicin/on_mob_life(mob/living/M)
switch(current_cycle)
if(1 to 15)
M.bodytemperature += 5 * TEMPERATURE_DAMAGE_COEFFICIENT
@@ -123,7 +123,7 @@
description = "A special oil that noticably chills the body. Extraced from Icepeppers."
color = "#B31008" // rgb: 139, 166, 233
-/datum/reagent/consumable/frostoil/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/frostoil/on_mob_life(mob/living/M)
switch(current_cycle)
if(1 to 15)
M.bodytemperature -= 10 * TEMPERATURE_DAMAGE_COEFFICIENT
@@ -150,7 +150,7 @@
..()
return
-/datum/reagent/consumable/frostoil/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/consumable/frostoil/reaction_turf(turf/simulated/T, volume)
if(volume >= 5)
for(var/mob/living/simple_animal/slime/M in T)
M.adjustToxLoss(rand(15,30))
@@ -163,7 +163,7 @@
description = "A chemical agent used for self-defense and in police work."
color = "#B31008" // rgb: 179, 16, 8
-/datum/reagent/consumable/condensedcapsaicin/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/consumable/condensedcapsaicin/reaction_mob(mob/living/M, method=TOUCH, volume)
if(!istype(M, /mob/living/carbon/human) && !istype(M, /mob/living/carbon/monkey))
return
@@ -225,7 +225,7 @@
victim.Weaken(5)
victim.drop_item()
-/datum/reagent/consumable/condensedcapsaicin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/condensedcapsaicin/on_mob_life(mob/living/M)
if(prob(5))
M.visible_message("[M] [pick("dry heaves!","coughs!","splutters!")]")
..()
@@ -260,7 +260,7 @@
nutriment_factor = 3 * REAGENTS_METABOLISM
color = "#403010" // rgb: 64, 48, 16
-/datum/reagent/consumable/hot_coco/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/hot_coco/on_mob_life(mob/living/M)
if (M.bodytemperature < 310)//310 is the normal bodytemp. 310.055
M.bodytemperature = min(310, M.bodytemperature + (5 * TEMPERATURE_DAMAGE_COEFFICIENT))
..()
@@ -273,7 +273,7 @@
color = "#E700E7" // rgb: 231, 0, 231
metabolization_rate = 0.2 * REAGENTS_METABOLISM
-/datum/reagent/mushroomhallucinogen/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/mushroomhallucinogen/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 30)
switch(current_cycle)
if(1 to 5)
@@ -307,7 +307,7 @@
description = "Multi-colored little bits of sugar, commonly found on donuts. Loved by cops."
color = "#FF00FF" // rgb: 255, 0, 255
-/datum/reagent/consumable/sprinkles/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/sprinkles/on_mob_life(mob/living/M)
if(istype(M, /mob/living/carbon/human) && M.job in list("Security Officer", "Head of Security", "Detective", "Warden"))
M.heal_organ_damage(1,1)
..()
@@ -321,7 +321,7 @@
nutriment_factor = 20 * REAGENTS_METABOLISM
color = "#302000" // rgb: 48, 32, 0
-/datum/reagent/consumable/cornoil/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/consumable/cornoil/reaction_turf(turf/simulated/T, volume)
if (!istype(T))
return
src = null
@@ -355,7 +355,7 @@
nutriment_factor = 5 * REAGENTS_METABOLISM
color = "#302000" // rgb: 48, 32, 0
-/datum/reagent/consumable/hot_ramen/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/hot_ramen/on_mob_life(mob/living/M)
if (M.bodytemperature < 310)//310 is the normal bodytemp. 310.055
M.bodytemperature = min(310, M.bodytemperature + (10 * TEMPERATURE_DAMAGE_COEFFICIENT))
..()
@@ -368,7 +368,7 @@
nutriment_factor = 5 * REAGENTS_METABOLISM
color = "#302000" // rgb: 48, 32, 0
-/datum/reagent/consumable/hell_ramen/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/hell_ramen/on_mob_life(mob/living/M)
M.bodytemperature += 10 * TEMPERATURE_DAMAGE_COEFFICIENT
..()
return
@@ -380,7 +380,7 @@
reagent_state = SOLID
color = "#FFFFFF" // rgb: 0, 0, 0
-/datum/reagent/consumable/flour/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/consumable/flour/reaction_turf(turf/T, volume)
src = null
if(!istype(T, /turf/space))
var/obj/effect/decal/cleanable/reagentdecal = new/obj/effect/decal/cleanable/flour(T)
@@ -432,7 +432,7 @@
description = "Decays into sugar."
color = "#C8A5DC"
-/datum/reagent/consumable/corn_syrup/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/consumable/corn_syrup/on_mob_life(mob/living/M)
M.reagents.add_reagent("sugar", 3)
M.reagents.remove_reagent("corn_syrup", 1)
..()
diff --git a/code/modules/reagents/Chemistry-Reagents/Drug-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Drug-Reagents.dm
index c21cdf68b33..a4854c28153 100644
--- a/code/modules/reagents/Chemistry-Reagents/Drug-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Drug-Reagents.dm
@@ -12,7 +12,7 @@
color = "#60A584" // rgb: 96, 165, 132
overdose_threshold = 30
-/datum/reagent/drug/space_drugs/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/space_drugs/on_mob_life(mob/living/M)
M.druggy = max(M.druggy, 15)
if(isturf(M.loc) && !istype(M.loc, /turf/space))
if(M.canmove)
@@ -22,11 +22,11 @@
..()
return
-/datum/reagent/drug/space_drugs/overdose_start(var/mob/living/M as mob)
+/datum/reagent/drug/space_drugs/overdose_start(mob/living/M)
M << "You start tripping hard!"
-/datum/reagent/drug/space_drugs/overdose_process(var/mob/living/M as mob)
+/datum/reagent/drug/space_drugs/overdose_process(mob/living/M)
if(M.hallucination < volume && prob(20))
M.hallucination += 5
..()
@@ -40,7 +40,7 @@
color = "#60A584" // rgb: 96, 165, 132
addiction_threshold = 30
-/datum/reagent/drug/nicotine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/nicotine/on_mob_life(mob/living/M)
if(prob(1))
var/smoke_message = pick("You feel relaxed.", "You feel calmed.","You feel alert.","You feel rugged.")
M << "[smoke_message]"
@@ -57,7 +57,7 @@
overdose_threshold = 20
addiction_threshold = 10
-/datum/reagent/drug/crank/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/crank/on_mob_life(mob/living/M)
var/high_message = pick("You feel jittery.", "You feel like you gotta go fast.", "You feel like you need to step it up.")
if(prob(5))
M << "[high_message]"
@@ -66,25 +66,25 @@
M.AdjustWeakened(-1)
..()
-/datum/reagent/drug/crank/overdose_process(var/mob/living/M as mob)
+/datum/reagent/drug/crank/overdose_process(mob/living/M)
M.adjustBrainLoss(2*REM)
M.adjustToxLoss(2*REM)
M.adjustBruteLoss(2*REM)
..()
-/datum/reagent/drug/crank/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/drug/crank/addiction_act_stage1(mob/living/M)
M.adjustBrainLoss(5*REM)
..()
-/datum/reagent/drug/crank/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/drug/crank/addiction_act_stage2(mob/living/M)
M.adjustToxLoss(5*REM)
..()
-/datum/reagent/drug/crank/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/drug/crank/addiction_act_stage3(mob/living/M)
M.adjustBruteLoss(5*REM)
..()
-/datum/reagent/drug/crank/addiction_act_stage4(var/mob/living/M as mob)
+/datum/reagent/drug/crank/addiction_act_stage4(mob/living/M)
M.adjustBrainLoss(5*REM)
M.adjustToxLoss(5*REM)
M.adjustBruteLoss(5*REM)
@@ -100,38 +100,38 @@
addiction_threshold = 15
-/datum/reagent/drug/krokodil/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/krokodil/on_mob_life(mob/living/M)
var/high_message = pick("You feel calm.", "You feel collected.", "You feel like you need to relax.")
if(prob(5))
M << "[high_message]"
..()
return
-/datum/reagent/drug/krokodil/overdose_process(var/mob/living/M as mob)
+/datum/reagent/drug/krokodil/overdose_process(mob/living/M)
M.adjustBrainLoss(0.25*REM)
M.adjustToxLoss(0.25*REM)
..()
return
-/datum/reagent/drug/krokodil/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/drug/krokodil/addiction_act_stage1(mob/living/M)
M.adjustBrainLoss(2*REM)
M.adjustToxLoss(2*REM)
..()
return
-/datum/reagent/krokodil/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/krokodil/addiction_act_stage2(mob/living/M)
if(prob(25))
M << "Your skin feels loose..."
..()
return
-/datum/reagent/drug/krokodil/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/drug/krokodil/addiction_act_stage3(mob/living/M)
if(prob(25))
M << "Your skin starts to peel away..."
M.adjustBruteLoss(3*REM)
..()
return
-/datum/reagent/drug/krokodil/addiction_act_stage4(var/mob/living/carbon/human/M as mob)
+/datum/reagent/drug/krokodil/addiction_act_stage4(mob/living/carbon/human/M)
if(!istype(M.dna.species, /datum/species/cosmetic_zombie))
M << "Your skin falls off easily!"
M.adjustBruteLoss(50*REM) // holy shit your skin just FELL THE FUCK OFF
@@ -151,7 +151,7 @@
addiction_threshold = 10
metabolization_rate = 0.75 * REAGENTS_METABOLISM
-/datum/reagent/drug/methamphetamine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/methamphetamine/on_mob_life(mob/living/M)
var/high_message = pick("You feel hyper.", "You feel like you need to go faster.", "You feel like you can run the world.")
if(prob(5))
M << "[high_message]"
@@ -167,7 +167,7 @@
..()
return
-/datum/reagent/drug/methamphetamine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/drug/methamphetamine/overdose_process(mob/living/M)
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 4, i++)
step(M, pick(cardinal))
@@ -183,20 +183,20 @@
M.adjustBrainLoss(pick(0.5, 0.6, 0.7, 0.8, 0.9, 1))
return
-/datum/reagent/drug/methamphetamine/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/drug/methamphetamine/addiction_act_stage1(mob/living/M)
M.Jitter(5)
if(prob(20))
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/methamphetamine/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/drug/methamphetamine/addiction_act_stage2(mob/living/M)
M.Jitter(10)
M.Dizzy(10)
if(prob(30))
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/methamphetamine/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/drug/methamphetamine/addiction_act_stage3(mob/living/M)
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 4, i++)
step(M, pick(cardinal))
@@ -206,7 +206,7 @@
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/methamphetamine/addiction_act_stage4(var/mob/living/carbon/human/M as mob)
+/datum/reagent/drug/methamphetamine/addiction_act_stage4(mob/living/carbon/human/M)
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 8, i++)
step(M, pick(cardinal))
@@ -228,7 +228,7 @@
addiction_threshold = 10
-/datum/reagent/drug/bath_salts/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/bath_salts/on_mob_life(mob/living/M)
var/high_message = pick("You feel amped up.", "You feel ready.", "You feel like you can push it to the limit.")
if(prob(5))
M << "[high_message]"
@@ -245,7 +245,7 @@
..()
return
-/datum/reagent/drug/bath_salts/overdose_process(var/mob/living/M as mob)
+/datum/reagent/drug/bath_salts/overdose_process(mob/living/M)
M.hallucination += 10
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 8, i++)
@@ -259,7 +259,7 @@
..()
return
-/datum/reagent/drug/bath_salts/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/drug/bath_salts/addiction_act_stage1(mob/living/M)
M.hallucination += 10
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 8, i++)
@@ -270,7 +270,7 @@
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/bath_salts/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/drug/bath_salts/addiction_act_stage2(mob/living/M)
M.hallucination += 20
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 8, i++)
@@ -282,7 +282,7 @@
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/bath_salts/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/drug/bath_salts/addiction_act_stage3(mob/living/M)
M.hallucination += 30
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 12, i++)
@@ -294,7 +294,7 @@
M.emote(pick("twitch","drool","moan"))
..()
return
-/datum/reagent/drug/bath_salts/addiction_act_stage4(var/mob/living/carbon/human/M as mob)
+/datum/reagent/drug/bath_salts/addiction_act_stage4(mob/living/carbon/human/M)
M.hallucination += 40
if(M.canmove && !istype(M.loc, /atom/movable))
for(var/i = 0, i < 16, i++)
@@ -315,7 +315,7 @@
reagent_state = LIQUID
color = "#60A584" // rgb: 96, 165, 132
-/datum/reagent/drug/aranesp/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/drug/aranesp/on_mob_life(mob/living/M)
var/high_message = pick("You feel amped up.", "You feel ready.", "You feel like you can push it to the limit.")
if(prob(5))
M << "[high_message]"
diff --git a/code/modules/reagents/Chemistry-Reagents/Medicine-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Medicine-Reagents.dm
index f0e16a9924c..38290e992d5 100644
--- a/code/modules/reagents/Chemistry-Reagents/Medicine-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Medicine-Reagents.dm
@@ -9,7 +9,7 @@
name = "Medicine"
id = "medicine"
-/datum/reagent/medicine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/on_mob_life(mob/living/M)
current_cycle++
holder.remove_reagent(src.id, metabolization_rate / M.metabolism_efficiency) //medicine reagents stay longer if you have a better metabolism
@@ -19,7 +19,7 @@
description = "Leporazine can be use to stabilize an individuals body temperature."
color = "#C8A5DC" // rgb: 200, 165, 220
-/datum/reagent/medicine/leporazine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/leporazine/on_mob_life(mob/living/M)
if(M.bodytemperature > 310)
M.bodytemperature = max(310, M.bodytemperature - (40 * TEMPERATURE_DAMAGE_COEFFICIENT))
else if(M.bodytemperature < 311)
@@ -32,7 +32,7 @@
description = "It's magic. We don't have to explain it."
color = "#C8A5DC" // rgb: 200, 165, 220
-/datum/reagent/medicine/adminordrazine/on_mob_life(var/mob/living/carbon/M as mob)
+/datum/reagent/medicine/adminordrazine/on_mob_life(mob/living/carbon/M)
M.reagents.remove_all_type(/datum/reagent/toxin, 5*REM, 0, 1)
M.setCloneLoss(0)
M.setOxyLoss(0)
@@ -76,7 +76,7 @@
description = "Synaptizine is used to treat various diseases."
color = "#C8A5DC" // rgb: 200, 165, 220
-/datum/reagent/medicine/synaptizine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/synaptizine/on_mob_life(mob/living/M)
M.drowsyness = max(M.drowsyness-5, 0)
M.AdjustParalysis(-1)
M.AdjustStunned(-1)
@@ -94,7 +94,7 @@
description = "Heals ear damage."
color = "#6600FF" // rgb: 100, 165, 255
-/datum/reagent/medicine/inacusiate/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/inacusiate/on_mob_life(mob/living/M)
M.setEarDamage(0,0)
..()
return
@@ -105,7 +105,7 @@
description = "A chemical mixture with almost magical healing powers. Its main limitation is that the targets body temperature must be under 170K for it to metabolise correctly."
color = "#0000C8"
-/datum/reagent/medicine/cryoxadone/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/cryoxadone/on_mob_life(mob/living/M)
if(M.stat != DEAD && M.bodytemperature < 270)
M.adjustCloneLoss(-4)
M.adjustOxyLoss(-10)
@@ -124,7 +124,7 @@
reagent_state = SOLID
color = "#669900" // rgb: 102, 153, 0
-/datum/reagent/medicine/rezadone/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/rezadone/on_mob_life(mob/living/M)
switch(current_cycle)
if(1 to 15)
M.adjustCloneLoss(-1)
@@ -163,7 +163,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/medicine/silver_sulfadiazine/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume, var/show_message = 1)
+/datum/reagent/medicine/silver_sulfadiazine/reaction_mob(mob/living/M, method=TOUCH, volume, show_message = 1)
if(iscarbon(M))
if(method == TOUCH)
M.adjustFireLoss(-volume)
@@ -177,7 +177,7 @@
..()
return
-/datum/reagent/medicine/silver_sulfadiazine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/silver_sulfadiazine/on_mob_life(mob/living/M)
M.adjustFireLoss(-2*REM)
..()
return
@@ -189,7 +189,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/medicine/styptic_powder/reaction_mob(var/mob/living/M as mob, var/method=TOUCH, var/volume, var/show_message = 1)
+/datum/reagent/medicine/styptic_powder/reaction_mob(mob/living/M, method=TOUCH, volume, show_message = 1)
if(iscarbon(M))
if(method == TOUCH)
M.adjustBruteLoss(-volume)
@@ -204,7 +204,7 @@
..()
return
-/datum/reagent/medicine/styptic_powder/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/styptic_powder/on_mob_life(mob/living/M)
M.adjustBruteLoss(-2*REM)
..()
return
@@ -217,7 +217,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/salglu_solution/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/salglu_solution/on_mob_life(mob/living/M)
if(prob(33))
M.adjustBruteLoss(-0.5*REM)
M.adjustFireLoss(-0.5*REM)
@@ -231,7 +231,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/medicine/synthflesh/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume,var/show_message = 1)
+/datum/reagent/medicine/synthflesh/reaction_mob(mob/living/M, method=TOUCH, volume,show_message = 1)
if(iscarbon(M))
if(method == TOUCH)
M.adjustBruteLoss(-1.5*volume)
@@ -249,7 +249,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/charcoal/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/charcoal/on_mob_life(mob/living/M)
M.adjustToxLoss(-2*REM)
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
@@ -266,7 +266,7 @@
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 30
-/datum/reagent/medicine/omnizine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/omnizine/on_mob_life(mob/living/M)
M.adjustToxLoss(-0.5*REM)
M.adjustOxyLoss(-0.5*REM)
M.adjustBruteLoss(-0.5*REM)
@@ -274,7 +274,7 @@
..()
return
-/datum/reagent/medicine/omnizine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/omnizine/overdose_process(mob/living/M)
M.adjustToxLoss(1.5*REM)
M.adjustOxyLoss(1.5*REM)
M.adjustBruteLoss(1.5*REM)
@@ -290,7 +290,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/calomel/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/calomel/on_mob_life(mob/living/M)
for(var/datum/reagent/R in M.reagents.reagent_list)
if(R != src)
M.reagents.remove_reagent(R.id,2.5)
@@ -307,7 +307,7 @@
color = "#C8A5DC"
metabolization_rate = 2 * REAGENTS_METABOLISM
-/datum/reagent/medicine/potass_iodide/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/potass_iodide/on_mob_life(mob/living/M)
if(M.radiation > 0)
M.radiation--
if(M.radiation < 0)
@@ -323,7 +323,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/pen_acid/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/pen_acid/on_mob_life(mob/living/M)
if(M.radiation > 0)
M.radiation -= 4
M.adjustToxLoss(-2*REM)
@@ -346,13 +346,13 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 25
-/datum/reagent/medicine/sal_acid/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/sal_acid/on_mob_life(mob/living/M)
if(M.getBruteLoss() < 50)
M.adjustBruteLoss(-0.25*REM)
..()
return
-/datum/reagent/medicine/sal_acid/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/sal_acid/overdose_process(mob/living/M)
if(M.getBruteLoss() < 50)
M.adjustBruteLoss(0.5*REM)
..()
@@ -366,7 +366,7 @@
color = "#C8A5DC"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
-/datum/reagent/medicine/salbutamol/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/salbutamol/on_mob_life(mob/living/M)
M.adjustOxyLoss(-3*REM)
if(M.losebreath >= 4)
M.losebreath -= 2
@@ -381,7 +381,7 @@
color = "#C8A5DC"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
-/datum/reagent/medicine/perfluorodecalin/on_mob_life(var/mob/living/carbon/human/M as mob)
+/datum/reagent/medicine/perfluorodecalin/on_mob_life(mob/living/carbon/human/M)
M.adjustOxyLoss(-12*REM)
M.silent = max(M.silent, 5)
if(prob(33))
@@ -400,7 +400,7 @@
overdose_threshold = 45
addiction_threshold = 30
-/datum/reagent/medicine/ephedrine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/on_mob_life(mob/living/M)
M.status_flags |= GOTTAGOFAST
M.AdjustParalysis(-1)
M.AdjustStunned(-1)
@@ -409,32 +409,32 @@
..()
return
-/datum/reagent/medicine/ephedrine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/overdose_process(mob/living/M)
if(prob(33))
M.adjustToxLoss(0.5*REM)
M.losebreath++
..()
return
-/datum/reagent/medicine/ephedrine/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/addiction_act_stage1(mob/living/M)
if(prob(33))
M.adjustToxLoss(2*REM)
M.losebreath += 2
..()
return
-/datum/reagent/medicine/ephedrine/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/addiction_act_stage2(mob/living/M)
if(prob(33))
M.adjustToxLoss(3*REM)
M.losebreath += 3
..()
return
-/datum/reagent/medicine/ephedrine/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/addiction_act_stage3(mob/living/M)
if(prob(33))
M.adjustToxLoss(4*REM)
M.losebreath += 4
..()
return
-/datum/reagent/medicine/ephedrine/addiction_act_stage4(var/mob/living/M as mob)
+/datum/reagent/medicine/ephedrine/addiction_act_stage4(mob/living/M)
if(prob(33))
M.adjustToxLoss(5*REM)
M.losebreath += 5
@@ -449,7 +449,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/diphenhydramine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/diphenhydramine/on_mob_life(mob/living/M)
if(prob(50))
M.drowsyness += 1
M.jitteriness -= 1
@@ -468,14 +468,14 @@
addiction_threshold = 25
-/datum/reagent/medicine/morphine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/on_mob_life(mob/living/M)
M.status_flags |= IGNORESLOWDOWN
if(current_cycle >= 12)
M.sleeping += 1
..()
return
-/datum/reagent/medicine/morphine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/overdose_process(mob/living/M)
if(prob(33))
var/obj/item/I = M.get_active_hand()
if(I)
@@ -485,7 +485,7 @@
..()
return
-/datum/reagent/medicine/morphine/addiction_act_stage1(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/addiction_act_stage1(mob/living/M)
if(prob(33))
var/obj/item/I = M.get_active_hand()
if(I)
@@ -494,7 +494,7 @@
M.Jitter(2)
..()
return
-/datum/reagent/medicine/morphine/addiction_act_stage2(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/addiction_act_stage2(mob/living/M)
if(prob(33))
var/obj/item/I = M.get_active_hand()
if(I)
@@ -504,7 +504,7 @@
M.Jitter(3)
..()
return
-/datum/reagent/medicine/morphine/addiction_act_stage3(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/addiction_act_stage3(mob/living/M)
if(prob(33))
var/obj/item/I = M.get_active_hand()
if(I)
@@ -514,7 +514,7 @@
M.Jitter(4)
..()
return
-/datum/reagent/medicine/morphine/addiction_act_stage4(var/mob/living/M as mob)
+/datum/reagent/medicine/morphine/addiction_act_stage4(mob/living/M)
if(prob(33))
var/obj/item/I = M.get_active_hand()
if(I)
@@ -533,7 +533,7 @@
color = "#C8A5DC"
metabolization_rate = 0.25 * REAGENTS_METABOLISM
-/datum/reagent/medicine/oculine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/oculine/on_mob_life(mob/living/M)
if(M.eye_blind > 0 && current_cycle > 20)
if(prob(30))
M.eye_blind = 0
@@ -555,7 +555,7 @@
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 35
-/datum/reagent/medicine/atropine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/atropine/on_mob_life(mob/living/M)
if(M.health > -60)
M.adjustToxLoss(0.5*REM)
if(M.health < -25)
@@ -571,7 +571,7 @@
..()
return
-/datum/reagent/medicine/atropine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/atropine/overdose_process(mob/living/M)
M.adjustToxLoss(0.5*REM)
M.Dizzy(1)
M.Jitter(1)
@@ -587,7 +587,7 @@
metabolization_rate = 0.25 * REAGENTS_METABOLISM
overdose_threshold = 30
-/datum/reagent/medicine/epinephrine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/epinephrine/on_mob_life(mob/living/M)
if(M.health < -10 && M.health > -65)
M.adjustToxLoss(-0.5*REM)
M.adjustBruteLoss(-0.5*REM)
@@ -606,7 +606,7 @@
..()
return
-/datum/reagent/medicine/epinephrine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/epinephrine/overdose_process(mob/living/M)
if(prob(33))
M.adjustStaminaLoss(2.5*REM)
M.adjustToxLoss(1*REM)
@@ -622,7 +622,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/strange_reagent/reaction_mob(var/mob/living/carbon/human/M as mob, var/method=TOUCH, var/volume)
+/datum/reagent/medicine/strange_reagent/reaction_mob(mob/living/carbon/human/M, method=TOUCH, volume)
if(M.stat == DEAD)
if(M.getBruteLoss() >= 100 || M.getFireLoss() >= 100)
M.visible_message("[M]'s body convulses a bit, and then falls still once more.")
@@ -644,7 +644,7 @@
..()
return
-/datum/reagent/medicine/strange_reagent/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/strange_reagent/on_mob_life(mob/living/M)
M.adjustBruteLoss(0.5*REM)
M.adjustFireLoss(0.5*REM)
..()
@@ -656,7 +656,7 @@
description = "Heals brain damage effectively. Use it in cyro tubes alongside Cryoxadone."
color = "#C8A5DC"
-/datum/reagent/medicine/mannitol/on_mob_life(mob/living/M as mob)
+/datum/reagent/medicine/mannitol/on_mob_life(mob/living/M)
M.adjustBrainLoss(-3*REM)
..()
return
@@ -667,7 +667,7 @@
description = "Heals your genetic defects."
color = "#C8A5DC"
-/datum/reagent/medicine/mutadone/on_mob_life(var/mob/living/carbon/human/M as mob)
+/datum/reagent/medicine/mutadone/on_mob_life(mob/living/carbon/human/M)
M.jitteriness = 0
if(istype(M) && M.dna)
M.dna.remove_all_mutations()
@@ -680,7 +680,7 @@
description = "Helps remove Alcohol from someone's body, as well as eliminating its side effects."
color = "#C8A5DC"
-/datum/reagent/medicine/antihol/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/antihol/on_mob_life(mob/living/M)
M.dizziness = 0
M.drowsyness = 0
M.slurring = 0
@@ -697,7 +697,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
overdose_threshold = 60
-/datum/reagent/medicine/stimulants/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/stimulants/on_mob_life(mob/living/M)
M.status_flags |= GOTTAGOFAST
if(M.health < 50 && M.health > 0)
M.adjustOxyLoss(-1*REM)
@@ -710,7 +710,7 @@
M.adjustStaminaLoss(-5*REM)
..()
-/datum/reagent/medicine/stimulants/overdose_process(var/mob/living/M as mob)
+/datum/reagent/medicine/stimulants/overdose_process(mob/living/M)
if(prob(33))
M.adjustStaminaLoss(2.5*REM)
M.adjustToxLoss(1*REM)
@@ -726,7 +726,7 @@
color = "#C8A5DC"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/medicine/insulin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/medicine/insulin/on_mob_life(mob/living/M)
if(M.sleeping)
M.sleeping--
M.reagents.remove_reagent("sugar", 3)
@@ -741,12 +741,12 @@ datum/reagent/medicine/bicaridine
color = "#C8A5DC"
overdose_threshold = 30
-datum/reagent/medicine/bicaridine/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/bicaridine/on_mob_life(mob/living/M)
M.adjustBruteLoss(-2*REM)
..()
return
-datum/reagent/medicine/bicaridine/overdose_process(var/mob/living/M as mob)
+datum/reagent/medicine/bicaridine/overdose_process(mob/living/M)
M.adjustBruteLoss(4*REM) // End result is 2 oxygen loss taken, because it heals 2 and then removes 4.
..()
return
@@ -759,12 +759,12 @@ datum/reagent/medicine/dexalin
color = "#C8A5DC"
overdose_threshold = 30
-datum/reagent/medicine/dexalin/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/dexalin/on_mob_life(mob/living/M)
M.adjustOxyLoss(-2*REM)
..()
return
-datum/reagent/medicine/dexalin/overdose_process(var/mob/living/M as mob)
+datum/reagent/medicine/dexalin/overdose_process(mob/living/M)
M.adjustOxyLoss(4*REM) // End result is 2 oxygen loss taken, because it heals 2 and then removes 4.
..()
return
@@ -777,12 +777,12 @@ datum/reagent/medicine/kelotane
color = "#C8A5DC"
overdose_threshold = 30
-datum/reagent/medicine/kelotane/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/kelotane/on_mob_life(mob/living/M)
M.adjustFireLoss(-2*REM)
..()
return
-datum/reagent/medicine/kelotane/overdose_process(var/mob/living/M as mob)
+datum/reagent/medicine/kelotane/overdose_process(mob/living/M)
M.adjustFireLoss(4*REM) // End result is 2 burn loss taken, because it heals 2 and then removes 4.
..()
return
@@ -796,7 +796,7 @@ datum/reagent/medicine/antitoxin
color = "#C8A5DC"
overdose_threshold = 30
-datum/reagent/medicine/antitoxin/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/antitoxin/on_mob_life(mob/living/M)
M.adjustToxLoss(-2*REM)
for(var/datum/reagent/toxin/R in M.reagents.reagent_list)
if(R != src)
@@ -804,7 +804,7 @@ datum/reagent/medicine/antitoxin/on_mob_life(var/mob/living/M as mob)
..()
return
-datum/reagent/medicine/antitoxin/overdose_process(var/mob/living/M as mob)
+datum/reagent/medicine/antitoxin/overdose_process(mob/living/M)
M.adjustToxLoss(4*REM) // End result is 2 toxin loss taken, because it heals 2 and then removes 4.
..()
return
@@ -817,7 +817,7 @@ datum/reagent/medicine/inaprovaline
reagent_state = LIQUID
color = "#C8A5DC"
-datum/reagent/medicine/inaprovaline/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/inaprovaline/on_mob_life(mob/living/M)
if(M.losebreath >= 5)
M.losebreath -= 5
..()
@@ -831,7 +831,7 @@ datum/reagent/medicine/tricordrazine
color = "#C8A5DC"
overdose_threshold = 30
-datum/reagent/medicine/tricordrazine/on_mob_life(var/mob/living/M as mob)
+datum/reagent/medicine/tricordrazine/on_mob_life(mob/living/M)
if(prob(80))
M.adjustBruteLoss(-1*REM)
M.adjustFireLoss(-1*REM)
@@ -840,7 +840,7 @@ datum/reagent/medicine/tricordrazine/on_mob_life(var/mob/living/M as mob)
..()
return
-datum/reagent/medicine/tricordrazine/overdose_process(var/mob/living/M as mob)
+datum/reagent/medicine/tricordrazine/overdose_process(mob/living/M)
M.adjustToxLoss(2*REM)
M.adjustOxyLoss(2*REM)
M.adjustBruteLoss(2*REM)
diff --git a/code/modules/reagents/Chemistry-Reagents/Other-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Other-Reagents.dm
index 8a9ecf7173f..923dfa759b9 100644
--- a/code/modules/reagents/Chemistry-Reagents/Other-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Other-Reagents.dm
@@ -5,7 +5,7 @@
id = "blood"
color = "#C80000" // rgb: 200, 0, 0
-/datum/reagent/blood/reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
+/datum/reagent/blood/reaction_mob(mob/M, method=TOUCH, volume)
var/datum/reagent/blood/self = src
src = null
if(self.data && self.data["viruses"])
@@ -19,11 +19,11 @@
else //injected
M.ForceContractDisease(D)
-/datum/reagent/blood/on_new(var/list/data)
+/datum/reagent/blood/on_new(list/data)
if(istype(data))
SetViruses(src, data)
-/datum/reagent/blood/on_merge(var/list/data)
+/datum/reagent/blood/on_merge(list/data)
if(src.data && data)
src.data["cloneable"] = 0 //On mix, consider the genetic sampling unviable for pod cloning, or else we won't know who's even getting cloned, etc
if(src.data["viruses"] || data["viruses"])
@@ -48,7 +48,7 @@
src.data["viruses"] = preserve
return 1
-/datum/reagent/blood/reaction_turf(var/turf/simulated/T, var/volume)//splash the blood all over the place
+/datum/reagent/blood/reaction_turf(turf/simulated/T, volume)//splash the blood all over the place
if(!istype(T)) return
var/datum/reagent/blood/self = src
src = null
@@ -93,7 +93,7 @@
id = "vaccine"
color = "#C81040" // rgb: 200, 16, 64
-/datum/reagent/vaccine/reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
+/datum/reagent/vaccine/reaction_mob(mob/M, method=TOUCH, volume)
var/datum/reagent/vaccine/self = src
src = null
if(islist(self.data) && method == INGEST)
@@ -103,7 +103,7 @@
M.resistances |= self.data
return
-/datum/reagent/vaccine/on_merge(var/list/data)
+/datum/reagent/vaccine/on_merge(list/data)
if(istype(data))
src.data |= data.Copy()
@@ -119,7 +119,7 @@
* Water reaction to turf
*/
-/datum/reagent/water/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/water/reaction_turf(turf/simulated/T, volume)
if (!istype(T)) return
var/CT = cooling_temperature
src = null
@@ -142,7 +142,7 @@
* Water reaction to an object
*/
-/datum/reagent/water/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/water/reaction_obj(obj/O, volume)
src = null
if(istype(O,/obj/item))
@@ -166,7 +166,7 @@
* Water reaction to a mob
*/
-/datum/reagent/water/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)//Splashing people with water can help put them out!
+/datum/reagent/water/reaction_mob(mob/living/M, method=TOUCH, volume)//Splashing people with water can help put them out!
if(!istype(M, /mob/living))
return
if(method == TOUCH)
@@ -178,7 +178,7 @@
description = "Water blessed by some deity."
color = "#E0E8EF" // rgb: 224, 232, 239
-/datum/reagent/water/holywater/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/water/holywater/on_mob_life(mob/living/M)
if(!data) data = 1
data++
M.jitteriness = max(M.jitteriness-5,0)
@@ -200,7 +200,7 @@
holder.remove_reagent(src.id, 0.4) //fixed consumption to prevent balancing going out of whack
return
-/datum/reagent/water/holywater/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/water/holywater/reaction_turf(turf/simulated/T, volume)
..()
if(!istype(T)) return
if(volume>=10)
@@ -213,7 +213,7 @@
id = "unholywater"
description = "Something that shouldn't exist on this plane of existance."
-/datum/reagent/fuel/unholywater/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/fuel/unholywater/on_mob_life(mob/living/M)
M.adjustBrainLoss(3)
if(iscultist(M))
M.status_flags |= GOTTAGOFAST
@@ -233,7 +233,7 @@
id = "hell_water"
description = "YOUR FLESH! IT BURNS!"
-/datum/reagent/hellwater/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/hellwater/on_mob_life(mob/living/M)
M.fire_stacks = min(5,M.fire_stacks + 3)
M.IgniteMob() //Only problem with igniting people is currently the commonly availible fire suits make you immune to being on fire
M.adjustToxLoss(1)
@@ -247,7 +247,7 @@
description = "Lubricant is a substance introduced between two moving surfaces to reduce the friction and wear between them. giggity."
color = "#009CA8" // rgb: 0, 156, 168
-/datum/reagent/lube/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/lube/reaction_turf(turf/simulated/T, volume)
if (!istype(T)) return
src = null
if(volume >= 1)
@@ -266,7 +266,7 @@
color = "#5EFF3B" //RGB: 94, 255, 59
metabolization_rate = INFINITY //So it instantly removes all of itself
-/datum/reagent/unstableslimetoxin/on_mob_life(var/mob/living/carbon/human/H as mob)
+/datum/reagent/unstableslimetoxin/on_mob_life(mob/living/carbon/human/H)
..()
H << "You crumple in agony as your flesh wildly morphs into new forms!"
H.visible_message("[H] falls to the ground and screams as their skin bubbles and froths!") //'froths' sounds painful when used with SKIN.
@@ -293,7 +293,7 @@
description = "An advanced corruptive toxin produced by slimes."
color = "#13BC5E" // rgb: 19, 188, 94
-/datum/reagent/aslimetoxin/reaction_mob(var/mob/M, var/volume)
+/datum/reagent/aslimetoxin/reaction_mob(mob/M, volume)
src = null
M.ForceContractDisease(new /datum/disease/transformation/slime(0))
@@ -304,7 +304,7 @@
color = "#202040" // rgb: 20, 20, 40
metabolization_rate = 0.25 * REAGENTS_METABOLISM
-/datum/reagent/serotrotium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/serotrotium/on_mob_life(mob/living/M)
if(ishuman(M))
if(prob(7)) M.emote(pick("twitch","drool","moan","gasp"))
..()
@@ -351,7 +351,7 @@
description = "A chemical element."
color = "#484848" // rgb: 72, 72, 72
-/datum/reagent/mercury/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/mercury/on_mob_life(mob/living/M)
if(M.canmove && istype(M.loc, /turf/space))
step(M, pick(cardinal))
if(prob(5))
@@ -374,7 +374,7 @@
reagent_state = SOLID
color = "#1C1300" // rgb: 30, 20, 0
-/datum/reagent/carbon/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/carbon/reaction_turf(turf/T, volume)
src = null
if(!istype(T, /turf/space))
new /obj/effect/decal/cleanable/dirt(T)
@@ -386,7 +386,7 @@
reagent_state = GAS
color = "#808080" // rgb: 128, 128, 128
-/datum/reagent/chlorine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/chlorine/on_mob_life(mob/living/M)
M.take_organ_damage(1*REM, 0)
..()
return
@@ -398,7 +398,7 @@
reagent_state = GAS
color = "#808080" // rgb: 128, 128, 128
-/datum/reagent/fluorine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/fluorine/on_mob_life(mob/living/M)
M.adjustToxLoss(1*REM)
..()
return
@@ -424,7 +424,7 @@
reagent_state = SOLID
color = "#808080" // rgb: 128, 128, 128
-/datum/reagent/lithium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/lithium/on_mob_life(mob/living/M)
if(M.canmove && istype(M.loc, /turf/space))
step(M, pick(cardinal))
if(prob(5))
@@ -445,12 +445,12 @@
reagent_state = SOLID
color = "#C7C7C7" // rgb: 199,199,199
-/datum/reagent/radium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/radium/on_mob_life(mob/living/M)
M.apply_effect(2*REM/M.metabolism_efficiency,IRRADIATE,0)
..()
return
-/datum/reagent/radium/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/radium/reaction_turf(turf/T, volume)
src = null
if(volume >= 3)
if(!istype(T, /turf/space))
@@ -491,13 +491,13 @@
reagent_state = SOLID
color = "#B8B8C0" // rgb: 184, 184, 192
-/datum/reagent/uranium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/uranium/on_mob_life(mob/living/M)
M.apply_effect(1/M.metabolism_efficiency,IRRADIATE,0)
..()
return
-/datum/reagent/uranium/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/uranium/reaction_turf(turf/T, volume)
src = null
if(volume >= 3)
if(!istype(T, /turf/space))
@@ -524,14 +524,14 @@
description = "Required for welders. Flamable."
color = "#660000" // rgb: 102, 0, 0
-/datum/reagent/fuel/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)//Splashing people with welding fuel to make them easy to ignite!
+/datum/reagent/fuel/reaction_mob(mob/living/M, method=TOUCH, volume)//Splashing people with welding fuel to make them easy to ignite!
if(!istype(M, /mob/living))
return
if(method == TOUCH)
M.adjust_fire_stacks(volume / 10)
return
-/datum/reagent/fuel/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/fuel/on_mob_life(mob/living/M)
M.adjustToxLoss(1)
..()
return
@@ -542,14 +542,14 @@
description = "A compound used to clean things. Now with 50% more sodium hypochlorite!"
color = "#A5F0EE" // rgb: 165, 240, 238
-/datum/reagent/space_cleaner/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/space_cleaner/reaction_obj(obj/O, volume)
if(istype(O,/obj/effect/decal/cleanable))
qdel(O)
else
if(O)
O.clean_blood()
-/datum/reagent/space_cleaner/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/space_cleaner/reaction_turf(turf/T, volume)
if(volume >= 1)
T.clean_blood()
for(var/obj/effect/decal/cleanable/C in T)
@@ -562,7 +562,7 @@
if(volume >= 1)
F.dirt = 0
-/datum/reagent/space_cleaner/reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
+/datum/reagent/space_cleaner/reaction_mob(mob/M, method=TOUCH, volume)
if(iscarbon(M))
var/mob/living/carbon/C = M
if(istype(M,/mob/living/carbon/human))
@@ -600,7 +600,7 @@
color = "#C8A5DC" // rgb: 200, 165, 220
metabolization_rate = 1.5 * REAGENTS_METABOLISM
-/datum/reagent/cryptobiolin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/cryptobiolin/on_mob_life(mob/living/M)
M.Dizzy(1)
if(!M.confused)
M.confused = 1
@@ -614,7 +614,7 @@
description = "Impedrezene is a narcotic that impedes one's ability by slowing down the higher brain cell functions."
color = "#C8A5DC" // rgb: 200, 165, 220
-/datum/reagent/impedrezene/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/impedrezene/on_mob_life(mob/living/M)
M.jitteriness = max(M.jitteriness-5,0)
if(prob(80)) M.adjustBrainLoss(1*REM)
if(prob(50)) M.drowsyness = max(M.drowsyness, 3)
@@ -628,7 +628,7 @@
description = "Microscopic construction robots."
color = "#535E66" // rgb: 83, 94, 102
-/datum/reagent/nanites/reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
+/datum/reagent/nanites/reaction_mob(mob/M, method=TOUCH, volume)
src = null
if( (prob(min(10, volume)) && method==TOUCH) || method==INGEST)
M.ForceContractDisease(new /datum/disease/transformation/robot(0))
@@ -639,7 +639,7 @@
description = "Microbes with an entirely alien cellular structure."
color = "#535E66" // rgb: 83, 94, 102
-/datum/reagent/xenomicrobes/reaction_mob(var/mob/M, var/method=TOUCH, var/volume)
+/datum/reagent/xenomicrobes/reaction_mob(mob/M, method=TOUCH, volume)
src = null
if( (prob(min(10, volume)) && method==TOUCH) || method==INGEST)
M.ContractDisease(new /datum/disease/transformation/xeno(0))
@@ -741,7 +741,7 @@
color = "#000000" // RBG: 0, 0, 0
var/tox_prob = 0
-/datum/reagent/plantnutriment/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/plantnutriment/on_mob_life(mob/living/M)
if(prob(tox_prob))
M.adjustToxLoss(1*REM)
..()
@@ -813,7 +813,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/carpet/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/carpet/reaction_turf(turf/simulated/T, volume)
if(istype(T, /turf/simulated/floor/plating) || istype(T, /turf/simulated/floor/plasteel))
var/turf/simulated/floor/F = T
F.ChangeTurf(/turf/simulated/floor/carpet)
@@ -857,23 +857,23 @@
var/list/random_color_list = list("#00aedb","#a200ff","#f47835","#d41243","#d11141","#00b159","#00aedb","#f37735","#ffc425","#008744","#0057e7","#d62d20","#ffa700")
-/datum/reagent/colorful_reagent/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/colorful_reagent/on_mob_life(mob/living/M)
if(M && isliving(M))
M.color = pick(random_color_list)
..()
return
-/datum/reagent/colorful_reagent/reaction_mob(var/mob/living/M, var/volume)
+/datum/reagent/colorful_reagent/reaction_mob(mob/living/M, volume)
if(M && isliving(M))
M.color = pick(random_color_list)
..()
return
-/datum/reagent/colorful_reagent/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/colorful_reagent/reaction_obj(obj/O, volume)
if(O)
O.color = pick(random_color_list)
..()
return
-/datum/reagent/colorful_reagent/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/colorful_reagent/reaction_turf(turf/T, volume)
if(T)
T.color = pick(random_color_list)
..()
@@ -887,7 +887,7 @@
color = "#C8A5DC"
var/list/potential_colors = list("0ad","a0f","f73","d14","d14","0b5","0ad","f73","fc2","084","05e","d22","fa0") // fucking hair code
-/datum/reagent/hair_dye/reaction_mob(var/mob/living/M, var/volume)
+/datum/reagent/hair_dye/reaction_mob(mob/living/M, volume)
if(M && ishuman(M))
var/mob/living/carbon/human/H = M
H.hair_color = pick(potential_colors)
@@ -903,7 +903,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/barbers_aid/reaction_mob(var/mob/living/M, var/volume)
+/datum/reagent/barbers_aid/reaction_mob(mob/living/M, volume)
if(M && ishuman(M))
var/mob/living/carbon/human/H = M
var/datum/sprite_accessory/hair/picked_hair = pick(hair_styles_list)
@@ -921,7 +921,7 @@
reagent_state = LIQUID
color = "#C8A5DC"
-/datum/reagent/concentrated_barbers_aid/reaction_mob(var/mob/living/M, var/volume)
+/datum/reagent/concentrated_barbers_aid/reaction_mob(mob/living/M, volume)
if(M && ishuman(M))
var/mob/living/carbon/human/H = M
H.hair_style = "Very Long Hair"
diff --git a/code/modules/reagents/Chemistry-Reagents/Pyrotechnic-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Pyrotechnic-Reagents.dm
index 545f4020afb..56300fffd97 100644
--- a/code/modules/reagents/Chemistry-Reagents/Pyrotechnic-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Pyrotechnic-Reagents.dm
@@ -6,7 +6,7 @@
reagent_state = SOLID
color = "#673910" // rgb: 103, 57, 16
-/datum/reagent/thermite/reaction_turf(var/turf/T, var/volume)
+/datum/reagent/thermite/reaction_turf(turf/T, volume)
src = null
if(volume >= 1 && istype(T, /turf/simulated/wall))
var/turf/simulated/wall/Wall = T
@@ -17,7 +17,7 @@
Wall.overlays = list()
Wall.overlays += image('icons/effects/effects.dmi',"thermite")
-/datum/reagent/thermite/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/thermite/on_mob_life(mob/living/M)
M.adjustFireLoss(1)
..()
@@ -42,13 +42,13 @@
color = "#FF0000"
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/clf3/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/clf3/on_mob_life(mob/living/M)
M.adjust_fire_stacks(2)
var/burndmg = max(0.3*M.fire_stacks, 0.3)
M.adjustFireLoss(burndmg)
..()
-/datum/reagent/clf3/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/clf3/reaction_turf(turf/simulated/T, volume)
if(istype(T, /turf/simulated/floor/plating))
var/turf/simulated/floor/plating/F = T
if(prob(1 + F.burnt + 5*F.broken)) //broken or burnt plating is more susceptible to being destroyed
@@ -66,7 +66,7 @@
if(prob(volume/10))
W.ChangeTurf(/turf/simulated/floor/plating)
-/datum/reagent/clf3/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/clf3/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH && isliving(M))
M.adjust_fire_stacks(min(volume/5, 10))
M.IgniteMob()
@@ -129,7 +129,7 @@
reagent_state = LIQUID
color = "#FF9999"
-/datum/reagent/phlogiston/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/phlogiston/on_mob_life(mob/living/M)
M.adjust_fire_stacks(1)
M.IgniteMob()
M.adjustFireLoss(0.2*M.fire_stacks)
@@ -143,11 +143,11 @@
reagent_state = LIQUID
color = "#FF9999"
-/datum/reagent/napalm/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/napalm/on_mob_life(mob/living/M)
M.adjust_fire_stacks(1)
..()
-/datum/reagent/napalm/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/napalm/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH && isliving(M))
M.adjust_fire_stacks(min(volume/4, 20))
@@ -159,7 +159,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/cryostylane/on_mob_life(var/mob/living/M as mob) //TODO: code freezing into an ice cube
+/datum/reagent/cryostylane/on_mob_life(mob/living/M) //TODO: code freezing into an ice cube
if(M.reagents.has_reagent("oxygen"))
M.reagents.remove_reagent("oxygen", 0.5)
M.bodytemperature -= 15
@@ -172,7 +172,7 @@
holder.handle_reactions()
..()
-/datum/reagent/cryostylane/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/cryostylane/reaction_turf(turf/simulated/T, volume)
if(volume >= 5)
for(var/mob/living/simple_animal/slime/M in T)
M.adjustToxLoss(rand(15,30))
@@ -184,7 +184,7 @@
color = "#B20000" // rgb: 139, 166, 233
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/pyrosium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/pyrosium/on_mob_life(mob/living/M)
if(M.reagents.has_reagent("oxygen"))
M.reagents.remove_reagent("oxygen", 0.5)
M.bodytemperature += 15
diff --git a/code/modules/reagents/Chemistry-Reagents/Toxin-Reagents.dm b/code/modules/reagents/Chemistry-Reagents/Toxin-Reagents.dm
index 04b93d4c856..d693da360a1 100644
--- a/code/modules/reagents/Chemistry-Reagents/Toxin-Reagents.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Toxin-Reagents.dm
@@ -8,7 +8,7 @@
color = "#CF3600" // rgb: 207, 54, 0
var/toxpwr = 1.5
-/datum/reagent/toxin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/on_mob_life(mob/living/M)
if(toxpwr)
M.adjustToxLoss(toxpwr*REM)
..()
@@ -28,7 +28,7 @@
color = "#13BC5E" // rgb: 19, 188, 94
toxpwr = 0
-/datum/reagent/toxin/mutagen/reaction_mob(var/mob/living/carbon/M, var/method=TOUCH, var/volume)
+/datum/reagent/toxin/mutagen/reaction_mob(mob/living/carbon/M, method=TOUCH, volume)
if(!..())
return
if(!istype(M) || !M.dna)
@@ -44,7 +44,7 @@
updateappearance(M)
return
-/datum/reagent/toxin/mutagen/on_mob_life(var/mob/living/carbon/M)
+/datum/reagent/toxin/mutagen/on_mob_life(mob/living/carbon/M)
if(istype(M))
M.apply_effect(5,IRRADIATE,0)
..()
@@ -57,13 +57,13 @@
color = "#500064" // rgb: 80, 0, 100
toxpwr = 3
-/datum/reagent/toxin/plasma/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/plasma/on_mob_life(mob/living/M)
if(holder.has_reagent("epinephrine"))
holder.remove_reagent("epinephrine", 2*REM)
..()
return
-/datum/reagent/toxin/plasma/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/toxin/plasma/reaction_obj(obj/O, volume)
src = null
/*if(istype(O,/obj/item/weapon/reagent_containers/food/snacks/egg/slime))
var/obj/item/weapon/reagent_containers/food/snacks/egg/slime/egg = O
@@ -72,13 +72,13 @@
if((!O) || (!volume)) return 0
O.atmos_spawn_air(SPAWN_TOXINS|SPAWN_20C, volume)
-/datum/reagent/toxin/plasma/reaction_turf(var/turf/simulated/T, var/volume)
+/datum/reagent/toxin/plasma/reaction_turf(turf/simulated/T, volume)
src = null
if(istype(T))
T.atmos_spawn_air(SPAWN_TOXINS|SPAWN_20C, volume)
return
-/datum/reagent/toxin/plasma/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)//Splashing people with plasma is stronger than fuel!
+/datum/reagent/toxin/plasma/reaction_mob(mob/living/M, method=TOUCH, volume)//Splashing people with plasma is stronger than fuel!
if(!istype(M, /mob/living))
return
if(method == TOUCH)
@@ -92,7 +92,7 @@
color = "#C8A5DC" // rgb: 200, 165, 220
toxpwr = 0
-/datum/reagent/toxin/lexorin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/lexorin/on_mob_life(mob/living/M)
if(M.stat != DEAD)
if(prob(33))
M.take_organ_damage(1*REM, 0)
@@ -109,7 +109,7 @@
color = "#801E28" // rgb: 128, 30, 40
toxpwr = 0
-/datum/reagent/toxin/slimejelly/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/slimejelly/on_mob_life(mob/living/M)
if(prob(10))
M << "Your insides are burning!"
M.adjustToxLoss(rand(20,60)*REM)
@@ -125,7 +125,7 @@
color = "#CF3600" // rgb: 207, 54, 0
toxpwr = 0
-/datum/reagent/toxin/minttoxin/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/minttoxin/on_mob_life(mob/living/M)
if (FAT in M.mutations)
M.gib()
..()
@@ -146,7 +146,7 @@
color = "#669900" // rgb: 102, 153, 0
toxpwr = 0.5
-/datum/reagent/toxin/zombiepowder/on_mob_life(var/mob/living/carbon/M as mob)
+/datum/reagent/toxin/zombiepowder/on_mob_life(mob/living/carbon/M)
M.status_flags |= FAKEDEATH
M.adjustOxyLoss(0.5*REM)
M.Weaken(5)
@@ -166,7 +166,7 @@
color = "#B31008" // rgb: 139, 166, 233
toxpwr = 0
-/datum/reagent/toxin/mindbreaker/on_mob_life(var/mob/living/M)
+/datum/reagent/toxin/mindbreaker/on_mob_life(mob/living/M)
M.hallucination += 10
..()
return
@@ -178,7 +178,7 @@
color = "#49002E" // rgb: 73, 0, 46
toxpwr = 1
-/datum/reagent/toxin/plantbgone/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/toxin/plantbgone/reaction_obj(obj/O, volume)
if(istype(O,/obj/structure/alien/weeds/))
var/obj/structure/alien/weeds/alien_weeds = O
alien_weeds.health -= rand(15,35) // Kills alien weeds pretty fast
@@ -189,7 +189,7 @@
var/obj/effect/spacevine/SV = O
SV.on_chem_effect(src)
-/datum/reagent/toxin/plantbgone/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/toxin/plantbgone/reaction_mob(mob/living/M, method=TOUCH, volume)
src = null
if(iscarbon(M))
var/mob/living/carbon/C = M
@@ -210,7 +210,7 @@
color = "#4B004B" // rgb: 75, 0, 75
toxpwr = 1
-/datum/reagent/toxin/pestkiller/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/toxin/pestkiller/reaction_mob(mob/living/M, method=TOUCH, volume)
src = null
if(iscarbon(M))
var/mob/living/carbon/C = M
@@ -225,7 +225,7 @@
color = "#9ACD32"
toxpwr = 0.5
-/datum/reagent/toxin/spore/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/spore/on_mob_life(mob/living/M)
M.damageoverlaytemp = 60
M.eye_blurry = max(M.eye_blurry, 3)
..()
@@ -239,7 +239,7 @@
color = "#9ACD32"
toxpwr = 0.5
-/datum/reagent/toxin/spore_burning/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/spore_burning/on_mob_life(mob/living/M)
..()
M.adjust_fire_stacks(2)
M.IgniteMob()
@@ -253,7 +253,7 @@
toxpwr = 0
metabolization_rate = 1.5 * REAGENTS_METABOLISM
-/datum/reagent/toxin/chloralhydrate/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/chloralhydrate/on_mob_life(mob/living/M)
switch(current_cycle)
if(1 to 10)
M.confused += 2
@@ -273,7 +273,7 @@
color = "#664300" // rgb: 102, 67, 0
metabolization_rate = 1.5 * REAGENTS_METABOLISM
-/datum/reagent/toxin/beer2/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/beer2/on_mob_life(mob/living/M)
switch(current_cycle)
if(1 to 50)
M.sleeping += 1
@@ -332,7 +332,7 @@
metabolization_rate = 0.125 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/polonium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/polonium/on_mob_life(mob/living/M)
M.radiation += 4
..()
@@ -346,7 +346,7 @@
overdose_threshold = 30
toxpwr = 0
-/datum/reagent/toxin/histamine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/histamine/on_mob_life(mob/living/M)
if(prob(50))
switch(pick(1, 2, 3, 4))
if(1)
@@ -362,7 +362,7 @@
M.adjustBruteLoss(2*REM)
..()
-/datum/reagent/toxin/histamine/overdose_process(var/mob/living/M as mob)
+/datum/reagent/toxin/histamine/overdose_process(mob/living/M)
M.adjustOxyLoss(2*REM)
M.adjustBruteLoss(2*REM)
M.adjustToxLoss(2*REM)
@@ -377,7 +377,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
toxpwr = 1
-/datum/reagent/toxin/formaldehyde/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/formaldehyde/on_mob_life(mob/living/M)
if(prob(5))
M.reagents.add_reagent("histamine",pick(5,15))
M.reagents.remove_reagent("formaldehyde",1)
@@ -392,7 +392,7 @@
metabolization_rate = 0.25 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/venom/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/venom/on_mob_life(mob/living/M)
toxpwr = 0.2*volume
M.adjustBruteLoss((0.3*volume)*REM)
if(prob(15))
@@ -409,7 +409,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/neurotoxin2/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/neurotoxin2/on_mob_life(mob/living/M)
if(M.brainloss + M.toxloss <= 60)
M.adjustBrainLoss(1*REM)
M.adjustToxLoss(1*REM)
@@ -426,7 +426,7 @@
metabolization_rate = 0.125 * REAGENTS_METABOLISM
toxpwr = 1.25
-/datum/reagent/toxin/cyanide/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/cyanide/on_mob_life(mob/living/M)
if(prob(5))
M.losebreath += 1
if(prob(8))
@@ -453,12 +453,12 @@
metabolization_rate = 0.4 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/itching_powder/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
+/datum/reagent/toxin/itching_powder/reaction_mob(mob/living/M, method=TOUCH, volume)
if(method == TOUCH)
M.reagents.add_reagent("itching_powder", volume)
return
-/datum/reagent/toxin/itching_powder/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/itching_powder/on_mob_life(mob/living/M)
if(prob(15))
M << "You scratch at your head."
M.adjustBruteLoss(0.2*REM)
@@ -482,7 +482,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
toxpwr = 2.5
-/datum/reagent/toxin/initropidril/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/initropidril/on_mob_life(mob/living/M)
if(prob(25))
var/picked_option = rand(1,3)
switch(picked_option)
@@ -513,7 +513,7 @@
metabolization_rate = 0.25 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/pancuronium/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/pancuronium/on_mob_life(mob/living/M)
if(current_cycle >= 10)
M.SetParalysis(1)
if(prob(20))
@@ -529,7 +529,7 @@
metabolization_rate = 0.75 * REAGENTS_METABOLISM
toxpwr = 0
-/datum/reagent/toxin/sodium_thiopental/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/sodium_thiopental/on_mob_life(mob/living/M)
if(current_cycle >= 10)
M.sleeping += 1
M.adjustStaminaLoss(10*REM)
@@ -544,7 +544,7 @@
metabolization_rate = 0.125 * REAGENTS_METABOLISM
toxpwr = 0.5
-/datum/reagent/toxin/sulfonal/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/sulfonal/on_mob_life(mob/living/M)
if(current_cycle >= 22)
M.sleeping += 1
..()
@@ -558,7 +558,7 @@
toxpwr = 0
metabolization_rate = 0.5 * REAGENTS_METABOLISM
-/datum/reagent/toxin/amanitin/on_mob_delete(var/mob/living/M as mob)
+/datum/reagent/toxin/amanitin/on_mob_delete(mob/living/M)
M.adjustToxLoss(current_cycle*3*REM)
..()
@@ -571,7 +571,7 @@
metabolization_rate = 0.5 * REAGENTS_METABOLISM
toxpwr = 0.5
-/datum/reagent/toxin/lipolicide/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/lipolicide/on_mob_life(mob/living/M)
if(!holder.has_reagent("nutriment"))
M.adjustToxLoss(0.5*REM)
M.nutrition -= 5 * REAGENTS_METABOLISM
@@ -589,7 +589,7 @@
metabolization_rate = 0.06 * REAGENTS_METABOLISM
toxpwr = 1.75
-/datum/reagent/toxin/coniine/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/coniine/on_mob_life(mob/living/M)
M.losebreath += 5
..()
@@ -602,7 +602,7 @@
metabolization_rate = 0.125 * REAGENTS_METABOLISM
toxpwr = 1
-/datum/reagent/toxin/curare/on_mob_life(var/mob/living/M as mob)
+/datum/reagent/toxin/curare/on_mob_life(mob/living/M)
if(current_cycle >= 11)
M.Weaken(1)
M.adjustOxyLoss(1*REM)
@@ -620,7 +620,7 @@
toxpwr = 1
var/acidpwr = 10 //the amount of protection removed from the armour
-/datum/reagent/toxin/acid/reaction_mob(var/mob/living/carbon/C, var/method=TOUCH, var/volume)
+/datum/reagent/toxin/acid/reaction_mob(mob/living/carbon/C, method=TOUCH, volume)
if(!istype(C))
return
volume = round(volume,0.1)
@@ -630,7 +630,7 @@
C.acid_act(acidpwr, toxpwr, volume)
-/datum/reagent/toxin/acid/reaction_obj(var/obj/O, var/volume)
+/datum/reagent/toxin/acid/reaction_obj(obj/O, volume)
if(istype(O.loc, /mob)) //handled in human acid_act()
return
volume = round(volume,0.1)
diff --git a/code/modules/reagents/Chemistry-Recipes.dm b/code/modules/reagents/Chemistry-Recipes.dm
index 9555c8a126a..6a238b39c41 100644
--- a/code/modules/reagents/Chemistry-Recipes.dm
+++ b/code/modules/reagents/Chemistry-Recipes.dm
@@ -17,12 +17,12 @@
var/required_temp = 0
var/mix_message = "The solution begins to bubble."
-/datum/chemical_reaction/proc/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/proc/on_reaction(datum/reagents/holder, created_volume)
return
//I recommend you set the result amount to the total volume of all components.
-/datum/chemical_reaction/proc/chemical_mob_spawn(var/datum/reagents/holder, var/amount_to_spawn, var/reaction_name, var/mob_faction = "chemicalsummon")
+/datum/chemical_reaction/proc/chemical_mob_spawn(datum/reagents/holder, amount_to_spawn, reaction_name, mob_faction = "chemicalsummon")
if(holder && holder.my_atom)
var/blocked = list(/mob/living/simple_animal/hostile,
/mob/living/simple_animal/hostile/pirate,
@@ -78,7 +78,7 @@
for(var/j = 1, j <= rand(1, 3), j++)
step(C, pick(NORTH,SOUTH,EAST,WEST))
-/datum/chemical_reaction/proc/goonchem_vortex(var/turf/simulated/T, var/setting_type, var/range, var/pull_times)
+/datum/chemical_reaction/proc/goonchem_vortex(turf/simulated/T, setting_type, range, pull_times)
for(var/atom/movable/X in orange(range, T))
if(istype(X, /obj/effect))
continue //stop pulling smoke and hotspots please
diff --git a/code/modules/reagents/Chemistry-Recipes/Others.dm b/code/modules/reagents/Chemistry-Recipes/Others.dm
index f03bec05038..b839ad05c4c 100644
--- a/code/modules/reagents/Chemistry-Recipes/Others.dm
+++ b/code/modules/reagents/Chemistry-Recipes/Others.dm
@@ -49,7 +49,7 @@
result_amount = 1
mob_react = 1
-/datum/chemical_reaction/plasmasolidification/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/plasmasolidification/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
new /obj/item/stack/sheet/mineral/plasma(location)
return
@@ -80,7 +80,7 @@
var/level_min = 0
var/level_max = 2
-/datum/chemical_reaction/mix_virus/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/mix_virus/on_reaction(datum/reagents/holder, created_volume)
var/datum/reagent/blood/B = locate(/datum/reagent/blood) in holder.reagent_list
if(B && B.data)
@@ -112,7 +112,7 @@
required_reagents = list("synaptizine" = 1)
required_catalysts = list("blood" = 1)
-/datum/chemical_reaction/mix_virus/rem_virus/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/mix_virus/rem_virus/on_reaction(datum/reagents/holder, created_volume)
var/datum/reagent/blood/B = locate(/datum/reagent/blood) in holder.reagent_list
if(B && B.data)
@@ -141,7 +141,7 @@
result_amount = 2
mob_react = 1
-/datum/chemical_reaction/foam/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/foam/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/mob/M in viewers(5, location))
M << "The solution spews out foam!"
@@ -160,7 +160,7 @@
result_amount = 5
mob_react = 1
-/datum/chemical_reaction/metalfoam/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/metalfoam/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/mob/M in viewers(5, location))
@@ -179,7 +179,7 @@
result_amount = 5
mob_react = 1
-/datum/chemical_reaction/ironfoam/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/ironfoam/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
for(var/mob/M in viewers(5, location))
M << "The solution spews out a metallic foam!"
@@ -295,7 +295,7 @@
result_amount = 1
required_temp = 374
-/datum/chemical_reaction/life/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/life/on_reaction(datum/reagents/holder, created_volume)
chemical_mob_spawn(holder, 1, "Life")
/datum/chemical_reaction/corgium
@@ -306,7 +306,7 @@
result_amount = 1
required_temp = 374
-/datum/chemical_reaction/corgium/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/corgium/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
new /mob/living/simple_animal/pet/corgi(location)
..()
diff --git a/code/modules/reagents/Chemistry-Recipes/Pyrotechnics.dm b/code/modules/reagents/Chemistry-Recipes/Pyrotechnics.dm
index ba20b7c7817..d0344d28fb4 100644
--- a/code/modules/reagents/Chemistry-Recipes/Pyrotechnics.dm
+++ b/code/modules/reagents/Chemistry-Recipes/Pyrotechnics.dm
@@ -6,7 +6,7 @@
required_reagents = list("glycerol" = 1, "facid" = 1, "sacid" = 1)
result_amount = 2
-/datum/chemical_reaction/nitroglycerin/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/nitroglycerin/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
holder.remove_reagent("nitroglycerin", created_volume)
@@ -24,7 +24,7 @@
result_amount = 1
required_temp = 474
-/datum/chemical_reaction/nitroglycerin_explosion/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/nitroglycerin_explosion/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
var/datum/effect/effect/system/reagents_explosion/e = new()
e.set_up(round(created_volume/2, 1), location, 0, 0)
@@ -38,7 +38,7 @@
required_reagents = list("water" = 1, "potassium" = 1)
result_amount = 2
-/datum/chemical_reaction/potassium_explosion/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/potassium_explosion/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
var/datum/effect/effect/system/reagents_explosion/e = new()
e.set_up(round (created_volume/10, 1), location, 0, 0)
@@ -61,7 +61,7 @@
required_temp = 474
mix_message = "Sparks start flying around the black powder!"
-/datum/chemical_reaction/blackpowder_explosion/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/blackpowder_explosion/on_reaction(datum/reagents/holder, created_volume)
sleep(rand(50,100))
var/location = get_turf(holder.my_atom)
var/datum/effect/effect/system/reagents_explosion/e = new()
@@ -83,7 +83,7 @@
required_reagents = list("uranium" = 1, "iron" = 1) // Yes, laugh, it's the best recipe I could think of that makes a little bit of sense
result_amount = 2
-/datum/chemical_reaction/emp_pulse/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/emp_pulse/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
// 100 created volume = 4 heavy range & 7 light range. A few tiles smaller than traitor EMP grandes.
// 200 created volume = 8 heavy range & 14 light range. 4 tiles larger than traitor EMP grenades.
@@ -106,7 +106,7 @@
result_amount = 4
required_temp = 424
-/datum/chemical_reaction/clf3/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/clf3/on_reaction(datum/reagents/holder, created_volume)
var/turf/T = get_turf(holder.my_atom)
for(var/turf/turf in range(1,T))
PoolOrNew(/obj/effect/hotspot, turf)
@@ -119,7 +119,7 @@
required_reagents = list("mercury" = 1, "oxygen" = 1, "nitrogen" = 1, "carbon" = 1)
result_amount = 4
-/datum/chemical_reaction/sorium/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/sorium/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
holder.remove_reagent("sorium", created_volume)
@@ -133,7 +133,7 @@
required_reagents = list("sorium" = 1)
required_temp = 474
-/datum/chemical_reaction/sorium_vortex/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/sorium_vortex/on_reaction(datum/reagents/holder, created_volume)
var/turf/simulated/T = get_turf(holder.my_atom)
goonchem_vortex(T, 1, 5, 6)
@@ -145,7 +145,7 @@
required_reagents = list("stable_plasma" = 1, "radium" = 1, "carbon" = 1)
result_amount = 3
-/datum/chemical_reaction/liquid_dark_matter/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/liquid_dark_matter/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
holder.remove_reagent("liquid_dark_matter", created_volume)
@@ -159,7 +159,7 @@
required_reagents = list("liquid_dark_matter" = 1)
required_temp = 474
-/datum/chemical_reaction/ldm_vortex/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/ldm_vortex/on_reaction(datum/reagents/holder, created_volume)
var/turf/simulated/T = get_turf(holder.my_atom)
goonchem_vortex(T, 0, 5, 6)
@@ -170,7 +170,7 @@
required_reagents = list("aluminium" = 1, "potassium" = 1, "sulfur" = 1 )
result_amount = 3
-/datum/chemical_reaction/flash_powder/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/flash_powder/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
var/location = get_turf(holder.my_atom)
@@ -193,7 +193,7 @@
result_amount = 1
required_temp = 374
-/datum/chemical_reaction/flash_powder_flash/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/flash_powder_flash/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
s.set_up(2, 1, location)
@@ -212,7 +212,7 @@
required_reagents = list("potassium" = 1, "sugar" = 1, "phosphorus" = 1)
result_amount = 3
-/datum/chemical_reaction/smoke_powder/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/smoke_powder/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
holder.remove_reagent("smoke_powder", created_volume)
@@ -237,7 +237,7 @@
secondary = 1
mob_react = 1
-/datum/chemical_reaction/smoke_powder_smoke/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/smoke_powder_smoke/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
var/smoke_amount = round(Clamp(created_volume/5, 1, 20),1)
var/datum/effect/effect/system/smoke_spread/chem/S = new
@@ -258,7 +258,7 @@
required_reagents = list("oxygen" = 1, "cola" = 1, "phosphorus" = 1)
result_amount = 3
-/datum/chemical_reaction/sonic_powder/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/sonic_powder/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
holder.remove_reagent("sonic_powder", created_volume)
@@ -284,7 +284,7 @@
required_temp = 374
result_amount = 1
-/datum/chemical_reaction/sonic_powder_deafen/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/sonic_powder_deafen/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
playsound(location, 'sound/effects/bang.ogg', 25, 1)
for(var/mob/living/carbon/C in get_hearers_in_view(created_volume/10, location))
@@ -307,7 +307,7 @@
required_reagents = list("phosphorus" = 1, "sacid" = 1, "stable_plasma" = 1)
result_amount = 3
-/datum/chemical_reaction/phlogiston/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/phlogiston/on_reaction(datum/reagents/holder, created_volume)
if(holder.has_reagent("stabilizing_agent"))
return
var/turf/simulated/T = get_turf(holder.my_atom)
@@ -332,7 +332,7 @@
required_reagents = list("water" = 1, "stable_plasma" = 1, "nitrogen" = 1)
result_amount = 3
-/datum/chemical_reaction/cryostylane/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/cryostylane/on_reaction(datum/reagents/holder, created_volume)
holder.chem_temp = 20 // cools the fuck down
return
@@ -344,6 +344,6 @@
required_reagents = list("stable_plasma" = 1, "radium" = 1, "phosphorus" = 1)
result_amount = 3
-/datum/chemical_reaction/pyrosium/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/pyrosium/on_reaction(datum/reagents/holder, created_volume)
holder.chem_temp = 20 // also cools the fuck down
return
\ No newline at end of file
diff --git a/code/modules/reagents/Chemistry-Recipes/Slime_extracts.dm b/code/modules/reagents/Chemistry-Recipes/Slime_extracts.dm
index 98f34ef9f73..49048502ad0 100644
--- a/code/modules/reagents/Chemistry-Recipes/Slime_extracts.dm
+++ b/code/modules/reagents/Chemistry-Recipes/Slime_extracts.dm
@@ -9,7 +9,7 @@
required_container = /obj/item/slime_extract/grey
required_other = 1
-/datum/chemical_reaction/slimespawn/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimespawn/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/mob/living/simple_animal/slime/S = new /mob/living/simple_animal/slime
S.loc = get_turf(holder.my_atom)
@@ -24,7 +24,7 @@
required_other = 1
required_container = /obj/item/slime_extract/grey
-/datum/chemical_reaction/slimeinaprov/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeinaprov/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
/datum/chemical_reaction/slimemonkey
@@ -36,7 +36,7 @@
required_container = /obj/item/slime_extract/grey
required_other = 1
-/datum/chemical_reaction/slimemonkey/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemonkey/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/i = 1, i <= 3, i++)
var /obj/item/weapon/reagent_containers/food/snacks/monkeycube/M = new /obj/item/weapon/reagent_containers/food/snacks/monkeycube
@@ -52,7 +52,7 @@
required_other = 1
required_container = /obj/item/slime_extract/green
-/datum/chemical_reaction/slimemutate/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemutate/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
//Mutated Green
@@ -66,7 +66,7 @@
required_container = /obj/item/slime_extract/green
mix_message = "The mixture rapidly expands and contracts, its appearance shifting into a sickening green."
-/datum/chemical_reaction/slimemutate_unstable/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemutate_unstable/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
//Metal
@@ -79,7 +79,7 @@
required_container = /obj/item/slime_extract/metal
required_other = 1
-/datum/chemical_reaction/slimemetal/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemetal/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/stack/sheet/metal/M = new /obj/item/stack/sheet/metal
M.amount = 15
@@ -98,7 +98,7 @@
required_container = /obj/item/slime_extract/gold
required_other = 1
-/datum/chemical_reaction/slimecrit/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimecrit/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime extract begins to vibrate violently !"), 1)
@@ -115,7 +115,7 @@
required_container = /obj/item/slime_extract/gold
required_other = 1
-/datum/chemical_reaction/slimecritlesser/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimecritlesser/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime extract begins to vibrate violently !"), 1)
@@ -133,7 +133,7 @@
required_container = /obj/item/slime_extract/silver
required_other = 1
-/datum/chemical_reaction/slimebork/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimebork/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/list/blocked = list(/obj/item/weapon/reagent_containers/food/snacks,
@@ -181,7 +181,7 @@
required_container = /obj/item/slime_extract/silver
required_other = 1
-/datum/chemical_reaction/slimebork2/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimebork2/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/list/blocked = list(/obj/item/weapon/reagent_containers/food/drinks)
@@ -214,7 +214,7 @@
required_container = /obj/item/slime_extract/blue
required_other = 1
-/datum/chemical_reaction/slimefrost/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimefrost/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
@@ -227,7 +227,7 @@
required_container = /obj/item/slime_extract/blue
required_other = 1
-/datum/chemical_reaction/slimestabilizer/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimestabilizer/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/weapon/slimestabilizer/P = new /obj/item/weapon/slimestabilizer
P.loc = get_turf(holder.my_atom)
@@ -244,7 +244,7 @@
required_container = /obj/item/slime_extract/darkblue
required_other = 1
-/datum/chemical_reaction/slimefreeze/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimefreeze/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime extract begins to vibrate violently !"), 1)
@@ -265,7 +265,7 @@
required_container = /obj/item/slime_extract/orange
required_other = 1
-/datum/chemical_reaction/slimecasp/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimecasp/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
/datum/chemical_reaction/slimefire
@@ -277,7 +277,7 @@
required_container = /obj/item/slime_extract/orange
required_other = 1
-/datum/chemical_reaction/slimefire/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimefire/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime extract begins to vibrate violently !"), 1)
@@ -298,7 +298,7 @@
required_container = /obj/item/slime_extract/yellow
required_other = 1
-/datum/chemical_reaction/slimeoverload/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/slimeoverload/on_reaction(datum/reagents/holder, created_volume)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
empulse(get_turf(holder.my_atom), 3, 7)
@@ -312,7 +312,7 @@
required_container = /obj/item/slime_extract/yellow
required_other = 1
-/datum/chemical_reaction/slimecell/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/slimecell/on_reaction(datum/reagents/holder, created_volume)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/weapon/stock_parts/cell/high/slime/P = new /obj/item/weapon/stock_parts/cell/high/slime
P.loc = get_turf(holder.my_atom)
@@ -326,7 +326,7 @@
required_container = /obj/item/slime_extract/yellow
required_other = 1
-/datum/chemical_reaction/slimeglow/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeglow/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime begins to emit a soft light. Squeezing it will cause it to grow brightly."), 1)
@@ -344,7 +344,7 @@
required_container = /obj/item/slime_extract/purple
required_other = 1
-/datum/chemical_reaction/slimepsteroid/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimepsteroid/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/weapon/slimesteroid/P = new /obj/item/weapon/slimesteroid
P.loc = get_turf(holder.my_atom)
@@ -358,7 +358,7 @@
required_container = /obj/item/slime_extract/purple
required_other = 1
-/datum/chemical_reaction/slimejam/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimejam/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
@@ -372,7 +372,7 @@
required_container = /obj/item/slime_extract/darkpurple
required_other = 1
-/datum/chemical_reaction/slimeplasma/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeplasma/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/stack/sheet/mineral/plasma/P = new /obj/item/stack/sheet/mineral/plasma
P.amount = 10
@@ -401,7 +401,7 @@
required_container = /obj/item/slime_extract/red
required_other = 1
-/datum/chemical_reaction/slimemutator/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemutator/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/weapon/slimemutator/P = new /obj/item/weapon/slimemutator
P.loc = get_turf(holder.my_atom)
@@ -415,7 +415,7 @@
required_container = /obj/item/slime_extract/red
required_other = 1
-/datum/chemical_reaction/slimebloodlust/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimebloodlust/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/living/simple_animal/slime/slime in viewers(get_turf(holder.my_atom), null))
slime.rabid = 1
@@ -432,7 +432,7 @@
required_container = /obj/item/slime_extract/pink
required_other = 1
-/datum/chemical_reaction/slimeppotion/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeppotion/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/slimepotion/P = new /obj/item/slimepotion
P.loc = get_turf(holder.my_atom)
@@ -448,7 +448,7 @@
required_other = 1
required_container = /obj/item/slime_extract/black
-/datum/chemical_reaction/slimemutate2/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimemutate2/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
//Oil
@@ -461,7 +461,7 @@
required_container = /obj/item/slime_extract/oil
required_other = 1
-/datum/chemical_reaction/slimeexplosion/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeexplosion/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
for(var/mob/O in viewers(get_turf(holder.my_atom), null))
O.show_message(text("The slime extract begins to vibrate violently !"), 1)
@@ -479,7 +479,7 @@
required_reagents = list("plasma" = 1)
required_other = 1
-/datum/chemical_reaction/slimepotion2/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimepotion2/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/slimepotion2/P = new /obj/item/slimepotion2
P.loc = get_turf(holder.my_atom)
@@ -494,7 +494,7 @@
required_container = /obj/item/slime_extract/adamantine
required_other = 1
-/datum/chemical_reaction/slimegolem/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimegolem/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/effect/golemrune/Z = new /obj/effect/golemrune
Z.loc = get_turf(holder.my_atom)
@@ -510,7 +510,7 @@
required_container = /obj/item/slime_extract/bluespace
required_other = 1
-/datum/chemical_reaction/slimefloor2/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/slimefloor2/on_reaction(datum/reagents/holder, created_volume)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/stack/tile/bluespace/P = new /obj/item/stack/tile/bluespace
P.amount = 25
@@ -526,7 +526,7 @@
required_container = /obj/item/slime_extract/bluespace
required_other = 1
-/datum/chemical_reaction/slimecrystal/on_reaction(var/datum/reagents/holder, var/created_volume)
+/datum/chemical_reaction/slimecrystal/on_reaction(datum/reagents/holder, created_volume)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
if(holder.my_atom)
var/obj/item/bluespace_crystal/BC = new(get_turf(holder.my_atom))
@@ -542,7 +542,7 @@
required_container = /obj/item/slime_extract/cerulean
required_other = 1
-/datum/chemical_reaction/slimepsteroid2/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimepsteroid2/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/weapon/slimesteroid2/P = new /obj/item/weapon/slimesteroid2
P.loc = get_turf(holder.my_atom)
@@ -557,7 +557,7 @@
required_container = /obj/item/slime_extract/sepia
required_other = 1
-/datum/chemical_reaction/slimestop/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimestop/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/mob/mob = get_mob_by_key(holder.my_atom.fingerprintslast)
var/obj/effect/timestop/T = new /obj/effect/timestop
@@ -575,7 +575,7 @@
required_container = /obj/item/slime_extract/sepia
required_other = 1
-/datum/chemical_reaction/slimecamera/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimecamera/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/device/camera/P = new /obj/item/device/camera
P.loc = get_turf(holder.my_atom)
@@ -591,7 +591,7 @@
required_container = /obj/item/slime_extract/sepia
required_other = 1
-/datum/chemical_reaction/slimefloor/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimefloor/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/obj/item/stack/tile/sepia/P = new /obj/item/stack/tile/sepia
P.amount = 25
@@ -610,7 +610,7 @@
required_container = /obj/item/slime_extract/pyrite
required_other = 1
-/datum/chemical_reaction/slimepaint/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimepaint/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/list/paints = typesof(/obj/item/weapon/paint) - /obj/item/weapon/paint
var/chosen = pick(paints)
@@ -628,7 +628,7 @@
required_other = 1
required_container = /obj/item/slime_extract/rainbow
-/datum/chemical_reaction/slimeRNG/on_reaction(var/datum/reagents/holder)
+/datum/chemical_reaction/slimeRNG/on_reaction(datum/reagents/holder)
feedback_add_details("slime_cores_used","[replacetext(name," ","_")]")
var/mob/living/simple_animal/slime/S = new /mob/living/simple_animal/slime
S.colour = pick("grey","orange", "metal", "blue", "purple", "dark purple", "dark blue", "green", "silver", "yellow", "gold", "yellow", "red", "silver", "pink", "cerulean", "sepia", "bluespace", "pyrite", "light pink", "oil", "adamantine", "black")
diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm
index b8edfbae4a6..c75e6c3e82d 100644
--- a/code/modules/reagents/reagent_containers.dm
+++ b/code/modules/reagents/reagent_containers.dm
@@ -36,16 +36,16 @@
if(list_reagents)
reagents.add_reagent_list(list_reagents)
-/obj/item/weapon/reagent_containers/attack_self(mob/user as mob)
+/obj/item/weapon/reagent_containers/attack_self(mob/user)
return
-/obj/item/weapon/reagent_containers/attack(mob/M as mob, mob/user as mob, def_zone)
+/obj/item/weapon/reagent_containers/attack(mob/M, mob/user, def_zone)
return
/obj/item/weapon/reagent_containers/afterattack(obj/target, mob/user , flag)
return
-/obj/item/weapon/reagent_containers/proc/reagentlist(var/obj/item/weapon/reagent_containers/snack) //Attack logs for regents in pills
+/obj/item/weapon/reagent_containers/proc/reagentlist(obj/item/weapon/reagent_containers/snack) //Attack logs for regents in pills
var/data
if(snack.reagents.reagent_list && snack.reagents.reagent_list.len) //find a reagent list if there is and check if it has entries
for (var/datum/reagent/R in snack.reagents.reagent_list) //no reagents will be left behind
diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm
index eed51ff2a81..ab68ee49f79 100644
--- a/code/modules/reagents/reagent_containers/borghydro.dm
+++ b/code/modules/reagents/reagent_containers/borghydro.dm
@@ -64,7 +64,7 @@ Borg Hypospray
// Use this to add more chemicals for the borghypo to produce.
-/obj/item/weapon/reagent_containers/borghypo/proc/add_reagent(var/reagent)
+/obj/item/weapon/reagent_containers/borghypo/proc/add_reagent(reagent)
reagent_ids |= reagent
var/datum/reagents/RG = new(30)
RG.my_atom = src
@@ -82,7 +82,7 @@ Borg Hypospray
R.cell.use(charge_cost) //Take power from borg...
RG.add_reagent(reagent_ids[mode], 5) //And fill hypo with reagent.
-/obj/item/weapon/reagent_containers/borghypo/attack(mob/living/M as mob, mob/user as mob)
+/obj/item/weapon/reagent_containers/borghypo/attack(mob/living/M, mob/user)
var/datum/reagents/R = reagent_list[mode]
if(!R.total_volume)
user << "The injector is empty."
@@ -100,11 +100,11 @@ Borg Hypospray
return
/obj/item/weapon/reagent_containers/borghypo/attack_self(mob/user)
- mode++
- if(mode > reagent_list.len)
- mode = 1
+ var/chosen_reagent = modes[input(user, "What reagent do you want to dispense?") as null|anything in reagent_ids]
+ if(!chosen_reagent)
+ return
+ mode = chosen_reagent
playsound(loc, 'sound/effects/pop.ogg', 50, 0)
-
var/datum/reagent/R = chemical_reagents_list[reagent_ids[mode]]
user << "[src] is now dispensing '[R.name]'."
return
@@ -139,7 +139,7 @@ Borg Shaker
reagent_ids = list("beer", "orangejuice", "limejuice", "tomatojuice", "cola", "tonic", "sodawater", "ice", "cream", "whiskey", "vodka", "rum", "gin", "tequila", "vermouth", "wine", "kahlua", "cognac", "ale")
-/obj/item/weapon/reagent_containers/borghypo/borgshaker/attack(mob/M as mob, mob/user as mob)
+/obj/item/weapon/reagent_containers/borghypo/borgshaker/attack(mob/M, mob/user)
return //Can't inject stuff with a shaker, can we?
/obj/item/weapon/reagent_containers/borghypo/borgshaker/regenerate_reagents()
@@ -153,15 +153,6 @@ Borg Shaker
R.cell.use(charge_cost)
RG.add_reagent(reagent_ids[valueofi], 5)
-/obj/item/weapon/reagent_containers/borghypo/borgshaker/attack_self(mob/user)
- mode = modes[input(user, "What reagent do you want to dispense?") as anything in reagent_ids]
-
- playsound(loc, 'sound/effects/pop.ogg', 50, 0)
-
- var/datum/reagent/R = chemical_reagents_list[reagent_ids[mode]]
- user << "[src] is now dispensing '[R.name]'."
- return
-
/obj/item/weapon/reagent_containers/borghypo/borgshaker/afterattack(obj/target, mob/user, proximity)
if(!proximity) return
diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm
index 149a5c5c365..0f7e760ceac 100644
--- a/code/modules/reagents/reagent_containers/glass.dm
+++ b/code/modules/reagents/reagent_containers/glass.dm
@@ -20,7 +20,7 @@
/obj/structure/closet,
/obj/structure/sink,
/obj/item/weapon/storage,
- /obj/machinery/atmospherics/unary/cryo_cell,
+ /obj/machinery/atmospherics/components/unary/cryo_cell,
/obj/item/weapon/grenade/chem_grenade,
/obj/machinery/bot/medbot,
/obj/machinery/computer/pandemic,
@@ -34,7 +34,7 @@
-/obj/item/weapon/reagent_containers/glass/attack(mob/M as mob, mob/user as mob, obj/target)
+/obj/item/weapon/reagent_containers/glass/attack(mob/M, mob/user, obj/target)
if(!canconsume(M, user))
return
@@ -125,7 +125,7 @@
reagents.reaction(target, TOUCH)
reagents.clear_reagents()
-/obj/item/weapon/reagent_containers/glass/attackby(var/obj/item/I, mob/user as mob, params)
+/obj/item/weapon/reagent_containers/glass/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/clothing/mask/cigarette)) //ciggies are weird
return
var/hotness = is_hot(I)
@@ -265,7 +265,7 @@
volume = 70
flags = OPENCONTAINER
-/obj/item/weapon/reagent_containers/glass/bucket/attackby(var/obj/O, mob/user as mob, params)
+/obj/item/weapon/reagent_containers/glass/bucket/attackby(obj/O, mob/user, params)
if(istype(O, /obj/item/weapon/mop))
if(reagents.total_volume < 1)
user << "[src] is out of water!"
diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm
index 4ab2c5b5268..5c7b6096d40 100644
--- a/code/modules/reagents/reagent_containers/hypospray.dm
+++ b/code/modules/reagents/reagent_containers/hypospray.dm
@@ -74,7 +74,7 @@
update_icon()
return
-/obj/item/weapon/reagent_containers/hypospray/medipen/attack(mob/M as mob, mob/user as mob)
+/obj/item/weapon/reagent_containers/hypospray/medipen/attack(mob/M, mob/user)
..()
update_icon()
return
diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm
index 054b8113f2f..40a495450fc 100644
--- a/code/modules/reagents/reagent_containers/spray.dm
+++ b/code/modules/reagents/reagent_containers/spray.dm
@@ -17,7 +17,7 @@
possible_transfer_amounts = null
-/obj/item/weapon/reagent_containers/spray/afterattack(atom/A as mob|obj, mob/user as mob)
+/obj/item/weapon/reagent_containers/spray/afterattack(atom/A as mob|obj, mob/user)
if(istype(A, /obj/item/weapon/storage) || istype(A, /obj/structure/table) || istype(A, /obj/structure/rack) || istype(A, /obj/structure/closet) \
|| istype(A, /obj/item/weapon/reagent_containers) || istype(A, /obj/structure/sink) || istype(A, /obj/structure/janitorialcart) || istype(A, /obj/machinery/hydroponics))
return
@@ -47,20 +47,20 @@
playsound(src.loc, 'sound/effects/spray2.ogg', 50, 1, -6)
user.changeNext_move(CLICK_CD_RANGE*2)
user.newtonian_move(get_dir(A, user))
-
+ var/turf/T = get_turf(src)
if(reagents.has_reagent("sacid"))
- message_admins("[key_name_admin(user)] fired sulphuric acid from \a [src].")
- log_game("[key_name(user)] fired sulphuric acid from \a [src].")
+ message_admins("[key_name_admin(user)] fired sulphuric acid from \a [src] at ([get_area(src)] ([T.x], [T.y], [T.z])).")
+ log_game("[key_name(user)] fired sulphuric acid from \a [src] at [get_area(src)] ([T.x], [T.y], [T.z]).")
if(reagents.has_reagent("facid"))
- message_admins("[key_name_admin(user)] fired Fluacid from \a [src].")
- log_game("[key_name(user)] fired Fluacid from \a [src].")
+ message_admins("[key_name_admin(user)] fired Fluacid from \a [src] at ([get_area(src)] ([T.x], [T.y], [T.z])).")
+ log_game("[key_name(user)] fired Fluacid from \a [src] at [get_area(src)] ([T.x], [T.y], [T.z]).")
if(reagents.has_reagent("lube"))
- message_admins("[key_name_admin(user)] fired Space lube from \a [src].")
- log_game("[key_name(user)] fired Space lube from \a [src].")
+ message_admins("[key_name_admin(user)] fired Space lube from \a [src] at ([get_area(src)] ([T.x], [T.y], [T.z])).")
+ log_game("[key_name(user)] fired Space lube from \a [src] at [get_area(src)] ([T.x], [T.y], [T.z]).")
return
-/obj/item/weapon/reagent_containers/spray/proc/spray(var/atom/A)
+/obj/item/weapon/reagent_containers/spray/proc/spray(atom/A)
var/range = max(min(spray_currentrange, get_dist(src, A)), 1)
var/obj/effect/decal/chempuff/D = new /obj/effect/decal/chempuff(get_turf(src))
D.create_reagents(amount_per_transfer_from_this)
@@ -92,7 +92,7 @@
return
qdel(D)
-/obj/item/weapon/reagent_containers/spray/attack_self(var/mob/user)
+/obj/item/weapon/reagent_containers/spray/attack_self(mob/user)
amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10)
spray_currentrange = (spray_currentrange == 1 ? spray_maxrange : 1)
@@ -141,7 +141,7 @@
volume = 10
list_reagents = list("water" = 10)
-/obj/item/weapon/reagent_containers/spray/waterflower/attack_self(var/mob/user) //Don't allow changing how much the flower sprays
+/obj/item/weapon/reagent_containers/spray/waterflower/attack_self(mob/user) //Don't allow changing how much the flower sprays
return
//chemsprayer
@@ -160,7 +160,7 @@
origin_tech = "combat=3;materials=3;engineering=3"
-/obj/item/weapon/reagent_containers/spray/chemsprayer/spray(var/atom/A)
+/obj/item/weapon/reagent_containers/spray/chemsprayer/spray(atom/A)
var/direction = get_dir(src, A)
var/turf/T = get_turf(A)
var/turf/T1 = get_step(T,turn(direction, 90))
@@ -172,7 +172,7 @@
return
..(the_targets[i])
-/obj/item/weapon/reagent_containers/spray/chemsprayer/attack_self(var/mob/user)
+/obj/item/weapon/reagent_containers/spray/chemsprayer/attack_self(mob/user)
amount_per_transfer_from_this = (amount_per_transfer_from_this == 10 ? 5 : 10)
user << "You adjust the output switch. You'll now use [amount_per_transfer_from_this] units per spray."
diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm
index 553f6c9cfbc..4a53376ceb6 100644
--- a/code/modules/reagents/reagent_dispenser.dm
+++ b/code/modules/reagents/reagent_dispenser.dm
@@ -30,7 +30,7 @@
if(prob(50))
qdel(src)
-/obj/structure/reagent_dispensers/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/structure/reagent_dispensers/attackby(obj/item/weapon/W, mob/user, params)
return
/obj/structure/reagent_dispensers/New()
@@ -94,7 +94,7 @@
reagents.add_reagent("welding_fuel",1000)
-/obj/structure/reagent_dispensers/fueltank/bullet_act(var/obj/item/projectile/Proj)
+/obj/structure/reagent_dispensers/fueltank/bullet_act(obj/item/projectile/Proj)
..()
if(istype(Proj ,/obj/item/projectile/beam)||istype(Proj,/obj/item/projectile/bullet))
if((Proj.damage_type == BURN) || (Proj.damage_type == BRUTE))
@@ -145,7 +145,7 @@
..()
reagents.add_reagent("water",500)
-/obj/structure/reagent_dispensers/water_cooler/attack_hand(var/mob/living/carbon/human/user)
+/obj/structure/reagent_dispensers/water_cooler/attack_hand(mob/living/carbon/human/user)
if((!istype(user)) || (user.stat))
return
if(cups <= 0)
@@ -155,7 +155,7 @@
user.put_in_hands(new /obj/item/weapon/reagent_containers/food/drinks/sillycup)
user.visible_message("[user] gets a cup from [src].","You get a cup from [src].")
-/obj/structure/reagent_dispensers/water_cooler/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/reagent_dispensers/water_cooler/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/paper))
if(!user.drop_item())
return
diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm
index 5e077f56ea3..749b76bb1eb 100644
--- a/code/modules/recycling/conveyor2.dm
+++ b/code/modules/recycling/conveyor2.dm
@@ -115,7 +115,7 @@
break
// attack with item, place item on conveyor
-/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user, params)
+/obj/machinery/conveyor/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/crowbar))
if(!(stat & BROKEN))
var/obj/item/conveyor_construct/C = new/obj/item/conveyor_construct(src.loc)
@@ -132,7 +132,7 @@
return
// attack with hand, move pulled object onto conveyor
-/obj/machinery/conveyor/attack_hand(mob/user as mob)
+/obj/machinery/conveyor/attack_hand(mob/user)
user.Move_Pulled(src)
@@ -257,7 +257,7 @@
S.position = position
S.update()
-/obj/machinery/conveyor_switch/attackby(var/obj/item/I, mob/user, params)
+/obj/machinery/conveyor_switch/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/crowbar))
var/obj/item/conveyor_switch_construct/C = new/obj/item/conveyor_switch_construct(src.loc)
C.id = id
diff --git a/code/modules/recycling/disposal-construction.dm b/code/modules/recycling/disposal-construction.dm
index 2576dcfc98c..e85c1218e39 100644
--- a/code/modules/recycling/disposal-construction.dm
+++ b/code/modules/recycling/disposal-construction.dm
@@ -153,7 +153,7 @@
// wrench: (un)anchor
// weldingtool: convert to real pipe
-/obj/structure/disposalconstruct/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/disposalconstruct/attackby(obj/item/I, mob/user, params)
var/nicetype = "pipe"
var/ispipe = is_pipe() // Indicates if we should change the level of this pipe
add_fingerprint(user)
diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm
index 6c071c54d0b..0ad17216e87 100644
--- a/code/modules/recycling/disposal.dm
+++ b/code/modules/recycling/disposal.dm
@@ -71,7 +71,7 @@
trunk_check()
// attack by item places it in to disposal
-/obj/machinery/disposal/attackby(var/obj/item/I, var/mob/user, params)
+/obj/machinery/disposal/attackby(obj/item/I, mob/user, params)
if(stat & BROKEN || !I || !user)
return
@@ -152,8 +152,8 @@
target.visible_message("[user] starts putting [target] into [src].", \
"[user] starts putting you into [src]!")
if(do_mob(user, target, 20))
- if (!src.loc)
- return
+ if (!src.loc)
+ return
if (target.client)
target.client.perspective = EYE_PERSPECTIVE
target.client.eye = src
@@ -171,14 +171,14 @@
/obj/machinery/disposal/alter_health()
return get_turf(src)
-/obj/machinery/disposal/relaymove(mob/user as mob)
+/obj/machinery/disposal/relaymove(mob/user)
attempt_escape(user)
// resist to escape the bin
/obj/machinery/disposal/container_resist()
attempt_escape(usr)
-/obj/machinery/disposal/proc/attempt_escape(mob/user as mob)
+/obj/machinery/disposal/proc/attempt_escape(mob/user)
if(src.flushing)
return
go_out(user)
@@ -196,18 +196,18 @@
// monkeys and xenos can only pull the flush lever
-/obj/machinery/disposal/attack_paw(mob/user as mob)
+/obj/machinery/disposal/attack_paw(mob/user)
if(stat & BROKEN)
return
flush = !flush
update()
// ai as human but can't flush
-/obj/machinery/disposal/attack_ai(mob/user as mob)
+/obj/machinery/disposal/attack_ai(mob/user)
interact(user, 1)
// human interact with machine
-/obj/machinery/disposal/attack_hand(mob/user as mob)
+/obj/machinery/disposal/attack_hand(mob/user)
if(user && user.loc == src)
usr << "You cannot reach the controls from inside!"
return
@@ -219,7 +219,7 @@
interact(user, 0)
// hostile mob escape from disposals
-/obj/machinery/disposal/attack_animal(var/mob/living/simple_animal/M)
+/obj/machinery/disposal/attack_animal(mob/living/simple_animal/M)
if(M.environment_smash)
M.do_attack_animation(src)
visible_message("[M.name] smashes \the [src] apart!")
@@ -227,7 +227,7 @@
return
// user interaction
-/obj/machinery/disposal/interact(mob/user, var/ai=0)
+/obj/machinery/disposal/interact(mob/user, ai=0)
src.add_fingerprint(user)
if(stat & BROKEN)
@@ -417,7 +417,7 @@
// called when holder is expelled from a disposal
// should usually only occur if the pipe network is modified
-/obj/machinery/disposal/proc/expel(var/obj/structure/disposalholder/H)
+/obj/machinery/disposal/proc/expel(obj/structure/disposalholder/H)
var/turf/target
playsound(src, 'sound/machines/hiss.ogg', 50, 0, 0)
@@ -486,7 +486,7 @@
..()
// initialize a holder from the contents of a disposal unit
-/obj/structure/disposalholder/proc/init(var/obj/machinery/disposal/D)
+/obj/structure/disposalholder/proc/init(obj/machinery/disposal/D)
gas = D.air_contents// transfer gas resv. into holder object
//Check for any living mobs trigger hasmob.
@@ -521,7 +521,7 @@
// start the movement process
// argument is the disposal unit the holder started in
-/obj/structure/disposalholder/proc/start(var/obj/machinery/disposal/D)
+/obj/structure/disposalholder/proc/start(obj/machinery/disposal/D)
if(!D.trunk)
D.expel(src) // no trunk connected, so expel immediately
return
@@ -554,7 +554,7 @@
return get_step(loc,dir)
// find a matching pipe on a turf
-/obj/structure/disposalholder/proc/findpipe(var/turf/T)
+/obj/structure/disposalholder/proc/findpipe(turf/T)
if(!T)
return null
@@ -568,7 +568,7 @@
// merge two holder objects
// used when a a holder meets a stuck holder
-/obj/structure/disposalholder/proc/merge(var/obj/structure/disposalholder/other)
+/obj/structure/disposalholder/proc/merge(obj/structure/disposalholder/other)
for(var/atom/movable/AM in other)
AM.loc = src // move everything in other holder to this one
if(ismob(AM))
@@ -579,7 +579,7 @@
// called when player tries to move while in a pipe
-/obj/structure/disposalholder/relaymove(mob/user as mob)
+/obj/structure/disposalholder/relaymove(mob/user)
if (user.stat)
return
if (src.loc)
@@ -588,7 +588,7 @@
playsound(src.loc, 'sound/effects/clang.ogg', 50, 0, 0)
// called to vent all gas in holder to a location
-/obj/structure/disposalholder/proc/vent_gas(var/atom/location)
+/obj/structure/disposalholder/proc/vent_gas(atom/location)
if(location)
location.assume_air(gas) // vent all gas to turf
air_update_turf()
@@ -673,13 +673,13 @@
// returns the direction of the next pipe object, given the entrance dir
// by default, returns the bitmask of remaining directions
-/obj/structure/disposalpipe/proc/nextdir(var/fromdir)
+/obj/structure/disposalpipe/proc/nextdir(fromdir)
return dpdir & (~turn(fromdir, 180))
// transfer the holder through this pipe segment
// overriden for special behaviour
//
-/obj/structure/disposalpipe/proc/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/proc/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir)
H.dir = nextdir
var/turf/T = H.nextloc()
@@ -726,7 +726,7 @@
// called when there is a break in the pipe
//
-/obj/structure/disposalpipe/proc/expel(var/obj/structure/disposalholder/H, var/turf/T, var/direction)
+/obj/structure/disposalpipe/proc/expel(obj/structure/disposalholder/H, turf/T, direction)
var/turf/target
@@ -772,7 +772,7 @@
// will expel any holder inside at the time
// then delete the pipe
// remains : set to leave broken pipe pieces in place
-/obj/structure/disposalpipe/proc/broken(var/remains = 0)
+/obj/structure/disposalpipe/proc/broken(remains = 0)
if(remains)
for(var/D in cardinal)
if(D & dpdir)
@@ -836,7 +836,7 @@
//attack by item
//weldingtool: unfasten and convert to obj/disposalconstruct
-/obj/structure/disposalpipe/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/disposalpipe/attackby(obj/item/I, mob/user, params)
var/turf/T = src.loc
if(T.intact)
@@ -915,7 +915,7 @@
// if coming in from secondary dirs, then next is primary dir
// if coming in from primary dir, then next is equal chance of other dirs
-/obj/structure/disposalpipe/junction/nextdir(var/fromdir)
+/obj/structure/disposalpipe/junction/nextdir(fromdir)
var/flipdir = turn(fromdir, 180)
if(flipdir != dir) // came from secondary dir
return dir // so exit through primary
@@ -973,7 +973,7 @@
update()
return
-/obj/structure/disposalpipe/sortjunction/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/disposalpipe/sortjunction/attackby(obj/item/I, mob/user, params)
if(..())
return
@@ -993,7 +993,7 @@
// if coming in from posdir, then flip around and go back to posdir
// if coming in from sortdir, go to posdir
-/obj/structure/disposalpipe/sortjunction/nextdir(var/fromdir, var/sortTag)
+/obj/structure/disposalpipe/sortjunction/nextdir(fromdir, sortTag)
//var/flipdir = turn(fromdir, 180)
if(fromdir != sortdir) // probably came from the negdir
@@ -1005,7 +1005,7 @@
// so go with the flow to positive direction
return posdir
-/obj/structure/disposalpipe/sortjunction/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/sortjunction/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir, H.destinationTag)
H.dir = nextdir
var/turf/T = H.nextloc()
@@ -1054,7 +1054,7 @@
// if coming in from posdir, then flip around and go back to posdir
// if coming in from sortdir, go to posdir
-/obj/structure/disposalpipe/wrapsortjunction/nextdir(var/fromdir, var/istomail)
+/obj/structure/disposalpipe/wrapsortjunction/nextdir(fromdir, istomail)
//var/flipdir = turn(fromdir, 180)
if(fromdir != sortdir) // probably came from the negdir
@@ -1066,7 +1066,7 @@
// so go with the flow to positive direction
return posdir
-/obj/structure/disposalpipe/wrapsortjunction/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/wrapsortjunction/transfer(obj/structure/disposalholder/H)
var/nextdir = nextdir(H.dir, H.tomail)
H.dir = nextdir
var/turf/T = H.nextloc()
@@ -1119,7 +1119,7 @@
return
// Override attackby so we disallow trunkremoval when somethings ontop
-/obj/structure/disposalpipe/trunk/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/disposalpipe/trunk/attackby(obj/item/I, mob/user, params)
//Disposal bins or chutes
/*
@@ -1164,7 +1164,7 @@
// if not entering from disposal bin,
// transfer to linked object (outlet or bin)
-/obj/structure/disposalpipe/trunk/transfer(var/obj/structure/disposalholder/H)
+/obj/structure/disposalpipe/trunk/transfer(obj/structure/disposalholder/H)
if(H.dir == DOWN) // we just entered from a disposer
return ..() // so do base transfer proc
@@ -1184,7 +1184,7 @@
// nextdir
-/obj/structure/disposalpipe/trunk/nextdir(var/fromdir)
+/obj/structure/disposalpipe/trunk/nextdir(fromdir)
if(fromdir == DOWN)
return dir
else
@@ -1246,7 +1246,7 @@
// expel the contents of the holder object, then delete it
// called when the holder exits the outlet
-/obj/structure/disposaloutlet/proc/expel(var/obj/structure/disposalholder/H)
+/obj/structure/disposaloutlet/proc/expel(obj/structure/disposalholder/H)
flick("outlet-open", src)
if((start_eject + 30) < world.time)
@@ -1267,7 +1267,7 @@
qdel(H)
return
-/obj/structure/disposaloutlet/attackby(var/obj/item/I, var/mob/user, params)
+/obj/structure/disposaloutlet/attackby(obj/item/I, mob/user, params)
if(!I || !user)
return
src.add_fingerprint(user)
@@ -1305,7 +1305,7 @@
// called when movable is expelled from a disposal pipe or outlet
// by default does nothing, override for special behaviour
-/atom/movable/proc/pipe_eject(var/direction)
+/atom/movable/proc/pipe_eject(direction)
return
// check if mob has client, if so restore client view on eject
@@ -1316,7 +1316,7 @@
return
-/obj/effect/decal/cleanable/blood/gibs/pipe_eject(var/direction)
+/obj/effect/decal/cleanable/blood/gibs/pipe_eject(direction)
var/list/dirs
if(direction)
dirs = list( direction, turn(direction, -45), turn(direction, 45))
@@ -1325,11 +1325,11 @@
src.streak(dirs)
-/obj/effect/decal/cleanable/robot_debris/gib/pipe_eject(var/direction)
+/obj/effect/decal/cleanable/robot_debris/gib/pipe_eject(direction)
var/list/dirs
if(direction)
dirs = list( direction, turn(direction, -45), turn(direction, 45))
else
dirs = alldirs.Copy()
- src.streak(dirs)
+ src.streak(dirs)
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index 5225e5a4d48..fc8b12cbe5b 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -10,7 +10,7 @@
var/sortTag = 0
-/obj/structure/bigDelivery/attack_hand(mob/user as mob)
+/obj/structure/bigDelivery/attack_hand(mob/user)
playsound(src.loc, 'sound/items/poster_ripped.ogg', 50, 1)
qdel(src)
@@ -25,7 +25,7 @@
AM.loc = T
..()
-/obj/structure/bigDelivery/attackby(obj/item/W as obj, mob/user as mob, params)
+/obj/structure/bigDelivery/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/device/destTagger))
var/obj/item/device/destTagger/O = W
@@ -68,7 +68,7 @@
var/sortTag = 0
-/obj/item/smallDelivery/attack_self(mob/user as mob)
+/obj/item/smallDelivery/attack_self(mob/user)
if(wrapped && wrapped.loc) //sometimes items can disappear. For example, bombs. --rastaf0
wrapped.loc = user.loc
if(ishuman(user))
@@ -79,7 +79,7 @@
qdel(src)
-/obj/item/smallDelivery/attackby(obj/item/W as obj, mob/user as mob, params)
+/obj/item/smallDelivery/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/device/destTagger))
var/obj/item/device/destTagger/O = W
@@ -120,7 +120,7 @@
burn_state = 0 //burnable
-/obj/item/stack/packageWrap/afterattack(var/obj/target as obj, mob/user as mob, proximity)
+/obj/item/stack/packageWrap/afterattack(obj/target, mob/user, proximity)
if(!proximity) return
if(!istype(target)) //this really shouldn't be necessary (but it is). -Pete
return
@@ -204,7 +204,7 @@
flags = CONDUCT
slot_flags = SLOT_BELT
-/obj/item/device/destTagger/proc/openwindow(mob/user as mob)
+/obj/item/device/destTagger/proc/openwindow(mob/user)
var/dat = "TagMaster 2.2
"
dat += ""
@@ -219,7 +219,7 @@
user << browse(dat, "window=destTagScreen;size=450x350")
onclose(user, "destTagScreen")
-/obj/item/device/destTagger/attack_self(mob/user as mob)
+/obj/item/device/destTagger/attack_self(mob/user)
openwindow(user)
return
@@ -256,7 +256,7 @@
/obj/machinery/disposal/deliveryChute/update()
return
-/obj/machinery/disposal/deliveryChute/Bumped(var/atom/movable/AM) //Go straight into the chute
+/obj/machinery/disposal/deliveryChute/Bumped(atom/movable/AM) //Go straight into the chute
if(!AM.disposalEnterTry())
return
switch(dir)
@@ -292,7 +292,7 @@
/obj/machinery/disposal/deliveryChute/newHolderDestination(obj/structure/disposalholder/H)
H.destinationTag = 1
-/obj/machinery/disposal/deliveryChute/attackby(var/obj/item/I, var/mob/user, params)
+/obj/machinery/disposal/deliveryChute/attackby(obj/item/I, mob/user, params)
if(!I || !user)
return
diff --git a/code/modules/research/circuitprinter.dm b/code/modules/research/circuitprinter.dm
index ad73173fdbe..59205f31359 100644
--- a/code/modules/research/circuitprinter.dm
+++ b/code/modules/research/circuitprinter.dm
@@ -59,7 +59,7 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis).
qdel(src)
-/obj/machinery/r_n_d/circuit_imprinter/proc/check_mat(datum/design/being_built, var/M)
+/obj/machinery/r_n_d/circuit_imprinter/proc/check_mat(datum/design/being_built, M)
switch(M)
if(MAT_GLASS)
return (g_amount - (being_built.materials[M]/efficiency_coeff) >= 0)
@@ -74,7 +74,7 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis).
/obj/machinery/r_n_d/circuit_imprinter/proc/TotalMaterials()
return g_amount + gold_amount + diamond_amount
-/obj/machinery/r_n_d/circuit_imprinter/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/r_n_d/circuit_imprinter/attackby(obj/item/O, mob/user, params)
if (shocked)
shock(user,50)
if (default_deconstruction_screwdriver(user, "circuit_imprinter_t", "circuit_imprinter", O))
diff --git a/code/modules/research/designs.dm b/code/modules/research/designs.dm
index a7af564216a..4f7414e3457 100644
--- a/code/modules/research/designs.dm
+++ b/code/modules/research/designs.dm
@@ -44,7 +44,7 @@ other types of metals and chemistry for reagents).
//A proc to calculate the reliability of a design based on tech levels and innate modifiers.
//Input: A list of /datum/tech; Output: The new reliabilty.
-/datum/design/proc/CalcReliability(var/list/temp_techs)
+/datum/design/proc/CalcReliability(list/temp_techs)
var/new_reliability
for(var/datum/tech/T in temp_techs)
if(T.id in req_tech)
diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm
index 57f36ad9179..6fef356857b 100644
--- a/code/modules/research/destructive_analyzer.dm
+++ b/code/modules/research/destructive_analyzer.dm
@@ -30,14 +30,14 @@ Note: Must be placed within 3 tiles of the R&D Console
decon_mod = T
-/obj/machinery/r_n_d/destructive_analyzer/proc/ConvertReqString2List(var/list/source_list)
+/obj/machinery/r_n_d/destructive_analyzer/proc/ConvertReqString2List(list/source_list)
var/list/temp_list = params2list(source_list)
for(var/O in temp_list)
temp_list[O] = text2num(temp_list[O])
return temp_list
-/obj/machinery/r_n_d/destructive_analyzer/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/r_n_d/destructive_analyzer/attackby(obj/item/O, mob/user, params)
if (shocked)
shock(user,50)
if (default_deconstruction_screwdriver(user, "d_analyzer_t", "d_analyzer", O))
diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm
index 731a78e8b7c..0d9299f5ce1 100644
--- a/code/modules/research/experimentor.dm
+++ b/code/modules/research/experimentor.dm
@@ -34,7 +34,7 @@
var/list/valid_items = list() //valid items for special reactions like transforming
var/list/critical_items = list() //items that can cause critical reactions
-/obj/machinery/r_n_d/experimentor/proc/ConvertReqString2List(var/list/source_list)
+/obj/machinery/r_n_d/experimentor/proc/ConvertReqString2List(list/source_list)
var/list/temp_list = params2list(source_list)
for(var/O in temp_list)
temp_list[O] = text2num(temp_list[O])
@@ -106,7 +106,7 @@
for(var/obj/item/weapon/stock_parts/micro_laser/M in component_parts)
badThingCoeff += M.rating
-/obj/machinery/r_n_d/experimentor/proc/checkCircumstances(var/obj/item/O as obj)
+/obj/machinery/r_n_d/experimentor/proc/checkCircumstances(obj/item/O)
//snowflake check to only take "made" bombs
if(istype(O,/obj/item/device/transfer_valve))
var/obj/item/device/transfer_valve/T = O
@@ -114,7 +114,7 @@
return FALSE
return TRUE
-/obj/machinery/r_n_d/experimentor/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/r_n_d/experimentor/attackby(obj/item/O, mob/user, params)
if (shocked)
shock(user,50)
@@ -162,11 +162,11 @@
return
-/obj/machinery/r_n_d/experimentor/default_deconstruction_crowbar(var/obj/item/O)
+/obj/machinery/r_n_d/experimentor/default_deconstruction_crowbar(obj/item/O)
ejectItem()
..(O)
-/obj/machinery/r_n_d/experimentor/attack_hand(mob/user as mob)
+/obj/machinery/r_n_d/experimentor/attack_hand(mob/user)
user.set_machine(src)
var/dat = ""
if(!linked_console)
@@ -200,7 +200,7 @@
onclose(user, "experimentor")
-/obj/machinery/r_n_d/experimentor/proc/matchReaction(var/matching,var/reaction)
+/obj/machinery/r_n_d/experimentor/proc/matchReaction(matching,reaction)
var/obj/item/D = matching
if(D)
if(item_reactions.Find("[D.type]"))
@@ -214,7 +214,7 @@
else
return FAIL
-/obj/machinery/r_n_d/experimentor/proc/ejectItem(var/delete=FALSE)
+/obj/machinery/r_n_d/experimentor/proc/ejectItem(delete=FALSE)
if(loaded_item)
if(cloneMode && cloneCount > 0)
visible_message("A duplicate [loaded_item] pops out!")
@@ -230,12 +230,12 @@
qdel(loaded_item)
loaded_item = null
-/obj/machinery/r_n_d/experimentor/proc/throwSmoke(var/turf/where)
+/obj/machinery/r_n_d/experimentor/proc/throwSmoke(turf/where)
var/datum/effect/effect/system/smoke_spread/smoke = new
smoke.set_up(1,0, where, 0)
smoke.start()
-/obj/machinery/r_n_d/experimentor/proc/pickWeighted(var/list/from)
+/obj/machinery/r_n_d/experimentor/proc/pickWeighted(list/from)
var/result = FALSE
var/counter = 1
while(!result)
@@ -248,7 +248,7 @@
else
counter = 1
-/obj/machinery/r_n_d/experimentor/proc/experiment(var/exp,var/obj/item/exp_on)
+/obj/machinery/r_n_d/experimentor/proc/experiment(exp,obj/item/exp_on)
recentlyExperimented = 1
icon_state = "h_lathe_wloop"
var/chosenchem
@@ -588,7 +588,7 @@
return
//~~~~~~~~Admin logging proc, aka the Powergamer Alarm~~~~~~~~
-/obj/machinery/r_n_d/experimentor/proc/warn_admins(var/mob/user, var/ReactionName)
+/obj/machinery/r_n_d/experimentor/proc/warn_admins(mob/user, ReactionName)
var/turf/T = get_turf(src)
message_admins("Experimentor reaction: [ReactionName] generated by [key_name_admin(user)](?) (FLW) at ([T.x],[T.y],[T.z] - JMP)",0,1)
log_game("Experimentor reaction: [ReactionName] generated by [key_name(user)] in ([T.x],[T.y],[T.z])")
@@ -636,7 +636,7 @@
cooldownMax = rand(60,300)
realProc = pick("teleport","explode","rapidDupe","petSpray","flash","clean","corgicannon")
-/obj/item/weapon/relic/attack_self(mob/user as mob)
+/obj/item/weapon/relic/attack_self(mob/user)
if(revealed)
if(cooldown)
user << "[src] does not react!"
@@ -651,31 +651,31 @@
//////////////// RELIC PROCS /////////////////////////////
-/obj/item/weapon/relic/proc/throwSmoke(var/turf/where)
+/obj/item/weapon/relic/proc/throwSmoke(turf/where)
var/datum/effect/effect/system/smoke_spread/smoke = new
smoke.set_up(1,0, where, 0)
smoke.start()
-/obj/item/weapon/relic/proc/corgicannon(var/mob/user)
+/obj/item/weapon/relic/proc/corgicannon(mob/user)
playsound(src.loc, "sparks", rand(25,50), 1)
var/mob/living/simple_animal/pet/corgi/C = new/mob/living/simple_animal/pet/corgi(get_turf(user))
C.throw_at(pick(oview(10,user)),10,rand(3,8))
throwSmoke(get_turf(C))
warn_admins(user, "Corgi Cannon", 0)
-/obj/item/weapon/relic/proc/clean(var/mob/user)
+/obj/item/weapon/relic/proc/clean(mob/user)
playsound(src.loc, "sparks", rand(25,50), 1)
var/obj/item/weapon/grenade/chem_grenade/cleaner/CL = new/obj/item/weapon/grenade/chem_grenade/cleaner(get_turf(user))
CL.prime()
warn_admins(user, "Smoke", 0)
-/obj/item/weapon/relic/proc/flash(var/mob/user)
+/obj/item/weapon/relic/proc/flash(mob/user)
playsound(src.loc, "sparks", rand(25,50), 1)
var/obj/item/weapon/grenade/flashbang/CB = new/obj/item/weapon/grenade/flashbang(get_turf(user))
CB.prime()
warn_admins(user, "Flash")
-/obj/item/weapon/relic/proc/petSpray(var/mob/user)
+/obj/item/weapon/relic/proc/petSpray(mob/user)
var/message = "[src] begans to shake, and in the distance the sound of rampaging animals arises!"
visible_message(message)
user << message
@@ -690,7 +690,7 @@
user << "[src] falls apart!"
qdel(src)
-/obj/item/weapon/relic/proc/rapidDupe(var/mob/user)
+/obj/item/weapon/relic/proc/rapidDupe(mob/user)
audible_message("[src] emits a loud pop!")
var/list/dupes = list()
var/counter
@@ -711,7 +711,7 @@
qdel(R)
warn_admins(user, "Rapid duplicator", 0)
-/obj/item/weapon/relic/proc/explode(var/mob/user)
+/obj/item/weapon/relic/proc/explode(mob/user)
user << "[src] begins to heat up!"
spawn(rand(35,100))
if(src.loc == user)
@@ -720,7 +720,7 @@
warn_admins(user, "Explosion")
qdel(src) //Comment this line to produce a light grenade (the bomb that keeps on exploding when used)!!
-/obj/item/weapon/relic/proc/teleport(var/mob/user)
+/obj/item/weapon/relic/proc/teleport(mob/user)
user << "The [src] begins to vibrate!"
spawn(rand(10,30))
var/turf/userturf = get_turf(user)
@@ -732,7 +732,7 @@
warn_admins(user, "Teleport", 0)
//Admin Warning proc for relics
-/obj/item/weapon/relic/proc/warn_admins(var/mob/user, var/RelicType, var/priority = 1)
+/obj/item/weapon/relic/proc/warn_admins(mob/user, RelicType, priority = 1)
var/turf/T = get_turf(src)
var/log_msg = "[RelicType] relic used by [key_name(user)] in ([T.x],[T.y],[T.z])"
if(priority) //For truly dangerous relics that may need an admin's attention. BWOINK!
diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm
index 6c584bc1a15..901d291e947 100644
--- a/code/modules/research/message_server.dm
+++ b/code/modules/research/message_server.dm
@@ -116,17 +116,17 @@ var/global/list/obj/machinery/message_server/message_servers = list()
update_icon()
return
-/obj/machinery/message_server/proc/send_chat_message(var/sender = "", var/channel = "", var/message = "")
+/obj/machinery/message_server/proc/send_chat_message(sender = "", channel = "", message = "")
chat_msgs += new/datum/data_chat_msg(sender,channel,message)
-/obj/machinery/message_server/proc/send_pda_message(var/recipient = "",var/sender = "",var/message = "",var/photo=null)
+/obj/machinery/message_server/proc/send_pda_message(recipient = "",sender = "",message = "",photo=null)
. = new/datum/data_pda_msg(recipient,sender,message,photo)
pda_msgs += .
-/obj/machinery/message_server/proc/send_rc_message(var/recipient = "",var/sender = "",var/message = "",var/stamp = "", var/id_auth = "", var/priority = 1)
+/obj/machinery/message_server/proc/send_rc_message(recipient = "",sender = "",message = "",stamp = "", id_auth = "", priority = 1)
rc_msgs += new/datum/data_rc_msg(recipient,sender,message,stamp,id_auth)
-/obj/machinery/message_server/attack_hand(user as mob)
+/obj/machinery/message_server/attack_hand(mob/user)
// user << "\blue There seem to be some parts missing from this server. They should arrive on the station in a few days, give or take a few Centcom delays."
user << "You toggle PDA message passing from [active ? "On" : "Off"] to [active ? "Off" : "On"]"
active = !active
@@ -154,7 +154,7 @@ var/global/list/obj/machinery/message_server/message_servers = list()
variable = param_variable
value = param_value
-/datum/feedback_variable/proc/inc(var/num = 1)
+/datum/feedback_variable/proc/inc(num = 1)
if (isnum(value))
value += num
else
@@ -164,7 +164,7 @@ var/global/list/obj/machinery/message_server/message_servers = list()
else
value = num
-/datum/feedback_variable/proc/dec(var/num = 1)
+/datum/feedback_variable/proc/dec(num = 1)
if (isnum(value))
value -= num
else
@@ -174,7 +174,7 @@ var/global/list/obj/machinery/message_server/message_servers = list()
else
value = -num
-/datum/feedback_variable/proc/set_value(var/num)
+/datum/feedback_variable/proc/set_value(num)
if (isnum(num))
value = num
@@ -186,11 +186,11 @@ var/global/list/obj/machinery/message_server/message_servers = list()
/datum/feedback_variable/proc/get_variable()
return variable
-/datum/feedback_variable/proc/set_details(var/text)
+/datum/feedback_variable/proc/set_details(text)
if (istext(text))
details = text
-/datum/feedback_variable/proc/add_details(var/text)
+/datum/feedback_variable/proc/add_details(text)
if (istext(text))
text = replacetext(text, " ", "_")
if (!details)
@@ -260,7 +260,7 @@ var/obj/machinery/blackbox_recorder/blackbox
blackbox = BR
..()
-/obj/machinery/blackbox_recorder/proc/find_feedback_datum(var/variable)
+/obj/machinery/blackbox_recorder/proc/find_feedback_datum(variable)
for (var/datum/feedback_variable/FV in feedback)
if (FV.get_variable() == variable)
return FV
@@ -340,7 +340,7 @@ var/obj/machinery/blackbox_recorder/blackbox
query_insert.Execute()
-/proc/feedback_set(var/variable,var/value)
+/proc/feedback_set(variable,value)
if (!blackbox) return
var/datum/feedback_variable/FV = blackbox.find_feedback_datum(variable)
@@ -349,7 +349,7 @@ var/obj/machinery/blackbox_recorder/blackbox
FV.set_value(value)
-/proc/feedback_inc(var/variable,var/value)
+/proc/feedback_inc(variable,value)
if (!blackbox) return
var/datum/feedback_variable/FV = blackbox.find_feedback_datum(variable)
@@ -358,7 +358,7 @@ var/obj/machinery/blackbox_recorder/blackbox
FV.inc(value)
-/proc/feedback_dec(var/variable,var/value)
+/proc/feedback_dec(variable,value)
if (!blackbox) return
var/datum/feedback_variable/FV = blackbox.find_feedback_datum(variable)
@@ -367,7 +367,7 @@ var/obj/machinery/blackbox_recorder/blackbox
FV.dec(value)
-/proc/feedback_set_details(var/variable,var/details)
+/proc/feedback_set_details(variable,details)
if (!blackbox) return
var/datum/feedback_variable/FV = blackbox.find_feedback_datum(variable)
@@ -376,7 +376,7 @@ var/obj/machinery/blackbox_recorder/blackbox
FV.set_details(details)
-/proc/feedback_add_details(var/variable,var/details)
+/proc/feedback_add_details(variable,details)
if (!blackbox) return
var/datum/feedback_variable/FV = blackbox.find_feedback_datum(variable)
diff --git a/code/modules/research/protolathe.dm b/code/modules/research/protolathe.dm
index 6ab22db8ebc..07ab76f7b5d 100644
--- a/code/modules/research/protolathe.dm
+++ b/code/modules/research/protolathe.dm
@@ -70,7 +70,7 @@ Note: Must be placed west/left of and R&D console to function.
T += (M.rating/3)
efficiency_coeff = max(T, 1)
-/obj/machinery/r_n_d/protolathe/proc/check_mat(datum/design/being_built, var/M) // now returns how many times the item can be built with the material
+/obj/machinery/r_n_d/protolathe/proc/check_mat(datum/design/being_built, M) // now returns how many times the item can be built with the material
var/A = 0
switch(M)
if(MAT_METAL)
@@ -94,7 +94,7 @@ Note: Must be placed west/left of and R&D console to function.
A = A / max(1, (being_built.materials[M]/efficiency_coeff))
return A
-/obj/machinery/r_n_d/protolathe/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/r_n_d/protolathe/attackby(obj/item/O, mob/user, params)
if (shocked)
shock(user,50)
if (default_deconstruction_screwdriver(user, "protolathe_t", "protolathe", O))
diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm
index b96bc830e9b..a3e8c47888d 100644
--- a/code/modules/research/rdconsole.dm
+++ b/code/modules/research/rdconsole.dm
@@ -52,7 +52,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/list/datum/design/matching_designs = list() //for the search function
-/obj/machinery/computer/rdconsole/proc/CallTechName(var/ID) //A simple helper proc to find the name of a tech with a given ID.
+/obj/machinery/computer/rdconsole/proc/CallTechName(ID) //A simple helper proc to find the name of a tech with a given ID.
var/datum/tech/check_tech
var/return_name = null
for(var/T in typesof(/datum/tech) - /datum/tech)
@@ -66,7 +66,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
return return_name
-/obj/machinery/computer/rdconsole/proc/CallMaterialName(var/ID)
+/obj/machinery/computer/rdconsole/proc/CallMaterialName(ID)
var/datum/reagent/temp_reagent
var/return_name = null
if (copytext(ID, 1, 2) == "$")
@@ -144,7 +144,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
griefProtection()
*/
-/obj/machinery/computer/rdconsole/attackby(var/obj/item/weapon/D as obj, var/mob/user as mob, params)
+/obj/machinery/computer/rdconsole/attackby(obj/item/weapon/D, mob/user, params)
//Loading a disk into it.
if(istype(D, /obj/item/weapon/disk))
@@ -166,7 +166,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
src.updateUsrDialog()
return
-/obj/machinery/computer/rdconsole/emag_act(mob/user as mob)
+/obj/machinery/computer/rdconsole/emag_act(mob/user)
if(!emagged)
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
@@ -603,7 +603,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
return
-/obj/machinery/computer/rdconsole/attack_hand(mob/user as mob)
+/obj/machinery/computer/rdconsole/attack_hand(mob/user)
if(..())
return
interact(user)
@@ -1063,7 +1063,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
return
//helper proc, which return a table containing categories
-/obj/machinery/computer/rdconsole/proc/list_categories(var/list/categories, var/menu_num as num)
+/obj/machinery/computer/rdconsole/proc/list_categories(list/categories, menu_num as num)
if(!categories)
return
diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm
index e4ed832817e..91a33aa41be 100644
--- a/code/modules/research/rdmachines.dm
+++ b/code/modules/research/rdmachines.dm
@@ -49,7 +49,7 @@
else
return 0
-/obj/machinery/r_n_d/attack_hand(mob/user as mob)
+/obj/machinery/r_n_d/attack_hand(mob/user)
if (shocked)
shock(user,50)
if(panel_open)
diff --git a/code/modules/research/research.dm b/code/modules/research/research.dm
index 397f6edbad4..ac43f99f99c 100644
--- a/code/modules/research/research.dm
+++ b/code/modules/research/research.dm
@@ -63,7 +63,7 @@ research holder datum.
//Checks to see if tech has all the required pre-reqs.
//Input: datum/tech; Output: 0/1 (false/true)
-/datum/research/proc/TechHasReqs(var/datum/tech/T)
+/datum/research/proc/TechHasReqs(datum/tech/T)
if(T.req_tech.len == 0)
return 1
var/matches = 0
@@ -79,7 +79,7 @@ research holder datum.
//Checks to see if design has all the required pre-reqs.
//Input: datum/design; Output: 0/1 (false/true)
-/datum/research/proc/DesignHasReqs(var/datum/design/D)//Heavily optimized -Sieve
+/datum/research/proc/DesignHasReqs(datum/design/D)//Heavily optimized -Sieve
if(D.req_tech.len == 0)
return 1
for(var/datum/tech/T in known_tech)
@@ -106,7 +106,7 @@ research holder datum.
*/
//Adds a tech to known_tech list. Checks to make sure there aren't duplicates and updates existing tech's levels if needed.
//Input: datum/tech; Output: Null
-/datum/research/proc/AddTech2Known(var/datum/tech/T)
+/datum/research/proc/AddTech2Known(datum/tech/T)
for(var/datum/tech/known in known_tech)
if(T.id == known.id)
if(T.level > known.level)
@@ -115,7 +115,7 @@ research holder datum.
known_tech += T
return
-/datum/research/proc/AddDesign2Known(var/datum/design/D)
+/datum/research/proc/AddDesign2Known(datum/design/D)
for(var/datum/design/known in known_designs)
if(D.id == known.id)
if(D.reliability > known.reliability)
@@ -141,14 +141,14 @@ research holder datum.
//Refreshes the levels of a given tech.
//Input: Tech's ID and Level; Output: null
-/datum/research/proc/UpdateTech(var/ID, var/level)
+/datum/research/proc/UpdateTech(ID, level)
for(var/datum/tech/KT in known_tech)
if(KT.id == ID)
if(KT.level <= level)
KT.level = max((KT.level + 1), (level - 1))
return
-/datum/research/proc/UpdateDesigns(var/obj/item/I, var/list/temp_tech)
+/datum/research/proc/UpdateDesigns(obj/item/I, list/temp_tech)
for(var/T in temp_tech)
if(temp_tech[T] - 1 >= known_tech[T])
for(var/datum/design/D in known_designs)
@@ -159,7 +159,7 @@ research holder datum.
if(I.crit_fail)
D.reliability = min(100, D.reliability + rand(3, 5))
-/datum/research/proc/FindDesignByID(var/id)
+/datum/research/proc/FindDesignByID(id)
for(var/datum/design/D in known_designs)
if(D.id == id)
return D
@@ -175,7 +175,7 @@ research holder datum.
if((D.build_type & AUTOLATHE) && ("initial" in D.category)) //autolathe starts without hacked designs
AddDesign2Known(D)
-/datum/research/autolathe/AddDesign2Known(var/datum/design/D)
+/datum/research/autolathe/AddDesign2Known(datum/design/D)
if(!(D.build_type & AUTOLATHE))
return
..()
diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm
index fb56e869fe8..af580b93b83 100644
--- a/code/modules/research/server.dm
+++ b/code/modules/research/server.dm
@@ -121,7 +121,7 @@
env.merge(removed)
air_update_turf()
-/obj/machinery/r_n_d/server/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
+/obj/machinery/r_n_d/server/attackby(obj/item/O, mob/user, params)
if (disabled)
return
if (shocked)
@@ -256,7 +256,7 @@
updateUsrDialog()
return
-/obj/machinery/computer/rdservercontrol/attack_hand(mob/user as mob)
+/obj/machinery/computer/rdservercontrol/attack_hand(mob/user)
if(..())
return
user.set_machine(src)
@@ -317,12 +317,12 @@
onclose(user, "server_control")
return
-/obj/machinery/computer/rdservercontrol/attackby(var/obj/item/weapon/D as obj, var/mob/user as mob, params)
+/obj/machinery/computer/rdservercontrol/attackby(obj/item/weapon/D, mob/user, params)
..()
src.updateUsrDialog()
return
-/obj/machinery/computer/rdservercontrol/emag_act(mob/user as mob)
+/obj/machinery/computer/rdservercontrol/emag_act(mob/user)
if(!emagged)
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
emagged = 1
diff --git a/code/modules/research/stock_parts.dm b/code/modules/research/stock_parts.dm
index a36af9c71ca..ac15222b3ff 100644
--- a/code/modules/research/stock_parts.dm
+++ b/code/modules/research/stock_parts.dm
@@ -18,7 +18,7 @@
var/pshoom_or_beepboopblorpzingshadashwoosh = 'sound/items/rped.ogg'
var/alt_sound = null
-/obj/item/weapon/storage/part_replacer/afterattack(obj/machinery/T as obj, mob/living/carbon/human/user as mob, flag, params)
+/obj/item/weapon/storage/part_replacer/afterattack(obj/machinery/T, mob/living/carbon/human/user, flag, params)
if(flag)
return
else
@@ -62,7 +62,7 @@
//Sorts stock parts inside an RPED by their rating.
//Only use /obj/item/weapon/stock_parts/ with this sort proc!
-/proc/cmp_rped_sort(var/obj/item/weapon/stock_parts/A, var/obj/item/weapon/stock_parts/B)
+/proc/cmp_rped_sort(obj/item/weapon/stock_parts/A, obj/item/weapon/stock_parts/B)
return B.rating - A.rating
/obj/item/weapon/stock_parts
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index 6042955456d..e91fa523046 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -15,7 +15,7 @@
var/Uses = 1 // uses before it goes inert
var/enhanced = 0 //has it been enhanced before?
-/obj/item/slime_extract/attackby(obj/item/O as obj, mob/user as mob)
+/obj/item/slime_extract/attackby(obj/item/O, mob/user)
if(istype(O, /obj/item/weapon/slimesteroid2))
if(enhanced == 1)
user << "This extract has already been enhanced!"
@@ -128,7 +128,7 @@
icon = 'icons/obj/chemical.dmi'
icon_state = "bottle19"
-/obj/item/slimepotion/attack(mob/living/simple_animal/slime/M as mob, mob/user as mob)
+/obj/item/slimepotion/attack(mob/living/simple_animal/slime/M, mob/user)
if(!isslime(M))
user << "The potion only works on slimes!"
return ..()
@@ -156,7 +156,7 @@
var/list/not_interested = list()
var/being_used = 0
-/obj/item/slimepotion2/afterattack(mob/living/M as mob, mob/user as mob)
+/obj/item/slimepotion2/afterattack(mob/living/M, mob/user)
if(being_used || !ismob(M))
return
if(!isanimal(M) || M.ckey) //only works on animals that aren't player controlled
@@ -218,7 +218,7 @@
icon = 'icons/obj/chemical.dmi'
icon_state = "bottle16"
-/obj/item/weapon/slimesteroid/attack(mob/living/simple_animal/slime/M as mob, mob/user as mob)
+/obj/item/weapon/slimesteroid/attack(mob/living/simple_animal/slime/M, mob/user)
if(!isslime(M))//If target is not a slime.
user << "The steroid only works on baby slimes!"
return ..()
@@ -269,7 +269,7 @@
icon = 'icons/obj/chemical.dmi'
icon_state = "bottle15"
-/obj/item/weapon/slimestabilizer/attack(mob/living/simple_animal/slime/M as mob, mob/user as mob)
+/obj/item/weapon/slimestabilizer/attack(mob/living/simple_animal/slime/M, mob/user)
if(!isslime(M))
user << "The stabilizer only works on slimes!"
return ..()
@@ -290,7 +290,7 @@
icon = 'icons/obj/chemical.dmi'
icon_state = "bottle3"
-/obj/item/weapon/slimemutator/attack(mob/living/simple_animal/slime/M as mob, mob/user as mob)
+/obj/item/weapon/slimemutator/attack(mob/living/simple_animal/slime/M, mob/user)
if(!isslime(M))
user << "The mutator only works on slimes!"
return ..()
@@ -397,7 +397,7 @@
else
icon_state = "golem"
-/obj/effect/golemrune/attack_hand(mob/living/user as mob)
+/obj/effect/golemrune/attack_hand(mob/living/user)
var/mob/dead/observer/ghost
for(var/mob/dead/observer/O in src.loc)
if(!O.client) continue
diff --git a/code/modules/scripting/Implementations/Telecomms.dm b/code/modules/scripting/Implementations/Telecomms.dm
index f2d999e59f8..cd8c7258b05 100644
--- a/code/modules/scripting/Implementations/Telecomms.dm
+++ b/code/modules/scripting/Implementations/Telecomms.dm
@@ -58,7 +58,7 @@ var/list/allowed_custom_spans = list(SPAN_ROBOT,SPAN_YELL,SPAN_ITALICS,SPAN_SANS
/* -- Execute the compiled code -- */
- proc/Run(var/datum/signal/signal)
+ proc/Run(datum/signal/signal)
if(!ready)
return
@@ -256,7 +256,7 @@ var/const/SIGNAL_COOLDOWN = 20 // 2 seconds
/datum/signal
- proc/mem(var/address, var/value)
+ proc/mem(address, value)
if(istext(address))
var/obj/machinery/telecomms/server/S = data["server"]
@@ -268,7 +268,7 @@ var/const/SIGNAL_COOLDOWN = 20 // 2 seconds
S.memory[address] = value
- proc/signaler(var/freq = 1459, var/code = 30)
+ proc/signaler(freq = 1459, code = 30)
if(isnum(freq) && isnum(code))
@@ -299,7 +299,7 @@ var/const/SIGNAL_COOLDOWN = 20 // 2 seconds
lastsignalers.Add("[time] : [S.id] sent a signal command, which was triggered by NTSL.: [format_frequency(freq)]/[code]")
- proc/tcombroadcast(var/message, var/freq, var/source, var/job, var/spans, var/say = "says", var/ask = "asks", var/yell = "yells", var/exclaim = "exclaims")
+ proc/tcombroadcast(message, freq, source, job, spans, say = "says", ask = "asks", yell = "yells", exclaim = "exclaims")
var/datum/signal/newsign = new
var/obj/machinery/telecomms/server/S = data["server"]
diff --git a/code/modules/scripting/Implementations/_Logic.dm b/code/modules/scripting/Implementations/_Logic.dm
index 6fd47acf7c8..723ffe4490f 100644
--- a/code/modules/scripting/Implementations/_Logic.dm
+++ b/code/modules/scripting/Implementations/_Logic.dm
@@ -26,7 +26,7 @@
return pick(finalpick)
// Gets/Sets a value at a key in the list
-/proc/n_listpos(var/list/L, var/pos, var/value)
+/proc/n_listpos(list/L, pos, value)
if(!istype(L, /list)) return
if(isnum(pos))
if(!value)
@@ -42,7 +42,7 @@
L[pos] = value
// Copies the list into a new one
-/proc/n_listcopy(var/list/L, var/start, var/end)
+/proc/n_listcopy(list/L, start, end)
if(!istype(L, /list)) return
return L.Copy(start, end)
@@ -75,25 +75,25 @@
chosenlist.Remove(e)
// Cuts out a copy of a list
-/proc/n_listcut(var/list/L, var/start, var/end)
+/proc/n_listcut(list/L, start, end)
if(!istype(L, /list)) return
return L.Cut(start, end)
// Swaps two values in the list
-/proc/n_listswap(var/list/L, var/firstindex, var/secondindex)
+/proc/n_listswap(list/L, firstindex, secondindex)
if(!istype(L, /list)) return
if(L.len >= secondindex && L.len >= firstindex)
return L.Swap(firstindex, secondindex)
// Inserts a value into the list
-/proc/n_listinsert(var/list/L, var/index, var/element)
+/proc/n_listinsert(list/L, index, element)
if(!istype(L, /list)) return
return L.Insert(index, element)
// --- String methods ---
//If list, finds a value in it, if text, finds a substring in it
-/proc/n_smartfind(var/haystack, var/needle, var/start = 1, var/end = 0)
+/proc/n_smartfind(haystack, needle, start = 1, end = 0)
if(haystack && needle)
if(isobject(haystack))
if(istype(haystack, /list))
@@ -107,40 +107,40 @@
return findtext(haystack, needle, start, end)
//Returns a substring of the string
-/proc/n_substr(var/string, var/start = 1, var/end = 0)
+/proc/n_substr(string, start = 1, end = 0)
if(istext(string) && isnum(start) && isnum(end))
if(start > 0)
return copytext(string, start, end)
//Returns the length of the string or list
-/proc/n_smartlength(var/container)
+/proc/n_smartlength(container)
if(container)
if(istype(container, /list) || istext(container))
return length(container)
return 0
//Lowercase all characters
-/proc/n_lower(var/string)
+/proc/n_lower(string)
if(istext(string))
return lowertext(string)
//Uppercase all characters
-/proc/n_upper(var/string)
+/proc/n_upper(string)
if(istext(string))
return uppertext(string)
//Converts a string to a list
-/proc/n_explode(var/string, var/separator = "")
+/proc/n_explode(string, separator = "")
if(istext(string) && (istext(separator) || isnull(separator)))
return text2list(string, separator)
//Converts a list to a string
-/proc/n_implode(var/list/li, var/separator)
+/proc/n_implode(list/li, separator)
if(istype(li) && (istext(separator) || isnull(separator)))
return list2text(li, separator)
//Repeats the string x times
-/proc/n_repeat(var/string, var/amount)
+/proc/n_repeat(string, amount)
if(istext(string) && isnum(amount))
var/i
var/newstring = ""
@@ -154,7 +154,7 @@
return newstring
//Reverses the order of the string. "Clown" becomes "nwolC"
-/proc/n_reverse(var/string)
+/proc/n_reverse(string)
if(istext(string))
var/newstring = ""
var/i
@@ -166,11 +166,11 @@
return newstring
// String -> Number
-/proc/n_str2num(var/string)
+/proc/n_str2num(string)
if(istext(string))
return text2num(string)
-/proc/n_proper(var/string)
+/proc/n_proper(string)
if(!istext(string))
return ""
@@ -203,53 +203,53 @@
return min
-/proc/n_prob(var/chance)
+/proc/n_prob(chance)
return prob(chance)
-/proc/n_randseed(var/seed)
+/proc/n_randseed(seed)
rand_seed(seed)
return 0
-/proc/n_rand(var/low, var/high)
+/proc/n_rand(low, high)
if(isnull(low) && isnull(high))
return rand()
return rand(low, high)
// Number -> String
-/proc/n_num2str(var/num)
+/proc/n_num2str(num)
if(isnum(num))
return num2text(num)
// Squareroot
-/proc/n_sqrt(var/num)
+/proc/n_sqrt(num)
if(isnum(num))
return sqrt(num)
// Magnitude of num
-/proc/n_abs(var/num)
+/proc/n_abs(num)
if(isnum(num))
return abs(num)
// Round down
-/proc/n_floor(var/num)
+/proc/n_floor(num)
if(isnum(num))
return round(num)
// Round up
-/proc/n_ceil(var/num)
+/proc/n_ceil(num)
if(isnum(num))
return round(num)+1
// Round to nearest integer
-/proc/n_round(var/num)
+/proc/n_round(num)
if(isnum(num))
if(num-round(num)<0.5)
return round(num)
return n_ceil(num)
// Clamps N between min and max
-/proc/n_clamp(var/num, var/min=-1, var/max=1)
+/proc/n_clamp(num, min=-1, max=1)
if(isnum(num)&&isnum(min)&&isnum(max))
if(num<=min)
return min
@@ -258,32 +258,32 @@
return num
// Returns 1 if N is inbetween Min and Max
-/proc/n_inrange(var/num, var/min=-1, var/max=1)
+/proc/n_inrange(num, min=-1, max=1)
if(isnum(num)&&isnum(min)&&isnum(max))
return ((min <= num) && (num <= max))
// Returns the sine of num
-/proc/n_sin(var/num)
+/proc/n_sin(num)
if(isnum(num))
return sin(num)
// Returns the cosine of num
-/proc/n_cos(var/num)
+/proc/n_cos(num)
if(isnum(num))
return cos(num)
// Returns the arcsine of num
-/proc/n_asin(var/num)
+/proc/n_asin(num)
if(isnum(num)&&-1<=num&&num<=1)
return arcsin(num)
// Returns the arccosine of num
-/proc/n_acos(var/num)
+/proc/n_acos(num)
if(isnum(num)&&-1<=num&&num<=1)
return arccos(num)
// Returns the natural log of num
-/proc/n_log(var/num)
+/proc/n_log(num)
if(isnum(num)&&0
*/
- ParseParamExpression(var/check_functions = 0)
+ ParseParamExpression(check_functions = 0)
var/cf = check_functions
return ParseExpression(list(",", ")"), check_functions = cf)
\ No newline at end of file
diff --git a/code/modules/security levels/keycard authentication.dm b/code/modules/security levels/keycard authentication.dm
index 2a1909a15dd..d87e5fdf524 100644
--- a/code/modules/security levels/keycard authentication.dm
+++ b/code/modules/security levels/keycard authentication.dm
@@ -20,15 +20,15 @@
active_power_usage = 6
power_channel = ENVIRON
-/obj/machinery/keycard_auth/attack_ai(mob/user as mob)
+/obj/machinery/keycard_auth/attack_ai(mob/user)
user << "The station AI is not to interact with these devices."
return
-/obj/machinery/keycard_auth/attack_paw(mob/user as mob)
+/obj/machinery/keycard_auth/attack_paw(mob/user)
user << "You are too primitive to use this device!"
return
-/obj/machinery/keycard_auth/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/machinery/keycard_auth/attackby(obj/item/weapon/W, mob/user, params)
if(stat & (NOPOWER|BROKEN))
user << "This device is not powered."
return
@@ -51,7 +51,7 @@
else
stat |= NOPOWER
-/obj/machinery/keycard_auth/attack_hand(mob/user as mob)
+/obj/machinery/keycard_auth/attack_hand(mob/user)
if(user.stat || stat & (NOPOWER|BROKEN))
user << "This device is not powered!"
return
@@ -120,7 +120,7 @@
message_admins("[key_name(event_triggered_by)] triggered and [key_name(event_confirmed_by)] confirmed event [event]")
reset()
-/obj/machinery/keycard_auth/proc/receive_request(var/obj/machinery/keycard_auth/source)
+/obj/machinery/keycard_auth/proc/receive_request(obj/machinery/keycard_auth/source)
if(stat & (BROKEN|NOPOWER))
return
event_source = source
diff --git a/code/modules/security levels/security levels.dm b/code/modules/security levels/security levels.dm
index 29a04c4f92a..da714890067 100644
--- a/code/modules/security levels/security levels.dm
+++ b/code/modules/security levels/security levels.dm
@@ -6,7 +6,7 @@
//config.alert_desc_blue_downto
-/proc/set_security_level(var/level)
+/proc/set_security_level(level)
switch(level)
if("green")
level = SEC_LEVEL_GREEN
@@ -70,7 +70,7 @@
if(SEC_LEVEL_DELTA)
return "delta"
-/proc/num2seclevel(var/num)
+/proc/num2seclevel(num)
switch(num)
if(SEC_LEVEL_GREEN)
return "green"
@@ -81,7 +81,7 @@
if(SEC_LEVEL_DELTA)
return "delta"
-/proc/seclevel2num(var/seclevel)
+/proc/seclevel2num(seclevel)
switch( lowertext(seclevel) )
if("green")
return SEC_LEVEL_GREEN
diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm
index 673e7176eaa..dfbb6085368 100644
--- a/code/modules/shuttle/shuttle.dm
+++ b/code/modules/shuttle/shuttle.dm
@@ -496,7 +496,7 @@
possible_destinations = C.possible_destinations
shuttleId = C.shuttleId
-/obj/machinery/computer/shuttle/attack_hand(user as mob)
+/obj/machinery/computer/shuttle/attack_hand(mob/user)
if(..(user))
return
src.add_fingerprint(usr)
@@ -540,7 +540,7 @@
if(1) usr << "Invalid shuttle requested."
else usr << "Unable to comply."
-/obj/machinery/computer/shuttle/emag_act(mob/user as mob)
+/obj/machinery/computer/shuttle/emag_act(mob/user)
if(!emagged)
src.req_access = list()
emagged = 1
diff --git a/code/modules/surgery/organs/organ.dm b/code/modules/surgery/organs/organ.dm
index 2025f3c155b..05ae58ccc21 100644
--- a/code/modules/surgery/organs/organ.dm
+++ b/code/modules/surgery/organs/organ.dm
@@ -137,7 +137,7 @@
//Heals brute and burn damage for the organ. Returns 1 if the damage-icon states changed at all.
//Damage cannot go below zero.
//Cannot remove negative damage (i.e. apply damage)
-/obj/item/organ/limb/proc/heal_damage(brute, burn, var/robotic)
+/obj/item/organ/limb/proc/heal_damage(brute, burn, robotic)
if(robotic && status != ORGAN_ROBOTIC) // This makes organic limbs not heal when the proc is in Robotic mode.
brute = max(0, brute - 3)
diff --git a/code/modules/telesci/bscrystal.dm b/code/modules/telesci/bscrystal.dm
index 74b9807dade..589731a3635 100644
--- a/code/modules/telesci/bscrystal.dm
+++ b/code/modules/telesci/bscrystal.dm
@@ -16,7 +16,7 @@
pixel_y = rand(-5, 5)
-/obj/item/bluespace_crystal/attack_self(var/mob/user)
+/obj/item/bluespace_crystal/attack_self(mob/user)
user.visible_message("[user] crushes [src]!", "You crush [src]!")
PoolOrNew(/obj/effect/effect/sparks, loc)
playsound(src.loc, "sparks", 50, 1)
@@ -24,7 +24,7 @@
user.unEquip(src)
qdel(src)
-/obj/item/bluespace_crystal/proc/blink_mob(var/mob/living/L)
+/obj/item/bluespace_crystal/proc/blink_mob(mob/living/L)
do_teleport(L, get_turf(L), blink_range, asoundin = 'sound/effects/phasein.ogg')
/obj/item/bluespace_crystal/throw_impact(atom/hit_atom)
diff --git a/code/modules/telesci/gps.dm b/code/modules/telesci/gps.dm
index 883a6fc01cd..05eaa989580 100644
--- a/code/modules/telesci/gps.dm
+++ b/code/modules/telesci/gps.dm
@@ -30,7 +30,7 @@ var/list/GPS_list = list()
overlays -= "emp"
overlays += "working"
-/obj/item/device/gps/attack_self(mob/user as mob)
+/obj/item/device/gps/attack_self(mob/user)
var/obj/item/device/gps/t = ""
var/gps_window_height = 110 + GPS_list.len * 20 // Variable window height, depending on how many GPS units there are to show
diff --git a/code/modules/telesci/telepad.dm b/code/modules/telesci/telepad.dm
index e1f4a37d288..4d585a48c8f 100644
--- a/code/modules/telesci/telepad.dm
+++ b/code/modules/telesci/telepad.dm
@@ -54,7 +54,7 @@
idle_power_usage = 20
active_power_usage = 500
var/stage = 0
-/obj/machinery/telepad_cargo/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
+/obj/machinery/telepad_cargo/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/weapon/wrench))
anchored = 0
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
@@ -89,7 +89,7 @@
item_state = "signaler"
origin_tech = "bluespace=3"
-/obj/item/device/telepad_beacon/attack_self(mob/user as mob)
+/obj/item/device/telepad_beacon/attack_self(mob/user)
if(user)
user << "Locked In"
new /obj/machinery/telepad_cargo(user.loc)
@@ -148,7 +148,7 @@
playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
user << "You calibrate the telepad locator."
-/obj/item/weapon/rcs/emag_act(mob/user as mob)
+/obj/item/weapon/rcs/emag_act(mob/user)
if(!emagged)
emagged = 1
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
diff --git a/code/orphaned procs/AStar.dm b/code/orphaned procs/AStar.dm
index eb491ee48ff..4f79d75e9d7 100644
--- a/code/orphaned procs/AStar.dm
+++ b/code/orphaned procs/AStar.dm
@@ -63,7 +63,7 @@ length to avoid portals or something i guess?? Not that they're counted right no
//add an element in the list,
//immediatly ordering it to its position using Insertion sort
-/PriorityQueue/proc/Enqueue(var/atom/A)
+/PriorityQueue/proc/Enqueue(atom/A)
var/i
L.Add(A)
i = L.len -1
@@ -80,7 +80,7 @@ length to avoid portals or something i guess?? Not that they're counted right no
return .
//removes an element
-/PriorityQueue/proc/Remove(var/atom/A)
+/PriorityQueue/proc/Remove(atom/A)
return L.Remove(A)
//returns a copy of the elements list
@@ -89,17 +89,17 @@ length to avoid portals or something i guess?? Not that they're counted right no
return ret
//return the position of an element or 0 if not found
-/PriorityQueue/proc/Seek(var/atom/A)
+/PriorityQueue/proc/Seek(atom/A)
return L.Find(A)
//return the element at the i_th position
-/PriorityQueue/proc/Get(var/i)
+/PriorityQueue/proc/Get(i)
if(i > L.len || i < 1)
return 0
return L[i]
//replace the passed element at it's right position using the cmp proc
-/PriorityQueue/proc/ReSort(var/atom/A)
+/PriorityQueue/proc/ReSort(atom/A)
var/i = Seek(A)
if(i == 0)
return
@@ -144,7 +144,7 @@ length to avoid portals or something i guess?? Not that they're counted right no
return a.f - b.f
//search if there's a PathNode that points to turf T in the Priority Queue
-/proc/SeekTurf(var/PriorityQueue/Queue, var/turf/T)
+/proc/SeekTurf(var/PriorityQueue/Queue, turf/T)
var/i = 1
var/PathNode/PN
while(i < Queue.L.len + 1)
@@ -162,7 +162,7 @@ length to avoid portals or something i guess?? Not that they're counted right no
return path
//the actual algorithm
-/proc/AStar(start, end, atom, dist, maxnodes, maxnodedepth = 30, mintargetdist, minnodedist, id=null, var/turf/exclude=null)
+/proc/AStar(start, end, atom, dist, maxnodes, maxnodedepth = 30, mintargetdist, minnodedist, id=null, turf/exclude=null)
var/PriorityQueue/open = new /PriorityQueue(/proc/PathWeightCompare) //the open list, ordered using the PathWeightCompare proc, from lower f to higher
var/list/closed = new() //the closed list
var/list/path = null //the returned path, if any
diff --git a/code/orphaned procs/priority_announce.dm b/code/orphaned procs/priority_announce.dm
index 3630b9d58df..de3599f614b 100644
--- a/code/orphaned procs/priority_announce.dm
+++ b/code/orphaned procs/priority_announce.dm
@@ -1,4 +1,4 @@
-/proc/priority_announce(var/text, var/title = "", var/sound = 'sound/AI/attention.ogg', var/type)
+/proc/priority_announce(text, title = "", sound = 'sound/AI/attention.ogg', type)
if(!text)
return
@@ -29,7 +29,7 @@
M << announcement
M << sound(sound)
-/proc/print_command_report(var/text = "", var/title = "Central Command Update")
+/proc/print_command_report(text = "", title = "Central Command Update")
for (var/obj/machinery/computer/communications/C in machines)
if(!(C.stat & (BROKEN|NOPOWER)) && C.z == ZLEVEL_STATION)
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( C.loc )
@@ -38,7 +38,7 @@
C.messagetitle.Add("[title]")
C.messagetext.Add(text)
-/proc/minor_announce(var/message, var/title = "Attention:", var/alert)
+/proc/minor_announce(message, title = "Attention:", alert)
if(!message)
return
diff --git a/code/orphaned procs/statistics.dm b/code/orphaned procs/statistics.dm
index 3f979dbc302..55acae66087 100644
--- a/code/orphaned procs/statistics.dm
+++ b/code/orphaned procs/statistics.dm
@@ -40,7 +40,7 @@
if(!config.sql_enabled)
return
-/proc/sql_report_death(var/mob/living/carbon/human/H)
+/proc/sql_report_death(mob/living/carbon/human/H)
if(!config.sql_enabled)
return
if(!H)
@@ -75,7 +75,7 @@
log_game("SQL ERROR during death reporting. Error : \[[err]\]\n")
-/proc/sql_report_cyborg_death(var/mob/living/silicon/robot/H)
+/proc/sql_report_cyborg_death(mob/living/silicon/robot/H)
if(!config.sql_enabled)
return
if(!H)
diff --git a/code/world.dm b/code/world.dm
index 2eefe8ed0b7..d515df42aed 100644
--- a/code/world.dm
+++ b/code/world.dm
@@ -181,7 +181,7 @@
master_mode = Lines[1]
diary << "Saved mode is '[master_mode]'"
-/world/proc/save_mode(var/the_mode)
+/world/proc/save_mode(the_mode)
var/F = file("data/mode.txt")
fdel(F)
F << the_mode
diff --git a/html/changelog.html b/html/changelog.html
index 6c8064670fa..acf93207d5d 100644
--- a/html/changelog.html
+++ b/html/changelog.html
@@ -55,6 +55,16 @@
-->
+
14 July 2015
+
AnturK updated:
+
+ - New species of mimic was spotted in the wilderness of space. Watch out!
+
+
Jordie0608 updated:
+
+ - Added a Local Narrate verb for admins.
+
+
13 July 2015
Ikarrus updated:
diff --git a/html/changelogs/.all_changelog.yml b/html/changelogs/.all_changelog.yml
index 46dc91303a0..14be84fdf64 100644
--- a/html/changelogs/.all_changelog.yml
+++ b/html/changelogs/.all_changelog.yml
@@ -1211,3 +1211,8 @@ DO NOT EDIT THIS FILE BY HAND! AUTOMATICALLY GENERATED BY ss13_genchangelog.py.
pipes in general.
- rscadd: Added Optical T-Ray scanners to R&D and Atmospheric Technician closets.
Optical T-Ray Scanners function identically to a handheld scanner.
+2015-07-14:
+ AnturK:
+ - rscadd: New species of mimic was spotted in the wilderness of space. Watch out!
+ Jordie0608:
+ - rscadd: Added a Local Narrate verb for admins.
diff --git a/html/changelogs/AnturK-Morph.yml b/html/changelogs/Ikarrus-ayy.yml
similarity index 92%
rename from html/changelogs/AnturK-Morph.yml
rename to html/changelogs/Ikarrus-ayy.yml
index f8af17015e9..d75c6b46a69 100644
--- a/html/changelogs/AnturK-Morph.yml
+++ b/html/changelogs/Ikarrus-ayy.yml
@@ -23,7 +23,7 @@
#################################
# Your name.
-author: AnturK
+author: Ikarrus
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
@@ -34,4 +34,4 @@ delete-after: True
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- - rscadd: "New species of mimic was spotted in the wilderness of space. Watch out!"
\ No newline at end of file
+ - bugfix: "Virology is no longer all-access."
\ No newline at end of file
diff --git a/html/changelogs/ikarrus-changelingmindswap.yml b/html/changelogs/ikarrus-changelingmindswap.yml
new file mode 100644
index 00000000000..fe3366f1643
--- /dev/null
+++ b/html/changelogs/ikarrus-changelingmindswap.yml
@@ -0,0 +1,6 @@
+author: Ikarrus
+
+delete-after: True
+
+changes:
+ - rscadd: "Changelings now have the ability to swap forms with another being."
diff --git a/html/changelogs/ikarrus-gangtime.yml b/html/changelogs/ikarrus-gangtime.yml
new file mode 100644
index 00000000000..ccaf6902d08
--- /dev/null
+++ b/html/changelogs/ikarrus-gangtime.yml
@@ -0,0 +1,36 @@
+################################
+# Example Changelog File
+#
+# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
+#
+# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
+# When it is, any changes listed below will disappear.
+#
+# Valid Prefixes:
+# bugfix
+# wip (For works in progress)
+# tweak
+# soundadd
+# sounddel
+# rscadd (general adding of nice things)
+# rscdel (general deleting of nice things)
+# imageadd
+# imagedel
+# spellcheck (typo fixes)
+# experiment
+# tgs (TG-ported fixes?)
+#################################
+
+# Your name.
+author: Ikarrus
+
+# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
+delete-after: True
+
+# Any changes you've made. See valid prefix list above.
+# INDENT WITH TWO SPACES. NOT TABS. SPACES.
+# SCREW THIS UP AND IT WON'T WORK.
+# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
+# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
+changes:
+ - tweak: "Halved Domination Time."
\ No newline at end of file
diff --git a/icons/obj/atmospherics/binary_devices.dmi b/icons/obj/atmospherics/binary_devices.dmi
deleted file mode 100644
index d127cabed58..00000000000
Binary files a/icons/obj/atmospherics/binary_devices.dmi and /dev/null differ
diff --git a/icons/obj/atmospherics/components/binary_devices.dmi b/icons/obj/atmospherics/components/binary_devices.dmi
new file mode 100644
index 00000000000..832bf766d0f
Binary files /dev/null and b/icons/obj/atmospherics/components/binary_devices.dmi differ
diff --git a/icons/obj/atmospherics/relief_valve.dmi b/icons/obj/atmospherics/components/relief_valve.dmi
similarity index 100%
rename from icons/obj/atmospherics/relief_valve.dmi
rename to icons/obj/atmospherics/components/relief_valve.dmi
diff --git a/icons/obj/atmospherics/trinary_devices.dmi b/icons/obj/atmospherics/components/trinary_devices.dmi
similarity index 51%
rename from icons/obj/atmospherics/trinary_devices.dmi
rename to icons/obj/atmospherics/components/trinary_devices.dmi
index 7eabbd65d01..6c96035c4a7 100644
Binary files a/icons/obj/atmospherics/trinary_devices.dmi and b/icons/obj/atmospherics/components/trinary_devices.dmi differ
diff --git a/icons/obj/atmospherics/unary_devices.dmi b/icons/obj/atmospherics/components/unary_devices.dmi
similarity index 100%
rename from icons/obj/atmospherics/unary_devices.dmi
rename to icons/obj/atmospherics/components/unary_devices.dmi
diff --git a/icons/obj/atmospherics/pipes/simple.dmi b/icons/obj/atmospherics/pipes/simple.dmi
index 6bb4a9ad0eb..bc04b708c5f 100644
Binary files a/icons/obj/atmospherics/pipes/simple.dmi and b/icons/obj/atmospherics/pipes/simple.dmi differ
diff --git a/tgstation.dme b/tgstation.dme
index 8144137aef2..5bd5b7aa3de 100644
--- a/tgstation.dme
+++ b/tgstation.dme
@@ -94,6 +94,7 @@
#include "code\_onclick\hud\screen_objects.dm"
#include "code\ATMOSPHERICS\atmospherics.dm"
#include "code\ATMOSPHERICS\datum_pipeline.dm"
+#include "code\ATMOSPHERICS\components\components_base.dm"
#include "code\ATMOSPHERICS\components\binary_devices\binary_atmos_base.dm"
#include "code\ATMOSPHERICS\components\binary_devices\circulator.dm"
#include "code\ATMOSPHERICS\components\binary_devices\dp_vent_pump.dm"
@@ -105,12 +106,15 @@
#include "code\ATMOSPHERICS\components\trinary_devices\mixer.dm"
#include "code\ATMOSPHERICS\components\trinary_devices\trinary_base.dm"
#include "code\ATMOSPHERICS\components\unary_devices\cold_sink.dm"
+#include "code\ATMOSPHERICS\components\unary_devices\cryo.dm"
+#include "code\ATMOSPHERICS\components\unary_devices\Freezer.dm"
#include "code\ATMOSPHERICS\components\unary_devices\generator_input.dm"
#include "code\ATMOSPHERICS\components\unary_devices\heat_exchanger.dm"
#include "code\ATMOSPHERICS\components\unary_devices\heat_source.dm"
#include "code\ATMOSPHERICS\components\unary_devices\outlet_injector.dm"
#include "code\ATMOSPHERICS\components\unary_devices\oxygen_generator.dm"
#include "code\ATMOSPHERICS\components\unary_devices\portables_connector.dm"
+#include "code\ATMOSPHERICS\components\unary_devices\tank.dm"
#include "code\ATMOSPHERICS\components\unary_devices\unary_base.dm"
#include "code\ATMOSPHERICS\components\unary_devices\vent_pump.dm"
#include "code\ATMOSPHERICS\components\unary_devices\vent_scrubber.dm"
@@ -119,7 +123,6 @@
#include "code\ATMOSPHERICS\pipes\manifold4w.dm"
#include "code\ATMOSPHERICS\pipes\pipes.dm"
#include "code\ATMOSPHERICS\pipes\simple.dm"
-#include "code\ATMOSPHERICS\pipes\tank.dm"
#include "code\controllers\configuration.dm"
#include "code\controllers\failsafe.dm"
#include "code\controllers\master_controller.dm"
@@ -384,13 +387,11 @@
#include "code\game\machinery\cell_charger.dm"
#include "code\game\machinery\cloning.dm"
#include "code\game\machinery\constructable_frame.dm"
-#include "code\game\machinery\cryo.dm"
#include "code\game\machinery\deployable.dm"
#include "code\game\machinery\door_control.dm"
#include "code\game\machinery\doppler_array.dm"
#include "code\game\machinery\droneDispenser.dm"
#include "code\game\machinery\flasher.dm"
-#include "code\game\machinery\Freezer.dm"
#include "code\game\machinery\hologram.dm"
#include "code\game\machinery\igniter.dm"
#include "code\game\machinery\iv_drip.dm"
@@ -1253,7 +1254,6 @@
#include "code\modules\mob\living\simple_animal\hostile\retaliate\bat.dm"
#include "code\modules\mob\living\simple_animal\hostile\retaliate\clown.dm"
#include "code\modules\mob\living\simple_animal\hostile\retaliate\retaliate.dm"
-#include "code\modules\mob\living\simple_animal\morph\morph.dm"
#include "code\modules\mob\living\simple_animal\revenant\revenant.dm"
#include "code\modules\mob\living\simple_animal\revenant\revenant_abilities.dm"
#include "code\modules\mob\living\simple_animal\revenant\revenant_spawn_event.dm"