Skip to content

Commit

Permalink
Reverse Engineering guidebook + fixes (#408)
Browse files Browse the repository at this point in the history
* Reverse engineering guidebook

* Make it so upgrades actually increase scan bonus

* i love when uncommenting creates spaces

* the code checks for capacitor

* Revert capacitor changes and change code

* fix the guidebook still using scanning module

* woops
  • Loading branch information
FluffiestFloof authored Nov 7, 2023
1 parent c5debff commit 85d8d41
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public sealed partial class ReverseEngineeringMachineComponent : Component
public string DiskPrototype = "TechnologyDisk";

[DataField("machinePartScanBonus", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
public string MachinePartScanBonus = "Capacitor";
public string MachinePartScanBonus = "MatterBin"; // DeltaV Code: Change part checked for bonus to MatterBin as it is what is used in the crafting recipe

/// <summary>
/// Added to the 3d6, scales off of scanner.
Expand Down
1 change: 1 addition & 0 deletions Resources/Locale/en-US/nyanotrasen/guidebook/guides.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
guide-entry-reverse-engineering = Reverse Engineering
1 change: 1 addition & 0 deletions Resources/Prototypes/Guidebook/science.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Xenoarchaeology
- Robotics
- MachineUpgrading
- ReverseEngineering # Nyanotrasen - Reverse Engineering guidebook

- type: guideEntry
id: Technologies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
Cable: 4
- type: ReverseEngineering
recipes:
- DeepFryerMachineCircuitboard
- DeepFryerMachineCircuitboard
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
range: 5
sound:
path: /Audio/Ambience/Objects/revMachine_ambience.ogg
# - type: GuideHelp
# guides:
# - ReverseEngineering
- type: GuideHelp
guides:
- ReverseEngineering
- type: Appearance
- type: GenericVisualizer
visuals:
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/Nyanotrasen/Guidebook/epistemics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- type: guideEntry
id: ReverseEngineering
name: guide-entry-reverse-engineering
text: "/ServerInfo/Nyanotrasen/Guidebook/Epistemics/ReverseEngineering.xml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<Document>
# Reverse Engineering

<GuideEntityEmbed Entity="ReverseEngineeringMachine"/>

The reverse engineering machine allows salvage to bootstrap their way into unlocking powerful lathe recipes that are otherwise unacquirable.

<GuideEntityEmbed Entity="AdvancedMatterBinStockPart"/>
<GuideEntityEmbed Entity="NanoManipulatorStockPart"/>

The machine's power is very limited without upgrades to its matter bin and manipulator.
The matter bin increases its analysis power and the manipulator decreases the chance of destruction with safety turned off.

## Operation

The machine will only accept items it can reverse engineer. Currently this is most circuit boards and machine parts, but it accepts quite a variety of objects.

It does not accept firearms and never will.

To use the machine, insert an item and use the buttons on the left.

- [color=#a4885c]Analyze:[/color]
This starts a new reverse engineering attempt.

- [color=#a4885c]Safety:[/color]
With safety off, you have more analysis power, but there is a chance to destroy the item.

- [color=#a4885c]AutoProbe:[/color]
This will automatically start a new attempt when the last one ends.

- [color=#a4885c]Stop:[/color]
Stops the current attempt.

- [color=#a4885c]Item:[/color]
Ejects the item.
</Document>

0 comments on commit 85d8d41

Please sign in to comment.