Skip to content

Commit

Permalink
Upgrades the PTL lens (#2185)
Browse files Browse the repository at this point in the history
* Upgrades the PTL lens

Makes the PTL EXTRA B I G

* blarg

yeah

* returns curve to normal values

as title says. no effect in testing for unknown reasons?
  • Loading branch information
ven1883 authored Jun 20, 2024
1 parent a23f99f commit f8ed514
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 1 deletion.
4 changes: 4 additions & 0 deletions code/__DEFINES/~monkestation/power.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
#define TW GW * 1000
#define PW TW * 1000
#define EW PW * 1000
#define ZW EW * 1000
#define YW ZW * 1000
#define RW YW * 1000
#define QW RW * 1000
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@
power_format_multi = 1 TW
if("inputPW")
power_format_multi = 1 PW
if("inputEW")
power_format_multi = 1 EW
if("inputZW")
power_format_multi = 1 ZW
if("inputYW")
power_format_multi = 1 YW
if("inputRW")
power_format_multi = 1 RW
if("inputQW")
power_format_multi = 1 QW

if("outputW")
power_format_multi_output = 1
Expand All @@ -224,6 +234,16 @@
power_format_multi_output = 1 TW
if("outputPW")
power_format_multi_output = 1 PW
if("outputEW")
power_format_multi_output = 1 EW
if("outputZW")
power_format_multi_output = 1 ZW
if("outputYW")
power_format_multi_output = 1 YW
if("outputRW")
power_format_multi_output = 1 RW
if("outputQW")
power_format_multi_output = 1 QW


/obj/machinery/power/transmission_laser/process()
Expand Down Expand Up @@ -284,7 +304,7 @@

////selling defines are here
#define MINIMUM_BAR 25
#define PROCESS_CAP 5000 - MINIMUM_BAR
#define PROCESS_CAP 5000000 - MINIMUM_BAR

#define A1_CURVE 70

Expand Down
50 changes: 50 additions & 0 deletions tgui/packages/tgui/interfaces/TransmissionLaser.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,31 @@ const InputControls = (props, context) => {
selected={power_format === 10 ** 15}
onClick={() => act('inputPW')}
/>
<Button
content={'EW'}
selected={power_format === 10 ** 18}
onClick={() => act('inputEW')}
/>
<Button
content={'ZW'}
selected={power_format === 10 ** 21}
onClick={() => act('inputZW')}
/>
<Button
content={'YW'}
selected={power_format === 10 ** 24}
onClick={() => act('inputYW')}
/>
<Button
content={'RW'}
selected={power_format === 10 ** 27}
onClick={() => act('inputRW')}
/>
<Button
content={'QW'}
selected={power_format === 10 ** 30}
onClick={() => act('inputQW')}
/>
</Box>
</Section>
);
Expand Down Expand Up @@ -222,6 +247,31 @@ const OutputControls = (props, context) => {
selected={output_multiplier === 10 ** 15}
onClick={() => act('outputPW')}
/>
<Button
content={'EW'}
selected={output_multiplier === 10 ** 18}
onClick={() => act('outputEW')}
/>
<Button
content={'ZW'}
selected={output_multiplier === 10 ** 21}
onClick={() => act('outputZW')}
/>
<Button
content={'YW'}
selected={output_multiplier === 10 ** 24}
onClick={() => act('outpuYW')}
/>
<Button
content={'RW'}
selected={output_multiplier === 10 ** 27}
onClick={() => act('outputRW')}
/>
<Button
content={'QW'}
selected={output_multiplier === 10 ** 30}
onClick={() => act('outputQW')}
/>
</Box>
</Section>
);
Expand Down

0 comments on commit f8ed514

Please sign in to comment.