Merge pull request #10032 from Ghommie/Ghommie-cit418

Porting some return type annotations and bad keyword fixes.
This commit is contained in:
kevinz000
2019-12-05 21:33:12 -07:00
committed by GitHub
14 changed files with 28 additions and 22 deletions
+1
View File
@@ -184,6 +184,7 @@
// The type arg is casted so initial works, you shouldn't be passing a real instance into this
/datum/proc/GetComponent(datum/component/c_type)
RETURN_TYPE(c_type)
if(initial(c_type.dupe_mode) == COMPONENT_DUPE_ALLOWED)
stack_trace("GetComponent was called to get a component of which multiple copies could be on an object. This can easily break and should be changed. Type: \[[c_type]\]")
var/list/dc = datum_components