From d25500ef7e69b58baf3d83085a8a811c4c26d3e2 Mon Sep 17 00:00:00 2001 From: InsightfulParasite Date: Fri, 20 Dec 2024 23:52:48 -0500 Subject: [PATCH] ughhhghhh --- code/modules/stock_market/events.dm | 2 +- code/modules/stock_market/industries.dm | 2 +- code/modules/stock_market/stockmarket.dm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/stock_market/events.dm b/code/modules/stock_market/events.dm index 7517927453bd..9c70d35eba6e 100644 --- a/code/modules/stock_market/events.dm +++ b/code/modules/stock_market/events.dm @@ -166,7 +166,7 @@ "dereliction of duty", "spacecraft piracy", "music piracy", "tabletop game piracy", "software piracy", "escaping from space prison", "seniornapping", "clownnapping", "corginapping", "catnapping", "sleeping on the job", "terrorism", "counterterrorism", "drug distribution", "insubordination", "jaywalking", "owning a computer", "owning a cellphone", "owning a PDA", "owning a pAI", "adultery", "committing an unnatural act with another person", "corrupting public morals", "skateboarding without a license", "shitcurity", "erotic roleplay", "accidentally strangling a prostitute") - while (prob(60) && O.len > 2) + if(prob(60) && O.len > 2) var/offense = pick(O) O -= offense offense = "[prob(20) ? "attempted " : (prob(20) ? "being accessory to " : null)][offense][prob(5) ? " of the [pick("first", "second", "third", "fourth", "fifth", "sixth")] degree" : null]" diff --git a/code/modules/stock_market/industries.dm b/code/modules/stock_market/industries.dm index 2fc6bd50f7dc..282185b0cb3d 100644 --- a/code/modules/stock_market/industries.dm +++ b/code/modules/stock_market/industries.dm @@ -77,7 +77,7 @@ "Will %company_name% grow on %industrial% wasteland? Owners of %product_name% may decide", \ "%company_name% looking to reap profits off the %industrial% sector with %product_name%") -/datum/industry/agriculture/generateProductName(var/company_name) +/datum/industry/agriculture/generateProductName(company_name) var/list/products = list("water tank", "cattle prod", "scythe", "plough", "sickle", "cultivator", "loy", "spade", "hoe", "daisy grubber", "cotton gin") var/list/prefix = list("[company_name]'s ", "the [company_name] ", "the fully automatic ", "the full-duplex ", "the semi-automatic ", "the drone-mounted ", "the industry-leading ", "the world-class ") var/list/suffix = list(" of farming", " multiplex", " +[rand(1,15)]", " [consonant()][rand(1000, 9999)]", " hybrid", " maximus", " extreme") diff --git a/code/modules/stock_market/stockmarket.dm b/code/modules/stock_market/stockmarket.dm index 5ebcb90d5e4d..f9e6f5a40645 100644 --- a/code/modules/stock_market/stockmarket.dm +++ b/code/modules/stock_market/stockmarket.dm @@ -70,7 +70,7 @@ var/sname = "" switch (rand(1,6)) if(1) - while (sname == "" || sname == "FAG") // honestly it's a 0.6% chance per round this happens - or once in 166 rounds - so i'm accounting for it before someone yells at me + if(sname == "" || sname == "FAG") // honestly it's a 0.6% chance per round this happens - or once in 166 rounds - so i'm accounting for it before someone yells at me sname = "[consonant()][vowel()][consonant()]" if (2) sname = "[pick(tech_prefix)][pick(tech_short)][prob(20) ? " " + pick(company) : null]"