Merge remote-tracking branch 'upstream/master'

This commit is contained in:
BongaTheProto
2023-12-18 21:22:28 -05:00
9 changed files with 187 additions and 122 deletions
+10
View File
@@ -3,4 +3,14 @@
SSinteractions.prepare_interactions()
if(!SSinteractions.interactions || !length(SSinteractions.interactions))
Fail("make_interactions() was called but SSinteractions.interactions is empty.")
for(var/interaction_type in SSinteractions.interactions)
var/datum/interaction/interaction = SSinteractions.interactions[interaction_type]
if(!interaction.description)
Fail("Basetype [interaction.type] located within SSinteractions.interactions")
if(interaction.required_from_user_exposed && interaction.required_from_user_unexposed)
if(interaction.required_from_user_exposed != interaction.required_from_user_unexposed)
Fail("Interaction [interaction.description]([interaction.type]) has non-matching requirements for user exposed and unexposed, this is unsupported!")
if(interaction.required_from_target_exposed && interaction.required_from_target_unexposed)
if(interaction.required_from_target_exposed != interaction.required_from_target_unexposed)
Fail("Interaction [interaction.description]([interaction.type]) has non-matching requirements for target exposed and unexposed, this is unsupported!")
return