mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
37 lines
937 B
Plaintext
37 lines
937 B
Plaintext
/*
|
|
Creature-level abilities.
|
|
*/
|
|
|
|
/var/global/list/ability_verbs = list( )
|
|
|
|
/*
|
|
|
|
Example ability:
|
|
|
|
/client/proc/test_ability()
|
|
|
|
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/test_ability() called tick#: [world.time]")
|
|
|
|
set category = "Ability"
|
|
set name = "Test ability"
|
|
set desc = "An ability for testing."
|
|
|
|
// Check if the client has a mob and if the mob is valid and alive.
|
|
if(!mob || !istype(mob,/mob/living) || mob.stat)
|
|
src << "<span class='warning'>You must be corporeal and alive to do that.</span>"
|
|
return 0
|
|
|
|
//Handcuff check.
|
|
if(mob.restrained())
|
|
src << "<span class='warning'>You cannot do this while restrained.</span>"
|
|
return 0
|
|
|
|
if(istype(mob,/mob/living/carbon))
|
|
var/mob/living/carbon/M = mob
|
|
if(M.handcuffed)
|
|
src << "<span class='warning'>You cannot do this while cuffed.</span>"
|
|
return 0
|
|
|
|
src << "<span class='notice'>You perform an ability.</span>"
|
|
|
|
*/ |