Skip to content

Commit

Permalink
Butlergone (Cherry-Pick From Delta-V) (#678)
Browse files Browse the repository at this point in the history
# Description
Cherry-picks DeltaV-Station/Delta-v#1100 and
DeltaV-Station/Delta-v#1222.

Makes butlertron anchorable, pullable, and destructible, and disables
logging of butlertron's messages.

Credit to adeinitas and NullWanderer.

# Note
This was cherry-picked without testing, someone needs to test it first.

# Changelog
:cl:
- add: Mr. Butlertron can now suffer for its crimes.

---------

Signed-off-by: Null <[email protected]>
Co-authored-by: Adeinitas <[email protected]>
Co-authored-by: Null <[email protected]>
  • Loading branch information
3 people authored Aug 7, 2024
1 parent 1b2c946 commit a0f3f31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/DeltaV/NPC/Roboisseur/RoboisseurSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public override void Update(float frameTime)
}
else if (CheckTier(roboisseur.DesiredPrototype.ID, roboisseur) > 2)
message = Loc.GetString(_random.Pick(roboisseur.DemandMessagesTier2), ("item", roboisseur.DesiredPrototype.Name));
_chat.TrySendInGameICMessage(roboisseur.Owner, message, InGameICChatType.Speak, false);
_chat.TrySendInGameICMessage(roboisseur.Owner, message, InGameICChatType.Speak, true);
}

if (roboisseur.Accumulator >= roboisseur.ResetTime.TotalSeconds)
Expand Down Expand Up @@ -100,7 +100,7 @@ private void OnInteractHand(EntityUid uid, RoboisseurComponent component, Intera
if (CheckTier(component.DesiredPrototype.ID, component) > 1)
message = Loc.GetString(_random.Pick(component.DemandMessagesTier2), ("item", component.DesiredPrototype.Name));

_chat.TrySendInGameICMessage(component.Owner, message, InGameICChatType.Speak, false);
_chat.TrySendInGameICMessage(component.Owner, message, InGameICChatType.Speak, true);
}

private void OnInteractUsing(EntityUid uid, RoboisseurComponent component, InteractUsingEvent args)
Expand Down
10 changes: 10 additions & 0 deletions Resources/Prototypes/DeltaV/NPC/roboisseur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
name: Mr. Butlertron
description: It asks for food to deliver to exotic customers across the cosmos. Powered by the latest technology in bluespace food delivery.
components:
- type: Anchorable
- type: Pullable
- type: Sprite
noRot: true
drawdepth: Mobs
sprite: DeltaV/Structures/Machines/roboisseur.rsi
layers:
- state: roboisseur-1
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1000
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Roboisseur
- type: Speech
speechSounds: Pai
Expand Down

0 comments on commit a0f3f31

Please sign in to comment.