Add cigarettes and matches to SS14 (#2522)

* Add resources for cigs/matches

* Add files for cigarettes

* Remove Shared Components

* Applied some of the suggestions

* Change priority to allow matches to be set alight by matchbox

* Added item for pack of cigars

* Add swepts resources. Fix naming

* Fix naming, implement suggestions.

* Addressed Paul's suggestions

* Remove unused resources

* Fix Paul's suggestions
This commit is contained in:
Ygg01
2021-01-11 00:17:28 +01:00
committed by GitHub
parent 2a5fda5198
commit c01b1d5c05
31 changed files with 612 additions and 1 deletions

View File

@@ -28,7 +28,8 @@ namespace Content.Server.GameObjects.Components.Interactable
[RegisterComponent]
[ComponentReference(typeof(ToolComponent))]
[ComponentReference(typeof(IToolComponent))]
public class WelderComponent : ToolComponent, IExamine, IUse, ISuicideAct, ISolutionChange
[ComponentReference(typeof(IHotItem))]
public class WelderComponent : ToolComponent, IExamine, IUse, ISuicideAct, ISolutionChange, IHotItem
{
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
@@ -73,6 +74,11 @@ namespace Content.Server.GameObjects.Components.Interactable
}
}
bool IHotItem.IsCurrentlyHot()
{
return WelderLit;
}
public override void Initialize()
{
base.Initialize();
@@ -285,5 +291,7 @@ namespace Content.Server.GameObjects.Components.Interactable
{
Dirty();
}
}
}