Skip to content

Commit bef1819

Browse files
committed
open dream linter fix 1
1 parent fdc2f37 commit bef1819

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

code/modules/bayinstruments/real_instrumentssynthesized/synthesizer.dm

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,48 @@
4343

4444
/datum/music_code/proc/octave_code()
4545
if (src.octave!=null)
46-
var/sym = (octave_condition==LESSER ? "<" :
47-
octave_condition==EQUAL ? "=" :
48-
octave_condition==GREATER_MUSIC ? ">" : null)
46+
var/sym = ""
47+
switch(octave_condition)
48+
if(LESSER)
49+
sym = "<"
50+
if(EQUAL)
51+
sym = "="
52+
if(GREATER_MUSIC)
53+
sym = ">"
54+
else
55+
sym = null
4956
return "O[sym][octave]"
5057
return ""
5158

5259

5360
/datum/music_code/proc/line_num_code()
5461
if (src.line_num)
55-
var/sym = (line_condition==LESSER ? "<" :
56-
line_condition==EQUAL ? "=" :
57-
line_condition==GREATER_MUSIC ? ">" : null)
62+
var/sym = ""
63+
switch(line_condition)
64+
if(LESSER)
65+
sym = "<"
66+
if(EQUAL)
67+
sym = "="
68+
if(GREATER_MUSIC)
69+
sym = ">"
70+
else
71+
sym = null
5872
return "L[sym][line_num]"
5973
return ""
6074

6175

6276
/datum/music_code/proc/line_note_num_code()
6377
if (src.line_note_num)
64-
var/sym = (line_note_condition==LESSER ? "<" :
65-
line_note_condition==EQUAL ? "=" :
66-
line_note_condition==GREATER_MUSIC ? ">" : null)
78+
var/sym = ""
79+
switch(line_note_condition)
80+
if(LESSER)
81+
sym = "<"
82+
if(EQUAL)
83+
sym = "="
84+
if(GREATER_MUSIC)
85+
sym = ">"
86+
else
87+
sym = null
6788
return "N[sym][line_note_num]"
6889
return ""
6990

0 commit comments

Comments
 (0)