Nah, it's not that. It would be spitting other errors out, I think.
Things are in the wrong order, and they aren't indented right, I think.
Except the clown chips. Had some unterminated text there.
Recompiling with the... hopefully correct order.
That's interesting.
Apparently naming something "chips" so the vendor dosen't flip the fuck out (no idea if it will or not, but better be safe right?) then immediately renaming it later under a rand won't throw out errors. Still at 50, and it's all indentations and bad argument definitions. Huh. I am down to 50 now.
Not noticing any missing parenthesis.
Also, I've been coding while pumping my ears full of SOAD this entire time. I may eventually need more coder music. Suggestions?I can't figure out what order BYOND wants this in and how I should be indenting it.
/obj/item/weapon/reagent_containers/food/snacks/chips
name = "chips" //Line 2336
switch(rand(1,10))
if(1)
name = "Cuban Pete's Chilli Chips"
desc = "Chips that taste spicy, like a chilli pepper. Like an explosion of flavor in your mouth."
icon_state ="cpcpc"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(2)
name = "Mime Time Monochrome Chips"
desc = "Chips with bands of salt and pepper flavoring. Like licking a mime's suit... metaphorically, of course."
icon_state ="mimetime"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(3)
name = "Robustco Salt and Vinegar Chips"
desc = "Salt and vinegar chips with a self proclaimed robust taste. It takes a stong stomach to eat these."
icon_state ="robustcochips"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(4)
name = "Brother Borg's BBQ Chips"
desc = "Sweetish, warm chips. Despite the name, borgs still can't eat them."
icon_state = "broborg"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(5)
name = "Toxic Chomps Onion and Garlic Chips"
desc = "A tasty, but breath-destryoing flavor combination. Eat at your own risk."
icon_state = "toxchomps"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(6)
name = "Wunderbar Wavy Chips"
desc = "Wavy chips, from what you can tell. The name might be in German, but the rest is indecipherable."
icon_state = "wunderbar"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(7)
name = "Four Cheese Chips"
desc = "Apparently, four different cheeses went into these chips. It never says exactly which ones, though."
icon_state = "fourcheese"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(8)
name = "Space Chips"
desc = "Bland, Nanotrasen-Approved chips. You think they might be kinda salty?"
icon_state = "chips"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(9)
name = "Speissu Bakonu"
desc = "Less like chips and more like hard bacon. Still delicious. Straight from Space Japan."
icon_state = "spacebacon"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(10)
name = "HONKY HONKER's Banana Chips"
desc = "Healthier than regular chips, but you might start thinking like a clown."
icon_state = "honkhonk"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
Produces:
loading tgstation.dme
loading interface\skin.dmf
code\modules\reagents\reagent_containers\food\snacks.dm:2337:error: 1: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2337:error: 10: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2337:error: : empty type name (indentation error?)
code\modules\reagents\reagent_containers\food\snacks.dm:2338:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2338:error: 1: value not allowed here
code\modules\reagents\reagent_containers\food\snacks.dm:2339:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2337:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2348:error: 2: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2358:error: 3: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2368:error: 4: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2378:error: 5: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2388:error: 6: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2398:error: 7: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2408:error: 8: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2418:error: 9: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2428:error: 10: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2349:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2359:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2369:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2379:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2389:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2399:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2409:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2419:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2429:error: : duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2406:error: "nutriment": duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2406:error: 3: duplicate definition
code\modules\reagents\reagent_containers\food\snacks.dm:2406:error: reagents.add_reagent: instruction not allowed here
tgstation.dmb - 28 errors, 0 warnings
/obj/item/weapon/reagent_containers/food/snacks/chips
switch(rand(1,10))
if(1)
name = "Cuban Pete's Chilli Chips"
desc = "Chips that taste spicy, like a chilli pepper. Like an explosion of flavor in your mouth."
icon_state ="cpcpc"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(2)
name = "Mime Time Monochrome Chips"
desc = "Chips with bands of salt and pepper flavoring. Like licking a mime's suit... metaphorically, of course."
icon_state ="mimetime"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(3)
name = "Robustco Salt and Vinegar Chips"
desc = "Salt and vinegar chips with a self proclaimed robust taste. It takes a stong stomach to eat these."
icon_state ="robustcochips"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(4)
name = "Brother Borg's BBQ Chips"
desc = "Sweetish, warm chips. Despite the name, borgs still can't eat them."
icon_state = "broborg"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(5)
name = "Toxic Chomps Onion and Garlic Chips"
desc = "A tasty, but breath-destryoing flavor combination. Eat at your own risk."
icon_state = "toxchomps"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(6)
name = "Wunderbar Wavy Chips"
desc = "Wavy chips, from what you can tell. The name might be in German, but the rest is indecipherable."
icon_state = "wunderbar"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(7)
name = "Four Cheese Chips"
desc = "Apparently, four different cheeses went into these chips. It never says exactly which ones, though."
icon_state = "fourcheese"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(8)
name = "Space Chips"
desc = "Bland, Nanotrasen-Approved chips. You think they might be kinda salty?"
icon_state = "chips"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(9)
name = "Speissu Bakonu"
desc = "Less like chips and more like hard bacon. Still delicious. Straight from Space Japan."
icon_state = "spacebacon"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
if(10)
name = "HONKY HONKER's Banana Chips"
desc = "Healthier than regular chips, but you might start thinking like a clown."
icon_state = "honkhonk"
trash = /obj/item/trash/chips
bitesize = 1
New()
..()
reagents.add_reagent("nutriment", 3)
Produces:
loading tgstation.dme
code\modules\reagents\reagent_containers\food\snacks.dm:2338:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2344:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2345:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2347:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2347:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2347:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2354:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2355:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2357:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2357:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2357:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2364:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2365:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2367:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2367:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2367:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2374:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2375:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2377:error: inconsistent indentation
code\modules\reagents\reagent_containers\food\snacks.dm:2377:error: bad argument definition
code\modules\reagents\reagent_containers\food\snacks.dm:2377:error: bad argument definition
tgstation.dmb - 49 errors, 0 warnings