Skip to content
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

Clearer message when safecracking with music playing #38003

Merged

Conversation

wapcaplet
Copy link
Contributor

@wapcaplet wapcaplet commented Feb 13, 2020

Summary

SUMMARY: Interface "Clearer message when safecracking with music playing"

Purpose of change

Fixes #37996

Describe the solution

Change the message from:

You can't crack a safe with earbuds on!

to:

You can't crack a safe while listening to music!

Also removes a double-activation-time cost for mp3 players that was caused by PR #37584 (which added 200 moves to all devices but didn't remove the existing 200 moves for mp3 players in particular).

Describe alternatives you've considered

Considered also indicating the device type as well, but I see the mp3 on/off functions are already cluttered with multiple hardcoded device types after the above PR, and all of this would have to be duplicated in the safe-cracking code too, and I am not interested in opening that can of worms.

Testing

  • Spawned mp3 player, smartphone, and stethoscope
  • Used clarivoyance artifact and teleport to find a safe to crack
  • Tried to crack safe with and without mp3 player or smartphone playing music: "You can't crack a safe while listening to music!"
  • Turned off mp3 player or smartphone: Safe-cracking attempt works

Additional context

image

This makes mp3 players take the same amount of time to activate or
deactivate as music-playing smartphones.

PR CleverRaven#37584 added 200 (de-)activation time to the smartphones, but
since the mp3 player already had its own 200 move cost, this made the
mp3 player take twice as long as the other devices.
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. Items / Item Actions / Item Qualities Items and how they work and interact labels Feb 14, 2020
@ZhilkinSerg ZhilkinSerg merged commit 04d9e0f into CleverRaven:master Feb 14, 2020
@wapcaplet wapcaplet deleted the better-mp3-safecracking-message branch February 24, 2020 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"You can't crack a safe with earbuds on!"
2 participants