Skip to content

Commit

Permalink
Merge pull request #874 from RalseiDreemuurr/sprites
Browse files Browse the repository at this point in the history
Исправления ошибок спрайтов, книг и кривого кода
  • Loading branch information
MysticalFaceLesS authored Aug 1, 2024
2 parents c215190 + 92879b8 commit 4c3c743
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
6 changes: 4 additions & 2 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ There are several things that need to be remembered:
// var/obj/item/bodypart/head_bodypart = src.get_bodypart(BODY_ZONE_HEAD) // CELADON-EDIT - ORIGINAL
// if((head_bodypart.bodytype & BODYTYPE_SNOUT) && (I.supports_variations & SNOUTED_VARIATION)) // CELADON-EDIT - ORIGINAL
// target_overlay = "[target_overlay]_snouted" // CELADON-EDIT - ORIGINAL
if(dna.species.bodytype & BODYTYPE_SNOUT)
var/obj/item/bodypart/head_bodypart = src.get_bodypart(BODY_ZONE_HEAD)
if(head_bodypart.bodytype & BODYTYPE_SNOUT)
icon_file = SARATHI_SNOUTED_HELM_PATH
if(I.snout_override_icon)
icon_file = I.snout_override_icon
Expand Down Expand Up @@ -706,7 +707,8 @@ There are several things that need to be remembered:
// var/obj/item/bodypart/head_bodypart = src.get_bodypart(BODY_ZONE_HEAD) // CELADON-EDIT - ORIGINAL
// if((head_bodypart.bodytype & BODYTYPE_SNOUT) && (I.supports_variations & SNOUTED_VARIATION)) // CELADON-EDIT - ORIGINAL
// target_overlay = "[target_overlay]_snouted" // CELADON-EDIT - ORIGINAL
if(dna.species.bodytype & BODYTYPE_SNOUT)
var/obj/item/bodypart/head_bodypart = src.get_bodypart(BODY_ZONE_HEAD)
if(head_bodypart.bodytype & BODYTYPE_SNOUT)
icon_file = SARATHI_SNOUTED_MASK_PATH
if(I.snout_override_icon)
icon_file = I.snout_override_icon
Expand Down
Binary file modified mod_celadon/_storge_icons/icons/helms_snouted.dmi
Binary file not shown.
14 changes: 7 additions & 7 deletions mod_celadon/items/code/books.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/obj/item/elysm_manual
//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/_storge_icons/icons/items/obj/book.dmi'
Expand Down Expand Up @@ -43,7 +43,7 @@
righthand_file = 'mod_celadon/_storge_icons/icons/items/mob/inhands/books_righthand.dmi'
icon_state = "alquadim_elysm"

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

Expand All @@ -55,7 +55,7 @@
user.grant_language(/datum/language/alquadim, TRUE, TRUE, LANGUAGE_MIND)


/obj/item/codespeak_manual/attack(mob/living/M, mob/living/user)
/obj/item/alquadim_manual/attack(mob/living/M, mob/living/user)
if(!istype(M) || !istype(user))
return
if(M == user)
Expand All @@ -80,7 +80,7 @@
righthand_file = 'mod_celadon/_storge_icons/icons/items/mob/inhands/books_righthand.dmi'
icon_state = "thayos_book"

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

Expand All @@ -92,7 +92,7 @@
user.grant_language(/datum/language/thayoss, TRUE, TRUE, LANGUAGE_MIND)


/obj/item/codespeak_manual/attack(mob/living/M, mob/living/user)
/obj/item/thayos_manual/attack(mob/living/M, mob/living/user)
if(!istype(M) || !istype(user))
return
if(M == user)
Expand All @@ -117,7 +117,7 @@
righthand_file = 'mod_celadon/_storge_icons/icons/items/mob/inhands/books_righthand.dmi'
icon_state = "fuyo_book"

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

Expand All @@ -129,7 +129,7 @@
user.grant_language(/datum/language/fuyo, TRUE, TRUE, LANGUAGE_MIND)


/obj/item/codespeak_manual/attack(mob/living/M, mob/living/user)
/obj/item/fuyo_manual/attack(mob/living/M, mob/living/user)
if(!istype(M) || !istype(user))
return
if(M == user)
Expand Down
2 changes: 1 addition & 1 deletion mod_celadon/resprite/_resprite.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/datum/modpack/resprite
name = "Resprite textures"
desc = "Включает различные респрайты объектов. Заменяет текстуры на наши."
author = "MrCat15352, Yata9arsu"
author = "MrCat15352, Yata9arsu, RalseiDreemuurr"
1 change: 1 addition & 0 deletions mod_celadon/resprite/_resprite.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
#include "code/camera.dm"
#include "code/cowboy_boots.dm"
#include "code/disposal.dm"
#include "code/sarathi.dm"

#endif
2 changes: 2 additions & 0 deletions mod_celadon/resprite/code/sarathi.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/obj/item/bodypart/head/robot/lizard
bodytype = BODYTYPE_HUMANOID | BODYTYPE_ROBOTIC | BODYTYPE_SNOUT

0 comments on commit 4c3c743

Please sign in to comment.