/datum/decorator/gamemode

Gamemode decorators allow us to make changes to edits on specific gamemodes, to assist in balancing varied gameplay in different modes
They can be manually defined, and procs overridden. Alternatively, using the GAMEMODE_DECORATOR define, you can quickly make a decorator for a specific type and subtypes.
eg:
GAMEMODE_DECORATOR(/obj/item/clothing/suit/storage/marine/smartgunner, /datum/game_mode/extended/faction_clash, list(
ARMOR_EDIT(armor_bullet, CLOTHING_ARMOR_HIGH),
ARMOR_EDIT(armor_internaldamage, CLOTHING_ARMOR_HIGH)
))
If you need to edit different types, make a new define using VARIABLE_EDIT, and provide the parent path for the type.
Vars | |
apply_type | Which type this should apply edits to |
---|---|
edits | The list of edits to make |
gamemode | The gamemode type this should apply to |
Var Details
apply_type

Which type this should apply edits to
edits

The list of edits to make
gamemode

The gamemode type this should apply to