Skip to content
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

Weldbot #1703

Merged
merged 10 commits into from
Feb 7, 2025
Merged

Weldbot #1703

merged 10 commits into from
Feb 7, 2025

Conversation

Timfa2112
Copy link
Contributor

@Timfa2112 Timfa2112 commented Feb 2, 2025

Description

The Weldbot is a medibot for IPC's, Borgs and other Silicon bots. It'll behave pretty much as a medibot would, except it welds.
Upon destruction, it will spill fuel on the ground. Nasty stuff.


Media

Note: The weldbot was slow in this video, and healed only 5 units of damage. It will heal 50 now, but I don't have an up-to-date video.
https://github.com/user-attachments/assets/11c2343b-3e7e-4536-8238-4ee28d51c045


Changelog

🆑 Timfa

  • add: Added weldbot! It'll fix IPC's, Borgs and other robots. If they stay still for long enough...

@github-actions github-actions bot added Status: Needs Review Someone please review this Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: YML Changes any yml files Changes: Sprite Changes any png or json in an RSI labels Feb 2, 2025
Copy link
Contributor

github-actions bot commented Feb 2, 2025

RSI Diff Bot; head commit 23a809c merging into c7ded91
This PR makes changes to 1 or more RSIs. Here is a summary of all changes:

Resources/Textures/Mobs/Silicon/Bots/weldbot.rsi

State Old New Status
weldbot Added

Edit: diff updated after 23a809c

Timfa2112 and others added 6 commits February 2, 2025 05:25
Co-authored-by: Remuchi <72476615+Remuchi@users.noreply.github.com>
Signed-off-by: Timfa <timfalken@hotmail.com>
Co-authored-by: Remuchi <72476615+Remuchi@users.noreply.github.com>
Signed-off-by: Timfa <timfalken@hotmail.com>
@Timfa2112 Timfa2112 requested a review from Remuchi February 4, 2025 22:21
Comment on lines 50 to 54
if (!blackboard.TryGetValue<float>(RangeKey, out var range, _entManager))
return (false, null);

if (!_entManager.TryGetComponent<WeldbotComponent>(owner, out var weldbot))
return (false, null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined in 23a809c

Comment on lines 66 to 71
if (!_entManager.TryGetComponent<TagComponent>(target, out var tagComponent) || !_tagSystem.HasTag(tagComponent, tagPrototype))
continue;

// Only go towards a target if the bot can actually help them or if the weldbot is emagged
if (!emagged && damage.DamagePerGroup["Brute"].Value == 0)
continue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined in 23a809c

Comment on lines 62 to 72
if (!_entMan.TryGetComponent<TagComponent>(target, out var tagComponent) || !_tagSystem.HasTag(tagComponent, tagPrototype))
return HTNOperatorStatus.Failed;

if (!_entMan.TryGetComponent<WeldbotComponent>(owner, out var botComp))
return HTNOperatorStatus.Failed;

if (!_entMan.TryGetComponent<DamageableComponent>(target, out var damage))
return HTNOperatorStatus.Failed;

if (!_interaction.InRangeUnobstructed(owner, target))
return HTNOperatorStatus.Failed;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

combine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined in 23a809c

@sleepyyapril sleepyyapril merged commit 20a0c5b into Simple-Station:master Feb 7, 2025
11 of 12 checks passed
SimpleStation14 added a commit that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: Sprite Changes any png or json in an RSI Changes: YML Changes any yml files Status: Needs Review Someone please review this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants