Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Smite Verb to View Variables #808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/modules/admin/view_variables/helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
return ..() + {"
<option value='?_src_=vars;[HrefToken()];mob_player_panel=\ref[src]'>Show player panel</option>
<option>---</option>
<option value='?_src_=vars;[HrefToken()];give_smite=\ref[src]'>Give Smite</option>

<option value='?_src_=vars;[HrefToken()];give_modifier=\ref[src]'>Give Modifier</option>
<option value='?_src_=vars;[HrefToken()];give_wound_internal=\ref[src]'>Give Internal Bleeding</option>
<option value='?_src_=vars;[HrefToken()];give_spell=\ref[src]'>Give Spell</option>
Expand Down
10 changes: 9 additions & 1 deletion code/modules/admin/view_variables/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,15 @@
return
else
H.verbs -= verb

//RS Edit || Add smite to verb panel
else if(href_list["give_smite"])
if(!check_rights(R_DEBUG|R_ADMIN|R_EVENT))
return
var/mob/living/carbon/human/H = locate(href_list["give_smite"])
if(!ishuman(H)) //check if it is a human mob
return //If not, return
src.smite(H)
//RS Edit end
else if(href_list["addorgan"])
if(!check_rights(R_SPAWN)) return

Expand Down
Loading