-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix atom name/desc not copying on appearance set #2145
base: master
Are you sure you want to change the base?
Fix atom name/desc not copying on appearance set #2145
Conversation
@@ -38,6 +31,12 @@ | |||
|
|||
base.HandleDeletion(possiblyThreaded); | |||
} | |||
public string GetDesc() { |
Check warning
Code scanning / InspectCode
Incorrect blank lines: Blank lines are missing elsewhere Warning
@@ -38,6 +31,12 @@ | |||
|
|||
base.HandleDeletion(possiblyThreaded); | |||
} | |||
public string GetDesc() { | |||
if (!TryGetVariable("desc", out DreamValue descVar) || !descVar.TryGetValueAsString(out string? desc)) | |||
return ObjectDefinition.Type.ToString(); |
Check warning
Code scanning / InspectCode
Redundant 'object.ToString()' call Warning
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Fixes #2107 by adding a desc var to appearances and changing atom var access methods to always defer to appearance.
There's a warning on the
IconAppearance
class that begins "Woe, weary traveler" so hopefully I've done all the steps right to avoid doom or whatever.Includes a DM test to hopefully prove it works.