Merge remote-tracking branch 'upstream/master' into diagonal-movement

This commit is contained in:
Couls
2019-04-25 23:45:08 -04:00
222 changed files with 1040 additions and 866 deletions
+27
View File
@@ -621,6 +621,33 @@
src.give_spell(M)
href_list["datumrefresh"] = href_list["give_spell"]
else if(href_list["givemartialart"])
if(!check_rights(R_SERVER|R_EVENT)) return
var/mob/living/carbon/C = locateUID(href_list["givemartialart"])
if(!istype(C))
to_chat(usr, "This can only be done to instances of type /mob/living/carbon")
return
var/list/artpaths = subtypesof(/datum/martial_art)
var/list/artnames = list()
for(var/i in artpaths)
var/datum/martial_art/M = i
artnames[initial(M.name)] = M
var/result = input(usr, "Choose the martial art to teach", "JUDO CHOP") as null|anything in artnames
if(!usr)
return
if(QDELETED(C))
to_chat(usr, "Mob doesn't exist anymore")
return
if(result)
var/chosenart = artnames[result]
var/datum/martial_art/MA = new chosenart
MA.teach(C)
href_list["datumrefresh"] = href_list["givemartialart"]
else if(href_list["give_disease"])
if(!check_rights(R_SERVER|R_EVENT)) return
+1 -1
View File
@@ -109,7 +109,7 @@ Data storage vars:
CRASH("The global_iterator loop \ref[src] failed to terminate in designated timeframe. This may be caused by server lagging.")
return 1
/datum/global_iterator/proc/process()
/datum/global_iterator/process()
return
/datum/global_iterator/proc/active()
+3 -3
View File
@@ -32,11 +32,11 @@
var/obj/screen/alert/status_effect/A = owner.throw_alert(id, alert_type)
A.attached_effect = src //so the alert can reference us, if it needs to
linked_alert = A //so we can reference the alert, if we need to
GLOB.fast_processing.Add(src)
START_PROCESSING(SSfastprocess, src)
return TRUE
/datum/status_effect/Destroy()
GLOB.fast_processing.Remove(src)
STOP_PROCESSING(SSfastprocess, src)
if(owner)
owner.clear_alert(id)
LAZYREMOVE(owner.status_effects, src)
@@ -44,7 +44,7 @@
owner = null
return ..()
/datum/status_effect/proc/process()
/datum/status_effect/process()
if(!owner)
qdel(src)
return