Skip to content

Commit

Permalink
Добавление новых языков и книг для них
Browse files Browse the repository at this point in the history
  • Loading branch information
RalseiDreemuurr committed Jun 19, 2024
1 parent 0757929 commit 32c9372
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod_celadon/items/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ID мода: CELADON_ITEMS

### Авторы:

MrCat15352, MysticalFaceLesS
MrCat15352, MysticalFaceLesS, RalseiDreemuurr
<!--
Здесь находится твой никнейм
Если работал совместно - никнеймы тех, кто помогал.
Expand Down
2 changes: 1 addition & 1 deletion mod_celadon/items/_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
/// Строковое описание для модпака. Может использоваться для списка глаголов модпака в качестве описания.
desc = "Модпак добавляет новую одежду и оружие."
/// Строка с авторами этого модпака.
author = "MrCat15352, MysticalFaceLesS"
author = "MrCat15352, MysticalFaceLesS, RalseiDreemuurr"

///**********************************************************************///
38 changes: 38 additions & 0 deletions mod_celadon/items/code/books.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/obj/item/elysm_manual
name = "Empty book"
desc = "If you see this book, report to coders"
icon = 'icons/obj/library.dmi'
icon_state = "book2"

/obj/item/codespeak_manual/attack_self(mob/living/user)
if(!isliving(user))
return

if(user.has_language(/datum/language/codespeak))
to_chat(user, "<span class='boldwarning'>You start skimming through [src], but you already know Codespeak.</span>")
return

to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly your mind is filled with codewords and responses.</span>")
user.grant_language(/datum/language/codespeak, TRUE, TRUE, LANGUAGE_MIND)

use_charge(user)

/obj/item/codespeak_manual/attack(mob/living/M, mob/living/user)
if(!istype(M) || !istype(user))
return
if(M == user)
attack_self(user)
return

playsound(loc, "punch", 25, TRUE, -1)

if(M.stat == DEAD)
M.visible_message("<span class='danger'>[user] smacks [M]'s lifeless corpse with [src].</span>", "<span class='userdanger'>[user] smacks your lifeless corpse with [src].</span>", "<span class='hear'>You hear smacking.</span>")
else if(M.has_language(/datum/language/codespeak))
M.visible_message("<span class='danger'>[user] beats [M] over the head with [src]!</span>", "<span class='userdanger'>[user] beats you over the head with [src]!</span>", "<span class='hear'>You hear smacking.</span>")
else
M.visible_message("<span class='notice'>[user] teaches [M] by beating [M.p_them()] over the head with [src]!</span>", "<span class='boldnotice'>As [user] hits you with [src], codewords and responses flow through your mind.</span>", "<span class='hear'>You hear smacking.</span>")
M.grant_language(/datum/language/codespeak, TRUE, TRUE, LANGUAGE_MIND)
use_charge(user)

The book's cover reads: \"Codespeak(tm) - Secure your communication with metaphors so elaborate, they seem randomly generated!\
75 changes: 75 additions & 0 deletions mod_celadon/items/code/languages.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/datum/language/elysm
name = "Elysm"
desc = "The national language of the Republic of Elysium, which is a mixture of Ard al-Elysm Almaveud and newly arrived settlers speaking a variation of Arabic 2378 Sol."
key = "e"
flags = LANGUAGE_HIDE_ICON_IF_NOT_UNDERSTOOD
space_chance = 40
syllables = list(
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", ""
)
icon = "mod_celadon/items/icons/obj/language.dmi"
icon_state = "elysm"
default_priority = 90

/datum/language/alquadim
name = "Alquadim-Elysm"
desc = "The traditional ancient language of the Elysium Republic, originated in Ard al-Elysm Almaveuda, which are representatives of the Arabic language of 2147, isolated for almost 2 centuries."
key = "ae"
flags = LANGUAGE_HIDE_ICON_IF_NOT_UNDERSTOOD
space_chance = 40
syllables = list(
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", ""
)
icon = "mod_celadon/items/icons/obj/language.dmi"
icon_state = "alquadim_elysm"
default_priority = 90

/datum/language/thayoss
name = "Thayoss"
desc = "The national language of the Taios Interstellar Empire, which is a modification of Japanese 2475."
key = "t"
flags = LANGUAGE_HIDE_ICON_IF_NOT_UNDERSTOOD
space_chance = 40
syllables = list(
"za", "az", "ze", "ez", "zi", "iz", "zo", "oz", "zu", "uz", "zs", "sz",
"ha", "ah", "he", "eh", "hi", "ih", "ho", "oh", "hu", "uh", "hs", "sh",
"la", "al", "le", "el", "li", "il", "lo", "ol", "lu", "ul", "ls", "sl",
"ka", "ak", "ke", "ek", "ki", "ik", "ko", "ok", "ku", "uk", "ks", "sk",
"sa", "as", "se", "es", "si", "is", "so", "os", "su", "us", "ss", "ss",
"ra", "ar", "re", "er", "ri", "ir", "ro", "or", "ru", "ur", "rs", "sr",
"a", "a", "e", "e", "i", "i", "o", "o", "u", "u", "s", "s"
)
icon = "mod_celadon/items/icons/obj/language.dmi"
icon_state = "lizard"
default_priority = 90

/datum/language/fuyo
name = "Fuyo"
desc = "The second language of the Taios Interstellar Empire, which is a modification of Chinese 2475."
key = "f"
flags = LANGUAGE_HIDE_ICON_IF_NOT_UNDERSTOOD
space_chance = 40
syllables = list(
"za", "az", "ze", "ez", "zi", "iz", "zo", "oz", "zu", "uz", "zs", "sz",
"ha", "ah", "he", "eh", "hi", "ih", "ho", "oh", "hu", "uh", "hs", "sh",
"la", "al", "le", "el", "li", "il", "lo", "ol", "lu", "ul", "ls", "sl",
"ka", "ak", "ke", "ek", "ki", "ik", "ko", "ok", "ku", "uk", "ks", "sk",
"sa", "as", "se", "es", "si", "is", "so", "os", "su", "us", "ss", "ss",
"ra", "ar", "re", "er", "ri", "ir", "ro", "or", "ru", "ur", "rs", "sr",
"a", "a", "e", "e", "i", "i", "o", "o", "u", "u", "s", "s"
)
icon = "mod_celadon/items/icons/obj/language.dmi"
icon_state = "lizard"
default_priority = 90
Binary file not shown.
Binary file not shown.
Binary file added mod_celadon/items/icons/obj/book.dmi
Binary file not shown.
Binary file added mod_celadon/items/icons/obj/language.dmi
Binary file not shown.

0 comments on commit 32c9372

Please sign in to comment.