-
Notifications
You must be signed in to change notification settings - Fork 221
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
Plantbot #1831
Plantbot #1831
Conversation
private EntityLookupSystem _lookup = default!; | ||
private PathfindingSystem _pathfinding = default!; | ||
|
||
[DataField] public string RangeKey = NPCBlackboard.PlantbotServiceRange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate lines, add a summary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(specifically the datafield)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied in e0e7f87
...ver/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyServicableHydroponicsTrayOperator.cs
Outdated
Show resolved
Hide resolved
...ver/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyServicableHydroponicsTrayOperator.cs
Show resolved
Hide resolved
...ver/NPC/HTN/PrimitiveTasks/Operators/Specific/PickNearbyServicableHydroponicsTrayOperator.cs
Outdated
Show resolved
Hide resolved
Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PlantBotServiceOperator.cs
Show resolved
Hide resolved
Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/PlantBotServiceOperator.cs
Show resolved
Hide resolved
{ | ||
_plantHolderSystem.AdjustWater(target, -10f); | ||
_audio.PlayPvs(botComp.RemoveWaterSound, target); | ||
} | ||
else | ||
{ | ||
if (plantHolderComponent.WaterLevel < 80f) | ||
{ | ||
_plantHolderSystem.AdjustWater(target, 10); | ||
_audio.PlayPvs(botComp.WaterSound, target); | ||
_chat.TrySendInGameICMessage(owner, Loc.GetString("plantbot-add-water"), InGameICChatType.Speak, hideChat: true, hideLog: true); | ||
} | ||
else if (plantHolderComponent.WeedLevel > 1) | ||
{ | ||
plantHolderComponent.WeedLevel -= 1; | ||
_audio.PlayPvs(botComp.WeedSound, target); | ||
_chat.TrySendInGameICMessage(owner, Loc.GetString("plantbot-remove-weeds"), InGameICChatType.Speak, hideChat: true, hideLog: true); | ||
} | ||
else | ||
return HTNOperatorStatus.Failed; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use constants to make this easily readable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied in e0e7f87
Part 1/2 Co-authored-by: sleepyyapril <[email protected]> Signed-off-by: Timfa <[email protected]>
Will merge if tests fine, ping in discord if ends up okay |
Love this addition, but shouldn't it use a mini-hoe instead of clippers in it's recipe since it clears weeds and doesn't clip? |
Description
Adds the Plantbot!
The Plantbot will help keep Hydroponics Trays filled with water and cleared of weeds.
It will add water in 10u steps if there is less than 80u in the tray, and will clear weeds with 10% per step if there are more than 10% weeds in the tray.
If the bot is destroyed, it will spill a bunch of water.
It does not add nutrients, sample, harvest or plant.
If emagged, it'll drink water from trays until no water remains.
Media
20250221135110.mp4
Changelog
🆑