mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
* TGU
* fulp code maintaining
* Update jobs.dm
* All the fulp overwrites
* the dme
* caught it
* wow modular!
* deletes ui icons
* adds new ui icons
* Helio TGU
* Heliostation TGU (#1)
* lets try again
* try
* ai displays
* evac displays
* fire alarms
* wild hearts
plant wild seeds
aaaand wild miiiinds
have wild neeeeeeeeeeeds
extinguisher cabinet
* A lot of stuff
All directionals I think except door buttons because fuck you they're 75 and I need to put IDs in all of them I already spent 30+ minutes on the requests consoles
Oh yeah also adds the cargo stuff
* Selene
Adds cargo stuff, fixes conflicts
This does NOT add directionals
Co-authored-by: Enricode <SgtHunk@users.noreply.github.com>
* Create changelog.html
* Delete changelog.html
* Create changelog.html
* Delete changelog.html
* Config
* Helio cargo shuttle
* > deletes your cryopod
* Revert "> deletes your cryopod"
This reverts commit fd92bbf7d0.
Co-authored-by: SgtHunk <68669754+SgtHunk@users.noreply.github.com>
Co-authored-by: Enricode <SgtHunk@users.noreply.github.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
/// Ensure the frequency is within bounds of what it should be sending/receiving at
|
|
/proc/sanitize_frequency(frequency, free = FALSE)
|
|
frequency = round(frequency)
|
|
if(free)
|
|
. = clamp(frequency, MIN_FREE_FREQ, MAX_FREE_FREQ)
|
|
else
|
|
. = clamp(frequency, MIN_FREQ, MAX_FREQ)
|
|
if(!(. % 2)) // Ensure the last digit is an odd number
|
|
. += 1
|
|
|
|
/// Format frequency by moving the decimal.
|
|
/proc/format_frequency(frequency)
|
|
frequency = text2num(frequency)
|
|
return "[round(frequency / 10)].[frequency % 10]"
|
|
|
|
///Opposite of format, returns as a number
|
|
/proc/unformat_frequency(frequency)
|
|
frequency = text2num(frequency)
|
|
return frequency * 10
|
|
|
|
///returns a random unused frequency between MIN_FREE_FREQ & MAX_FREE_FREQ if free = TRUE, and MIN_FREQ & MAX_FREQ if FALSE
|
|
/proc/return_unused_frequency(free = FALSE)
|
|
var/start = free ? MIN_FREE_FREQ : MIN_FREQ
|
|
var/end = free ? MAX_FREE_FREQ : MAX_FREQ
|
|
|
|
var/freq_to_check = 0
|
|
do
|
|
freq_to_check = rand(start, end)
|
|
if(!(freq_to_check % 2)) // Ensure the last digit is an odd number
|
|
freq_to_check++
|
|
while((freq_to_check == 0) || ("[freq_to_check]" in GLOB.reverseradiochannels))
|
|
|
|
return freq_to_check
|