Skip to content

Commit

Permalink
Adds a French beret! HONH HONH HONH! (#37457)
Browse files Browse the repository at this point in the history
This is very similar to the Italian Moustache, but it's a beret. This will be part of a series of language items. Happy to entertain suggestions as to whether it should be a roundstart item or randomly scattered about maint/cargo crate restricted. In the spirit of atomizing PRs, this one will just be for the French Beret.

Ready for merge.
  • Loading branch information
Ordonis authored and letterjay committed May 9, 2018
1 parent 3d0ae02 commit ab81220
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 6 deletions.
25 changes: 24 additions & 1 deletion code/modules/clothing/head/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,27 @@
name = "headress of Nemes"
desc = "Lavish space tomb not included."
icon_state = "nemes_headdress"
icon_state = "nemes_headdress"
icon_state = "nemes_headdress"

/obj/item/clothing/head/frenchberet
name = "french beret"
desc = "A quality beret, infused with the aroma of chain-smoking, wine-swilling Parisians. You feel less inclined to engage military conflict, for some reason."
icon_state = "beretblack"

/obj/item/clothing/head/frenchberet/speechModification(M)
if(copytext(M, 1, 2) != "*")
M = " [M]"
var/list/french_words = strings("french_replacement.json", "french")

for(var/key in french_words)
var/value = french_words[key]
if(islist(value))
value = pick(value)

M = replacetextEx(M, " [uppertext(key)]", " [uppertext(value)]")
M = replacetextEx(M, " [capitalize(key)]", " [capitalize(value)]")
M = replacetextEx(M, " [key]", " [value]")

if(prob(3))
M += pick(" Honh honh honh!"," Honh!"," Zut Alors!")
return trim(M)
2 changes: 1 addition & 1 deletion code/modules/clothing/masks/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/obj/item/clothing/mask/fakemoustache/italian/speechModification(M)
if(copytext(M, 1, 2) != "*")
M = " [M]"
var/list/italian_words = strings("word_replacement.json", "italian")
var/list/italian_words = strings("italian_replacement.json", "italian")

for(var/key in italian_words)
var/value = italian_words[key]
Expand Down
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/civilian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Mime
uniform = /obj/item/clothing/under/rank/mime
mask = /obj/item/clothing/mask/gas/mime
gloves = /obj/item/clothing/gloves/color/white
head = /obj/item/clothing/head/beret
head = /obj/item/clothing/head/frenchberet
suit = /obj/item/clothing/suit/suspenders
backpack_contents = list(/obj/item/reagent_containers/food/drinks/bottle/bottleofnothing=1)

Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
message = T.TongueSpeech(message)
if(wear_mask)
message = wear_mask.speechModification(message)

if(head)
message = head.speechModification(message)
return message

/mob/living/carbon/can_speak_vocal(message)
Expand Down
91 changes: 91 additions & 0 deletions strings/french_replacement.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{

"french": {
"yes": "oui",
"no": "non",
"I'm": "j'",
"am": "suis",
"a": "un",
"and": "et",
"the": "l'",
"I": "j'",
"for": "pour",
"with": "avec",
"of": "de",


"assistant": "ravageur",
"assistants": "ravageurs",
"baby": [
"enfant",
"petit baguette"
],
"bad": "mal",
"bye": [
"bon voyage",
"adieu",
"au revoir"
],
"cake": "gateau",
"captain": "capitaine",
"changeling": "changeur",
"cheese": [
"brie",
"roquefort",
"camembert"
],
"cigarette": "clope",
"cook": "cuisinier",
"dad": "papa",
"enemy": "silly english dog",
"friend": "ami",
"good": "bon",
"greytide": "les gitans",
"greytider": "les gitans",
"greytiders": "les gitans",
"hardsuit": "burkini",
"hello": [
"'allo",
"bonjour",
"salut"
],
"maint": "les banlieues",
"meat": [
"coq au vin",
"boeuf"
],
"mom": "maman",
"my": "mon",
"nuke": [
"grand bombe",
"la baguette ultime"
],
"op": "boche",
"operative": "boche",
"operatives": "boches",
"ops": "boches",
"urity": "urite",
"security": "securite",
"shit": "merde",
"shitcurity": [
"gendarmerie",
"les keufs"
],
"shitsec": [
"gendarmerie",
"les keufs"
],
"spaghetti": "macaroni",
"spicy": "epice",
"thanks": "merci",
"tomato": "tomate",
"traitor": "collaborateur",
"want": "envie",
"what's": "quel est",
"who's": "qui est",
"why": "porquois",
"wine": "vin",
"wizard": "sorcier"
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{

"italian": {
"I'm": "I'm-a",
"am": "am-a",
Expand Down Expand Up @@ -62,5 +63,7 @@
"whose": "whose-a",
"why": "for-a what reason",
"wine": "vino"
}
}
}


}

0 comments on commit ab81220

Please sign in to comment.