Rename usages of collidable to physics (#2230)

* Rename usages of collidable to physics

* high tier PANIQUE

* aaaaaaaaAAAAAa

* cursed commit dont research

* Fix urist and items being anchored

* Fix the rest
This commit is contained in:
DrSmugleaf
2020-10-11 16:36:58 +02:00
committed by GitHub
parent 413ca9812d
commit b64cb24059
79 changed files with 292 additions and 268 deletions

View File

@@ -20,19 +20,19 @@ namespace Content.Server.Construction.Conditions
public async Task<bool> Condition(IEntity entity)
{
if (!entity.TryGetComponent(out ICollidableComponent collidable)) return false;
if (!entity.TryGetComponent(out IPhysicsComponent physics)) return false;
return collidable.Anchored == Anchored;
return physics.Anchored == Anchored;
}
public void DoExamine(IEntity entity, FormattedMessage message, bool inDetailsRange)
{
if (!entity.TryGetComponent(out ICollidableComponent collidable)) return;
if (!entity.TryGetComponent(out IPhysicsComponent physics)) return;
if(Anchored && !collidable.Anchored)
if(Anchored && !physics.Anchored)
message.AddMarkup("First, anchor it.\n");
if(!Anchored && collidable.Anchored)
if(!Anchored && physics.Anchored)
message.AddMarkup("First, unanchor it.\n");
}
}