forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Пишите **НИЖЕ** заголовков и **ВЫШЕ** комментариев, иначе что то может пойти не так. --> <!-- Вы можете прочитать Contributing.MD, если хотите узнать больше. --> ## Что этот PR делает Closes #300 - Добавляет гост оффер в контекстное меню для администраторов ## Почему это хорошо для игры Удобство админам ## Изображения изменений ![image](https://github.com/ss220club/Paradise-SS220/assets/20109643/51c59b8d-1b21-4b65-81f7-3603cb2b02be) ## Тестирование Проверял в игре ## Changelog :cl: add: Ghost Offer для администрации в контекстное меню /:cl: <!-- Оба :cl:'а должны быть на месте, что-бы чейнджлог работал! Вы можете написать свой ник справа от первого :cl:, если хотите. Иначе будет использован ваш ник на ГитХабе. --> <!-- Вы можете использовать несколько записей с одинаковым префиксом (Они используются только для иконки в игре) и удалить ненужные. Помните, что чейнджлог должен быть понятен обычным игроком. --> <!-- Если чейнджлог не влияет на игроков(например, это рефактор), вы можете исключить всю секцию. -->
- Loading branch information
Showing
5 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/datum/modpack/administration | ||
name = "Улучшение администрирования" | ||
desc = "Разные админские улучшения." | ||
author = "dj-34" | ||
|
||
/datum/modpack/administration/initialize() | ||
GLOB.admin_verbs_admin += list( | ||
/client/proc/cmd_admin_offer_control, | ||
) |
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,3 @@ | ||
#include "_administration.dm" | ||
|
||
#include "code/randomverbs.dm" |
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,13 @@ | ||
/client/proc/cmd_admin_offer_control(mob/M as mob in GLOB.mob_list) | ||
set name = "\[Admin\] Offer Control To Ghosts" | ||
set category = null | ||
|
||
if(!check_rights(R_ADMIN)) | ||
return | ||
|
||
if(!mob) | ||
return | ||
if(!istype(M)) | ||
alert("This can only be used on instances of type /mob") | ||
return | ||
offer_control(M) |
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