-
Notifications
You must be signed in to change notification settings - Fork 50
Do commands and subtle + subtler #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
From the porting pr.. I've never seen this before, would def like wider feedback from others. |
It's essentially the same thing as /me emotes, just formatted differently IMO. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Modular edit comments should really be using the actual module ID
Small note, even on old code, it felt weird having 3 seperate methods of interfacing (for emotes specificly) in a private scene. Subtle is a req as it was in the old code but i worry tossing another verb into the mix. It feels like all of them could do with more unifying of behavior to make everything feel more cohesive.
also try and make sure subtle activates the typing indicator.
|
|
||
| ## \<DO EMOTES> | ||
|
|
||
| Module ID: DO EMOTES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think these should have spaces.
| Module ID: DO EMOTES | |
| Module ID: DO_EMOTES |
| /datum/config_entry/flag/play_subtler_sound | ||
| default = TRUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this a config? This is entirely a player pref thing Idk why a server host would ever adjust this.
| /datum/preference/toggle/subtler_sound | ||
| savefile_key = "subtler_sound" | ||
| savefile_identifier = PREFERENCE_PLAYER | ||
| category = PREFERENCE_CATEGORY_GAME_PREFERENCES | ||
| default_value = TRUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really within the scope of this pr but this should just be replaced with all our chat messages making sounds (as they do in tfn and apoc)
| /datum/emote/living/subtle | ||
| key = "subtle" | ||
| key_third_person = "subtle" | ||
| message = null | ||
| mob_type_blacklist_typecache = list(/mob/living/brain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im a bit confused of the value we get out of this being an emote when we override almost all the emote code, and every player that im aware of only interfaces with it via the verb. /datum/emote/living/custom seems to be how me emotes work tho so I guess its valid.
| /mob/verb/do_verb(message as message) | ||
| set name = "Do" | ||
| set category = "IC" | ||
| set instant = TRUE | ||
|
|
||
| if(GLOB.say_disabled) | ||
| to_chat(src, span_danger("Speech is currently admin-disabled.")) | ||
| return | ||
|
|
||
| if(message) | ||
| QUEUE_OR_CALL_VERB_FOR(VERB_CALLBACK(src, TYPE_VERB_REF(/mob/living, do_actual_verb), message), SSspeech_controller) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do is pretty detached from alot of me code and will definitly function a bit diffrnet because of it.,
me emotes have is_banned_from(user.ckey, "Emote")) and user.client.prefs.muted & MUTE_IC and this also seems to bypass word filters.
| for(var/mob/ghost as anything in GLOB.dead_mob_list) | ||
| if((ghost.client?.prefs.chat_toggles & CHAT_GHOSTSIGHT) && !(ghost in viewers)) | ||
| to_chat(ghost, "[FOLLOW_LINK(ghost, user)] [subtle_message]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go look at /datum/emote/proc/run_emote
in there it makes sure to filter for isnewplayer which seems to be missing here.
|
|
||
| subtle_message = span_subtle("<b>[user]</b>[space]<i>[user.apply_message_emphasis(subtle_message)]</i>") | ||
|
|
||
| var/list/viewers = get_hearers_in_view(SUBTLE_ONE_TILE, user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider this so that emoting in cars work? I cant think of any negative effects...
| var/list/viewers = get_hearers_in_view(SUBTLE_ONE_TILE, user) | |
| var/list/viewers = get_hearers_in_view(SUBTLE_ONE_TILE, get_turf(user)) |
| if(!subtler_emote) | ||
| return FALSE | ||
|
|
||
| var/list/in_view = get_hearers_in_view(subtler_range, user) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
| var/list/in_view = get_hearers_in_view(subtler_range, user) | |
| var/list/in_view = get_hearers_in_view(subtler_range, get_turf(user))) |
| var/datum/preferences/prefs = target_mob.client?.prefs | ||
| if(prefs && prefs.read_preference(/datum/preference/toggle/subtler_sound)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto for all instances? unless this feels too messy?
| var/datum/preferences/prefs = target_mob.client?.prefs | |
| if(prefs && prefs.read_preference(/datum/preference/toggle/subtler_sound)) | |
| if(target_mob.client?.prefs?.read_preference(/datum/preference/toggle/subtler_sound)) |
| { // DARKPACK EDIT ADDITION START | ||
| type: MESSAGE_TYPE_SUBTLE, | ||
| name: 'Subtle', | ||
| description: 'Subtle and Subtler actions.', | ||
| selector: '.subtle, .subtler', | ||
| }, // DARKPACK EDIT ADDITION END |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the fact that basic mobs no longer spam the shit out of ghost ears. These feel like they could be lumped in with emotes without issue. Just a thought.
|
If I'm honest, I don't see us using this on Apocrypha. It has implications of players using these to describe their environs instead of themselves. Me's mostly cover the RP based usecases for this, as it doesn't force your text into quotation marks but still denotes the post as being from or belonging to a specific character. If anything, I'd just like to make sure this verb is mutable on downstreams if it's included on Dark Pack. |
|
I saw someone complaining subtler is only 1k characters? forget where. |
About The Pull Request
Ports:
Why It's Good For The Game
More small RP features.
Changelog
🆑 XeonMations, yooriss, RatFromTheJungle, OrbisAnimal, FlufflesTheDog, sunnyaries
add: Added Do emotes
add: Added subtle and subtler emotes
/:cl: