This article is a stub.

And Component: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Removed redirect to Wiring Components#And Component)
Tag: Removed redirect
No edit summary
Line 2: Line 2:
| name = And Component
| name = And Component


<!-- item info -->
| fabricator = Yes
| fabricator = Yes
| fabricatorskill = electrical
| fabricatorskill = electrical
| fabricatorskilllevel = 20
| fabricatorskilllevel = 20
| fabricatortime = 10
| fabricatortime = 10
| fabricatormaterials = {{hyperlink|FPGA Circuit}}
| fabricatormaterials = {{Hyperlink|FPGA Circuit}}
| deconstructor = Yes
| deconstructor = Yes
| deconstructortime = 10
| deconstructortime = 10
| deconstructormaterials = {{hyperlink|FPGA Circuit}}
| deconstructormaterials = {{Hyperlink|FPGA Circuit}}
 
| baseprice = 100
| outpostmultiplier = 1
| cityunbuyable = true
| citymultiplier = 1
| researchmultiplier = 1.25
| militarymultiplier = 1
| minemultiplier = 1
| engineeringmultiplier = 0.9
| minleveldifficulty = 15
 
| outpostminavailable = 1
| cityminavailable = 1
| researchminavailable = 1
| militaryminavailable = 1
| mineminavailable = 1
| engineeringminavailable = 1
 
<!-- Technical -->
| identifier = andcomponent
| category = Electrical
| tags = smallitem, logic
}}
For knowledge on placing and wiring components, please go to the main [[Wiring Components]] page.
 
=Logic=
==[[File:And_Component.png|40px]] And Component==
<blockquote>"''Sends a signal when both inputs receive a signal within a set period of each other."''</blockquote>
The '''And Component''' is an electrical component used to check if both inputs are receiving a truthy signal.
 
 
{{Connection panel
|panelfor = And Component
|input1=Signal_In_1
|input1tt=The input of the first signal.
|input2=Signal_In_2
|input2tt=The input of the second signal.
|input3=Set_Output
|input3tt=Sets the "true" output.
|output1=Signal_Out
|output1tt=The output of the component.
}}
<small>"1" denotes ''any non-zero'' signal, "0" denotes a "zero signal or no signal"</small>
{| class="wikitable"
|-
! colspan="3" | Truth Table
|-
! Input 1 !! Input 2 !! Output
|-
| 0 || 0 || 0
|-
| 0 || 1 || 0
|-
| 1 || 0 || 0
|-
| 1 || 1 || 1
|}

Revision as of 13:29, 11 April 2024

Data is up-to-date
Last updated for version 1.3.0.2
Last mentioned in changelog 0.19.7.0
The current game version is 1.4.5.0
And Component
Crafting
Fabricator
Requirements
Skill: Electrical: 20
Deconstructor Yield
Store
Minimum Difficulty 15%
Base Price 100 mk
Outposts
OutpostOutpost Buy Sell
Habitation OutpostHabitation 100 mk 30 mk
ColonyColony N/A 30 mk
Research OutpostResearch 125 mk 37 mk
Military OutpostMilitary 100 mk 30 mk
Mining OutpostMining 100 mk 30 mk
Medical MerchantMedical Merchant N/A 30 mk
Engineer MerchantEngineer Merchant 90 mk 27 mk
Armory MerchantArmory Merchant N/A 30 mk
Children of The HonkmotherClown Merchant N/A 30 mk
The Church of HuskHusk Merchant N/A 30 mk
Technical
Identifier andcomponent
Categories Electrical
Tags smallitem, logic

For knowledge on placing and wiring components, please go to the main Wiring Components page.

Logic

And Component

"Sends a signal when both inputs receive a signal within a set period of each other."

The And Component is an electrical component used to check if both inputs are receiving a truthy signal.


Connection Panel for And Component
Hover over pins to see their descriptions.
Signal_In_1
Signal_In_2
Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out
The output of the component.
Requires: Screwdriver

"1" denotes any non-zero signal, "0" denotes a "zero signal or no signal"

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1