mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
[MIRROR] kills 4 object definitions that are inside of proc arguments (#7987)
* kills 4 object definitions that are inside of proc arguments (#61152) thanks to putnam for reporting this in coderbus /obj/machinery/smartfridge/drying_rack/load(/obj/item/dried_object) looks pretty harmless right? youd think that this would make a proc argument called dried_object of type /obj/item but no, this defines a new /obj/item class definition called dried_object with zero changes from /obj/item you can use this to do weird things, like /obj/machinery/smartfridge/drying_rack/load(/obj/item/var/dried_object = 3) creates a new var on /obj/item called dried_object and is very cursed gets rid of 4 of these abominations, they dont seem to have caused any bugs except for maybe behavior that relies on typesof(/some/path) * kills 4 object definitions that are inside of proc arguments Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
This commit is contained in:
@@ -593,7 +593,7 @@ GLOBAL_LIST_INIT(gun_saw_types, typecacheof(list(
|
||||
update_appearance()
|
||||
return TRUE
|
||||
|
||||
/obj/item/gun/ballistic/proc/guncleaning(mob/user, /obj/item/A)
|
||||
/obj/item/gun/ballistic/proc/guncleaning(mob/user, obj/item/A)
|
||||
if(misfire_probability == 0)
|
||||
to_chat(user, span_notice("[src] seems to be already clean of fouling."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user