Skip to content

Commit

Permalink
rename GetDesc + remove toString
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleroneSwordfish committed Dec 18, 2024
1 parent d8059b8 commit b82d31c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions OpenDreamRuntime/Objects/Types/DreamObjectAtom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ protected override void HandleDeletion(bool possiblyThreaded) {

base.HandleDeletion(possiblyThreaded);
}
public string GetDesc() {

public string GetRTEntityDesc() {
if (!TryGetVariable("desc", out DreamValue descVar) || !descVar.TryGetValueAsString(out string? desc))
return ObjectDefinition.Type.ToString();
return ObjectDefinition.Type;

return desc;
}
Expand Down
2 changes: 1 addition & 1 deletion OpenDreamRuntime/Objects/Types/DreamObjectMovable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override void Initialize(DreamProcArguments args) {

if (EntityManager.TryGetComponent(Entity, out MetaDataComponent? metaData)) {
MetaDataSystem?.SetEntityName(Entity, GetDisplayName(), metaData);
MetaDataSystem?.SetEntityDescription(Entity, GetDesc(), metaData);
MetaDataSystem?.SetEntityDescription(Entity, GetRTEntityDesc(), metaData);
}

args.GetArgument(0).TryGetValueAsDreamObject<DreamObjectAtom>(out var loc);
Expand Down

0 comments on commit b82d31c

Please sign in to comment.