forked from shiptest-ss13/Shiptest
-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #759 from RalseiDreemuurr/codding
Добавление новых языков и книг для них
- Loading branch information
Showing
10 changed files
with
237 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
/obj/item/elysm_manual | ||
name = "Book of Elysm" | ||
desc = "The book's cover reads: \"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\"" | ||
icon = 'mod_celadon/items/icons/obj/book.dmi' | ||
lefthand_file = 'mod_celadon/items/icons/mob/inhands/books_lefthand.dmi' | ||
righthand_file = 'mod_celadon/items/icons/mob/inhands/books_righthand.dmi' | ||
icon_state = "elysm_book" | ||
|
||
/obj/item/elysm_manual/attack_self(mob/living/user) | ||
if(!isliving(user)) | ||
return | ||
|
||
if(user.has_language(/datum/language/elysm)) | ||
to_chat(user, "<span class='boldwarning'>You start skimming through [src], but you already know Elysm.</span>") | ||
return | ||
|
||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly your mind is filled with arabic symbols.</span>") | ||
user.grant_language(/datum/language/elysm, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
|
||
/obj/item/elysm_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/elysm)) | ||
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], arabic symbols flow through your mind.</span>", "<span class='hear'>You hear smacking.</span>") | ||
M.grant_language(/datum/language/elysm, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
/obj/item/alquadim_manual | ||
name = "Book of Alquadim-Elysm" | ||
desc = "The book's cover reads: \"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\"" | ||
icon = 'mod_celadon/items/icons/obj/book.dmi' | ||
lefthand_file = 'mod_celadon/items/icons/mob/inhands/books_lefthand.dmi' | ||
righthand_file = 'mod_celadon/items/icons/mob/inhands/books_righthand.dmi' | ||
icon_state = "alquadim_elysm" | ||
|
||
/obj/item/codespeak_manual/attack_self(mob/living/user) | ||
if(!isliving(user)) | ||
return | ||
|
||
if(user.has_language(/datum/language/alquadim)) | ||
to_chat(user, "<span class='boldwarning'>You start skimming through [src], but you already know Alquadim-Elysm.</span>") | ||
return | ||
|
||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly your mind is filled with arabic symbols.</span>") | ||
user.grant_language(/datum/language/alquadim, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
|
||
/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/alquadim)) | ||
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], arabic symbols flow through your mind.</span>", "<span class='hear'>You hear smacking.</span>") | ||
M.grant_language(/datum/language/alquadim, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
/obj/item/thayos_manual | ||
name = "Book of Thayoss" | ||
desc = "The book's cover reads: \"The national language of the Thayos Interstellar Empire, which is a modification of Japanese 2475\"" | ||
icon = 'mod_celadon/items/icons/obj/book.dmi' | ||
lefthand_file = 'mod_celadon/items/icons/mob/inhands/books_lefthand.dmi' | ||
righthand_file = 'mod_celadon/items/icons/mob/inhands/books_righthand.dmi' | ||
icon_state = "thayos_book" | ||
|
||
/obj/item/codespeak_manual/attack_self(mob/living/user) | ||
if(!isliving(user)) | ||
return | ||
|
||
if(user.has_language(/datum/language/thayoss)) | ||
to_chat(user, "<span class='boldwarning'>You start skimming through [src], but you already know Thayoss.</span>") | ||
return | ||
|
||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly your mind is filled with japanese symbols.</span>") | ||
user.grant_language(/datum/language/thayoss, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
|
||
/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/thayoss)) | ||
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], japanese symbols flow through your mind.</span>", "<span class='hear'>You hear smacking.</span>") | ||
M.grant_language(/datum/language/thayoss, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
/obj/item/fuyo_manual | ||
name = "Book of Fuyo" | ||
desc = "The book's cover reads: \"The second language of the Taios Interstellar Empire, which is a modification of Chinese 2475\"" | ||
icon = 'mod_celadon/items/icons/obj/book.dmi' | ||
lefthand_file = 'mod_celadon/items/icons/mob/inhands/books_lefthand.dmi' | ||
righthand_file = 'mod_celadon/items/icons/mob/inhands/books_righthand.dmi' | ||
icon_state = "fuyo_book" | ||
|
||
/obj/item/codespeak_manual/attack_self(mob/living/user) | ||
if(!isliving(user)) | ||
return | ||
|
||
if(user.has_language(/datum/language/fuyo)) | ||
to_chat(user, "<span class='boldwarning'>You start skimming through [src], but you already know Fuyo.</span>") | ||
return | ||
|
||
to_chat(user, "<span class='boldannounce'>You start skimming through [src], and suddenly your mind is filled with chinese symbols.</span>") | ||
user.grant_language(/datum/language/fuyo, TRUE, TRUE, LANGUAGE_MIND) | ||
|
||
|
||
/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/fuyo)) | ||
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], chinese symbols flow through your mind.</span>", "<span class='hear'>You hear smacking.</span>") | ||
M.grant_language(/datum/language/fuyo, TRUE, TRUE, LANGUAGE_MIND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/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( | ||
"ぁ", "ほ", "ま", "ゑ", | ||
"ざ", "ぷ", "ぽ", "ぼ", | ||
"ね", "ひ", "ち", "ゐ", | ||
"か", "ガ", "げ", "ご", | ||
"ヸ", "キ", "で", "ぅ", | ||
"ヷ", "ヂ", "エ", "ぐ", | ||
"セ", "ゾ", "じ", "べ" | ||
) | ||
icon = "mod_celadon/items/icons/obj/language.dmi" | ||
icon_state = "thayos" | ||
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( | ||
"阿", "热", "哦", | ||
"贝", "赛", "佩", | ||
"非", "伊", "艾和", | ||
"给", "伊可罗肯", "艾斯", | ||
"得", "卡", "泰", | ||
"也", "艾了", "吴", | ||
"用", "艾姆", "艾弗" | ||
) | ||
icon = "mod_celadon/items/icons/obj/language.dmi" | ||
icon_state = "fuyo" | ||
default_priority = 90 | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.