Files
Bubberstation/code/modules/power
SkyratBot 48ebaac240 [MIRROR] Lightbulb removal code adjustments and message change [MDB IGNORE] (#20047)
* Lightbulb removal code adjustments and message change (#74166)

## About The Pull Request

This makes two changes to the lightbulb removal process code that I
found while looking at a different issue:

'user' is passed as a carbon, which is then typecasted to 'electrician'
as a carbon (again). electrician/user were used interchangeably, and
were functionally identical, meaning the electrician var was
unnecessary. Now, 'electrician' has been removed and replaced with user.

The 'protection_amount' var is now 'protected' and uses TRUE/FALSE,
since it was only ever a value of 0 or 1 anyways. The order in which it
is determined has been shifted slightly.

This also changes the message you get partway through ripping out a
lightbulb with the lightbulb remover skillchip:

`to_chat(user, span_notice("You feel like you're burning, but you can
push through."))`

`to_chat(user, span_notice("You feel your [the limb being burned]
burning, and the light beginning to budge."))`
## Why It's Good For The Game

Makes the code a bit easier to read.

The "you feel like you're burning" message has ever so slightly bothered
me for too long. I feel like I'm burning? It's a fucking light tube
dude, I'm fine.
## Changelog
🆑
code: Lightbulb removal code is a little bit easier to read
spellcheck: The lightbulb remover skillchip implant (which I know you
guys LOVE to use) has a slightly different message now.
/🆑

* Lightbulb removal code adjustments and message change

---------

Co-authored-by: Rhials <Datguy33456@gmail.com>
2023-03-24 08:51:05 -07:00
..