mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Merge Conflict Markers - The Explicit Pathing, Layering, Iconing, Warning. (#68039) * Merge Conflict Markers - The Explicit Pathing Hey there, This PR corrects an issue I've been having with mapmerge2 these last few months. Basically, what it does is create a base `/obj` that is given the name `---Merge Conflict Marker---`. This is fine and all, but the problem is that the base `/obj` is set to a certain plane. This does mean that sometimes, this VERY IMPORTANT marker is covered up by rocks or other objects. So, this seeks to get rid of that potential flaw, as well as do some other things. Sometimes, when objects are rendered via GAGS or other code-means, they tend to have the same default Purple/White Sprite that any object without a valid icon_state has. This has caused me some confusion, so I have decided to create a new icon for conflict markers. This icon was designed to be as ugly as possible, while creating as much contrast as possible with the background by incorporating several colors into its design. I hope you find merge conflicts as unpleasant as I do. I also updated mapmerge2 to have it so you can set the specified path of the object, as well as a small comment on the warnings if you do not heed it. I'm keeping the fact that mapmerge2 adds a name to the object just in case someone else really needs that. I also updated the linters to check for this path as well (even though the name and description should suffice for linting), and it should all be gravy from here. * Adds further contrast to the DMI. * Splits the merge conflict marker into a generic /obj I also added a thing where if it didn't get caught by linters and it showed up on Initalize, it would error to mapping logs, spit out an error in world, and do all sorts of stuff to remind you. * python new line * forgot to add a tab * Merge Conflict Markers - The Explicit Pathing, Layering, Iconing, Warning. Co-authored-by: san7890 <the@san7890.com>
19 lines
1.2 KiB
Plaintext
19 lines
1.2 KiB
Plaintext
// Used by mapmerge2 to denote the existence of a merge conflict (or when it has to complete a "best intent" merge where it dumps the movable contents of an old key and a new key on the same tile).
|
|
// We define it explicitly here to ensure that it shows up on the highest possible plane (while giving off a verbose icon) to aide mappers in resolving these conflicts.
|
|
// DO NOT USE THIS IN NORMAL MAPPING!!! Linters WILL fail.
|
|
|
|
/obj/merge_conflict_marker
|
|
name = "Merge Conflict Marker - DO NOT USE"
|
|
icon = 'icons/effects/mapping_helpers.dmi'
|
|
icon_state = "merge_conflict_marker"
|
|
desc = "If you are seeing this in-game: someone REALLY, REALLY, REALLY fucked up. They physically mapped in a fucking Merge Conflict Marker. What the shit."
|
|
plane = POINT_PLANE
|
|
|
|
///We REALLY do not want un-addressed merge conflicts in maps for an inexhaustible list of reasons. This should help ensure that this will not be missed in case linters fail to catch it for any reason what-so-ever.
|
|
/obj/merge_conflict_marker/Initialize(mapload)
|
|
. = ..()
|
|
var/msg = "HEY, LISTEN!!! Merge Conflict Marker detected at [AREACOORD(src)]! Please manually address all potential merge conflicts!!!"
|
|
log_mapping(msg)
|
|
to_chat(world, span_boldannounce("[msg]"))
|
|
warning(msg)
|