Currently, I have to do stuff like this to get the langserver to not complain, even tho the DM compiler is just fine with this:
/**
* Proc that will return the team this antagonist belongs to, when called. Helpful with antagonists that may belong to multiple potential teams in a single round.
*/
/datum/antagonist/proc/get_team() as /datum/team
RETURN_TYPE(/datum/team) // it's right there, dreamchecker, come on
return
Without the return type, things like get_team()?.remove_member(owner) will result in proc call requires static type: "remove_member", even tho the return type is specified by the DM syntax, and compiles+runs just fine with the actual compiler.
Currently, I have to do stuff like this to get the langserver to not complain, even tho the DM compiler is just fine with this:
Without the return type, things like
get_team()?.remove_member(owner)
will result inproc call requires static type: "remove_member"
, even tho the return type is specified by the DM syntax, and compiles+runs just fine with the actual compiler.