mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Refactored the abstract meta propriety (#19797)
Refactored the abstract meta propriety into defines. It's now more easy to spot/see abstract types thanks to the macro that defines them. Added a check on initialization of atoms to avoid spawning abstract types. Made the spawn_atom proc check for abstractness. Made the spawn_atom proc use tgui_list for types list shorter than 1000 elements, which enables to search in them. It's too laggy on larger lists so above 1000 it uses the builtin input. Made the spawn_atom use a list subtraction instead of a double list, it's lighter on memory and processing.
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
*
|
||||
* A device used for rapid fabrication of things, built from a compressed matter cartridge
|
||||
*/
|
||||
/obj/item/rfd
|
||||
abstract_type = /obj/item/rfd //This is an abstract, use one of the subtypes instead
|
||||
|
||||
ABSTRACT_TYPE(/obj/item/rfd)
|
||||
name = "\improper Rapid Fabrication Device"
|
||||
desc = "A device used for rapid fabrication. The matter decompression matrix is untuned, rendering it useless."
|
||||
icon = 'icons/obj/rfd.dmi'
|
||||
|
||||
@@ -142,8 +142,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
//////////////////
|
||||
//FINE SMOKABLES//
|
||||
//////////////////
|
||||
/obj/item/clothing/mask/smokable
|
||||
abstract_type = /obj/item/clothing/mask/smokable
|
||||
ABSTRACT_TYPE(/obj/item/clothing/mask/smokable)
|
||||
name = "smokable item"
|
||||
desc = "You're not sure what this is. You should probably ahelp it."
|
||||
icon = 'icons/obj/smokables.dmi'
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
#define MALFUNCTION_PERMANENT 2
|
||||
|
||||
|
||||
/obj/item/implant
|
||||
abstract_type = /obj/item/implant
|
||||
ABSTRACT_TYPE(/obj/item/implant)
|
||||
name = "implant"
|
||||
icon = 'icons/obj/item/implants.dmi'
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
|
||||
@@ -67,8 +67,7 @@
|
||||
name = "[street_name]"
|
||||
desc = "This sign indicates this crossing street is called [street_name]."
|
||||
|
||||
/obj/structure/stairs/urban
|
||||
abstract_type = /obj/structure/stairs/urban
|
||||
ABSTRACT_TYPE(/obj/structure/stairs/urban)
|
||||
icon = 'icons/obj/structure/urban/ledges.dmi'
|
||||
icon_state = "stairs-single"
|
||||
layer = 2.01
|
||||
@@ -92,12 +91,11 @@
|
||||
dir = SOUTH
|
||||
bound_height = 64
|
||||
|
||||
/obj/structure/stairs/urban/road_ramp
|
||||
ABSTRACT_TYPE(/obj/structure/stairs/urban/road_ramp)
|
||||
name = "inclined asphalt ramp"
|
||||
desc = "A solid asphalt ramp to allow your vehicle to traverse inclines with ease."
|
||||
icon_state = "road-ramp-center"
|
||||
layer = 2.02
|
||||
abstract_type = /obj/structure/stairs/urban/road_ramp
|
||||
|
||||
/obj/structure/stairs/urban/road_ramp/right
|
||||
dir = EAST
|
||||
|
||||
Reference in New Issue
Block a user