Added Popup for the Ligneous plant mutation when using hands. (#33136)

* Added Popup for the Ligneous plant mutation when using hands.

There was some confusion for players with the Ligneous mutation which makes the plant harvestable only with sharp tools. Adding a popup with the message "The plant is too tough." to give them a hint to use something other than just their hands.

I decided to only put the message when attempting to harvest using hands, as the intent is clear that the player just wanted to harvest, but wasn't able to. Using any other tools like a crowbar or a screwdriver will not trigger the popup.

* Update Resources/Locale/en-US/botany/components/plant-holder-component.ftl

Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>

---------

Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
This commit is contained in:
Tr1bute
2024-11-04 01:56:41 +01:00
committed by GitHub
parent 9a5152832a
commit 83f7d3f3df
2 changed files with 4 additions and 0 deletions

View File

@@ -680,8 +680,11 @@ public sealed class PlantHolderSystem : EntitySystem
if (TryComp<HandsComponent>(user, out var hands)) if (TryComp<HandsComponent>(user, out var hands))
{ {
if (!_botany.CanHarvest(component.Seed, hands.ActiveHandEntity)) if (!_botany.CanHarvest(component.Seed, hands.ActiveHandEntity))
{
_popup.PopupCursor(Loc.GetString("plant-holder-component-ligneous-cant-harvest-message"), user);
return false; return false;
} }
}
else if (!_botany.CanHarvest(component.Seed)) else if (!_botany.CanHarvest(component.Seed))
{ {
return false; return false;

View File

@@ -31,3 +31,4 @@ plant-holder-component-heat-improper-warning = The [color=orange]improper temper
plant-holder-component-pressure-improper-warning = The [color=lightblue]improper environment pressure alert[/color] is blinking. plant-holder-component-pressure-improper-warning = The [color=lightblue]improper environment pressure alert[/color] is blinking.
plant-holder-component-gas-missing-warning = The [color=cyan]improper gas environment alert[/color] is blinking. plant-holder-component-gas-missing-warning = The [color=cyan]improper gas environment alert[/color] is blinking.
plant-holder-component-early-sample-message = The plant hasn't grown enough to take a sample yet. plant-holder-component-early-sample-message = The plant hasn't grown enough to take a sample yet.
plant-holder-component-ligneous-cant-harvest-message = The plant is too tough to harvest with your bare hands.