Skip to content

Commit

Permalink
fix linter warnings 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mentgah committed Feb 23, 2025
1 parent bef1819 commit 454c76a
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
icon_state = "nusynth"
anchored = 1
density = 1
var/datum/instrument/instruments = list()
var/list/instruments = list()

/obj/structure/synthesized_instrument/synthesizer/New()
..()
Expand Down Expand Up @@ -183,8 +183,7 @@

var/list/instruments_ids = list()
var/list/datum/instrument/instruments_by_id = list()
var/list/ins_list = instruments
for (var/ins in ins_list)
for (var/ins in instruments)
var/datum/instrument/instr = instruments[ins]
instruments_by_id[instr.id] = instr
instruments_ids += instr.id
Expand Down Expand Up @@ -328,14 +327,13 @@
src.player.song.soft_coeff = new_coeff
if ("instrument")
var/list/categories = list()
var/list/ins_list = instruments
for (var/key in ins_list)
for (var/key in instruments)
var/datum/instrument/instrument = instruments[key]
categories |= instrument.category

var/category = input(usr, "Choose a category") in categories
var/list/instruments_available = list()
for (var/key in ins_list)
for (var/key in instruments)
var/datum/instrument/instrument = instruments[key]
if (instrument.category == category)
instruments_available += key
Expand Down

0 comments on commit 454c76a

Please sign in to comment.