Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
Anorak2024 committed Oct 28, 2024
1 parent 0d15c20 commit 180ffff
Showing 1 changed file with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,20 @@
/obj/effect/proc_holder/spell/msg_for_borers/create_new_targeting()
return new /datum/spell_targeting/self

/obj/effect/proc_holder/spell/msg_for_borers/cast(list/targets, mob/user = usr)
/obj/effect/proc_holder/spell/msg_for_borers/can_cast(mob/user = usr, charge_check = TRUE, show_message = FALSE)
if(!..())
return FALSE

if(!ishuman(user))
return
return FALSE

if(user.mind?.miming)
to_chat(user, span_warning("Вы не можете общаться, пока не нарушите обет молчания."))
return
return FALSE

return TRUE

/obj/effect/proc_holder/spell/msg_for_borers/cast(list/targets, mob/user = usr)
var/say = tgui_input_text(user, "Что вы хотите сообщить?", "Сообшение борерам")
if(!say)
return
Expand Down Expand Up @@ -340,14 +346,21 @@
/obj/effect/proc_holder/spell/pm_for_borer/create_new_targeting()
return new /datum/spell_targeting/borer

/obj/effect/proc_holder/spell/pm_for_borer/cast(list/targets, mob/user = usr)
/obj/effect/proc_holder/spell/pm_for_borer/can_cast(mob/user = usr, charge_check = TRUE, show_message = FALSE)
if(!..())
return FALSE

if(!ishuman(user))
return
return FALSE

if(user.mind?.miming)
to_chat(user, span_warning("Вы не можете общаться, пока не нарушите обет молчания."))
return
return FALSE

return TRUE


/obj/effect/proc_holder/spell/pm_for_borer/cast(list/targets, mob/user = usr)
var/say = tgui_input_text(user, "Что вы хотите сообщить?", "[targets[1]]")

if(!say)
Expand Down

0 comments on commit 180ffff

Please sign in to comment.