Skip to content

Commit

Permalink
Новые перила, файнали (#949)
Browse files Browse the repository at this point in the history
* Новые перила

Новый спрайт перил, а также теперь через них можно перелезать в две стороны.

* Update structures.dm

Внесена модульность 

Signed-off-by: MrCat15352 <[email protected]>

* попытка решить конфликт

* Автор и описание фикса

Заливается отдельно из-за конфликтов версий документа.

* Fix

* Изменения

Теперь всё точно так как и должно быть

* Пропал "/"

---------

Signed-off-by: MrCat15352 <[email protected]>
Co-authored-by: MrCat15352 <[email protected]>
  • Loading branch information
Burbonchik and MrCat15352 committed Sep 16, 2024
1 parent 025b8c7 commit 3e35511
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/structures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@
. = ..()
if(!climbable)
return
if(get_turf(src) == O.loc) //makes so you can't drag yourself into the same structure to climb again, making you move off it.
return
// [CELADON-REMOVE] - CELADON_FIXES - Удалено по причине что можно было перелезть только с одной стороны
// if(get_turf(src) == O.loc) //makes so you can't drag yourself into the same structure to climb again, making you move off it. I commented this out because he made the railings one-sided.
// return
// [/CELADON-REMOVE]
if(user == O && isliving(O))
var/mob/living/L = O
if(isanimal(L))
Expand Down
Binary file added mod_celadon/_storge_icons/icons/obj/railing.dmi
Binary file not shown.
5 changes: 4 additions & 1 deletion mod_celadon/fixes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ ID мода: CELADON_FIXES

- ADD: `code\__HELPERS\text.dm` - Добавляем возможность создания имён персонажей на кирилице.
- EDIT: `code\modules\admin\player_panel.dm` - Фикс <meta>, исправлено отображение кирилицы на F6.

- EDIT: `code\game\objects\structures.dm` - Исправляет односторониие перила путям отключения одной строчки кода.

<!--
Если вы редактировали какие-либо процедуры или переменные в кор коде,
они должны быть указаны здесь.
Expand Down Expand Up @@ -105,7 +108,7 @@ ID мода: CELADON_FIXES
### Авторы:


RalseiDreemuurr, Mirag1993 , Корольный крыс, MrCat15352, MysticalFaceLesS
RalseiDreemuurr, Mirag1993 , Корольный крыс, MrCat15352, MysticalFaceLesS, Burbonchik

<!--
Здесь находится твой никнейм
Expand Down
1 change: 1 addition & 0 deletions mod_celadon/fixes/_fixes.dme
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
#include "code/vending.dm"
#include "code/robot_suit.dm"
#include "code/shutters.dm"
#include "code/railings.dm"

#endif
10 changes: 10 additions & 0 deletions mod_celadon/fixes/code/railings.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/obj/structure/railing
icon = 'mod_celadon/_storge_icons/icons/obj/railing.dmi'
obj_flags = CAN_BE_HIT
plane = ABOVE_GAME_PLANE

/obj/structure/railing/corner/end //end of a segment of railing without making a loop
icon_state = "railing_end"

/obj/structure/railing/corner/end/flip //same as above but flipped around
icon_state = "railing_end_flip"

0 comments on commit 3e35511

Please sign in to comment.