Skip to content

Conversation

jwhitak
Copy link
Collaborator

@jwhitak jwhitak commented Aug 23, 2024

Nobody told the coders...

image

What this does

Fixes the dead option in the Shuttle Magic panel to toggle the destroy_everything variable. Most admins with vv used things like vv to directly edit the variable, but admins without this ability desired the option to edit this value.

Why it's good

silent can shuttlecrush people

How it was tested

Opened the panel, tried the options out on various shuttles, canceling, verifying the variable was changed, etc.
image

@jwhitak jwhitak added Bug / Fix This is either a bug or a fix for a bug. Logging / Administration This touches things involving admins or logging. labels Aug 23, 2024
Comment on lines +4996 to +5001
if(new_value == "CRUSH")
S.destroy_everything = TRUE
else if(new_value == "No crush")
S.destroy_everything = FALSE
else
return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(new_value == "CRUSH")
S.destroy_everything = TRUE
else if(new_value == "No crush")
S.destroy_everything = FALSE
else
return
S.destroy_everything = new_value == "CRUSH" ? TRUE : FALSE

Copy link
Collaborator Author

@jwhitak jwhitak Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's the if(new_value == null) case, where you just cancel out the input (no change), represented in the final else case above. I could implement your changes but I'd want to add in a quick if(isnull(new_value)) return above it.

@west3436 west3436 merged commit 48b56da into vgstation-coders:Bleeding-Edge Aug 30, 2024
@jwhitak jwhitak deleted the diltAdminEscape branch September 12, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug / Fix This is either a bug or a fix for a bug. Logging / Administration This touches things involving admins or logging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants