-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix/tweak: blob mode&event rework bugfixes and qol tweaks (#5458)
* bugfix: fix blob mode rework bugs * bugfix/tweak: blob mode&event rework bugfixes and qol tweaks * borer inside blob_infected fix * fix * Text fix in code/modules/admin/verbs/one_click_antag.dm Co-authored-by: Vladisvell <[email protected]> * Text fix in code/datums/mind.dm Co-authored-by: Vladisvell <[email protected]> * Text fix in code/modules/admin/verbs/one_click_antag.dm Co-authored-by: Vladisvell <[email protected]> * blob talk folow+gt fix+some fixes * add to gamemode fix+actions update fix --------- Co-authored-by: Vladisvell <[email protected]>
- Loading branch information
1 parent
5aaabb3
commit 11ab4a8
Showing
18 changed files
with
195 additions
and
102 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
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
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,53 @@ | ||
/datum/action/innate/blob | ||
icon_icon = 'icons/mob/actions/actions.dmi' | ||
background_icon_state = "bg_default_on" | ||
|
||
/datum/action/innate/blob/comm | ||
name = "Blob Telepathy" | ||
desc = "Телепатически отправляет сообщение всем блобам, иблобернаутам и зараженным блобом" | ||
button_icon_state = "alien_whisper" | ||
check_flags = AB_CHECK_CONSCIOUS|AB_TRANSFER_MIND | ||
|
||
/datum/action/innate/blob/comm/Activate() | ||
var/input = stripped_input(usr, "Выберите сообщение для отправки другому блобу.", "Blob Telepathy", "") | ||
if(!input || !IsAvailable()) | ||
return | ||
blob_talk(usr, input) | ||
return | ||
|
||
/datum/action/innate/blob/self_burst | ||
icon_icon = 'icons/mob/blob.dmi' | ||
button_icon = 'icons/mob/blob.dmi' | ||
background_icon_state = "block" | ||
button_icon_state = "ui_tocore" | ||
name = "Self burst" | ||
desc = "Позволяет лопнуть носителя и превратиться в блоба досрочно." | ||
check_flags = AB_CHECK_CONSCIOUS|AB_TRANSFER_MIND | ||
|
||
/datum/action/innate/blob/self_burst/Activate() | ||
var/input = alert(usr,"Вы действительно хотите лопнуть себя и превратиться в блоба досрочно? Это действие необратимо.", "", "Да", "Нет") == "Да" | ||
if(!input || !IsAvailable()) | ||
return | ||
var/datum/antagonist/blob_infected/blob = usr?.mind?.has_antag_datum(/datum/antagonist/blob_infected) | ||
if(!blob) | ||
return | ||
blob.burst_blob() | ||
return | ||
|
||
/proc/blob_talk(mob/living/user, message) | ||
add_say_logs(user, message, language = "BLOB") | ||
|
||
message = trim(copytext(sanitize(message), 1, MAX_MESSAGE_LEN)) | ||
|
||
if(!message) | ||
return | ||
|
||
var/rendered = "<i><span class='blob'>Blob Telepathy,</span> <span class='name'>[user.name]</span> states, <span class='blob'>\"[message]\"</span></i>" | ||
for(var/mob/M in GLOB.mob_list) | ||
if(isovermind(M) || isblobbernaut(M) || isblobinfected(M.mind)) | ||
M.show_message(rendered, 2) | ||
else if(isobserver(M) && !isnewplayer(M)) | ||
var/rendered_ghost = "<i><span class='blob'>Blob Telepathy,</span> <span class='name'>[user.name]</span> \ | ||
<a href='?src=[M.UID()];follow=[user.UID()]'>(F)</a> states, <span class='blob'>\"[message]\"</span></i>" | ||
M.show_message(rendered_ghost, 2) | ||
|
Oops, something went wrong.