HomeWildfire Games

[AI] Simplify getMetadata in sharedscript

Description

[AI] Simplify getMetadata in sharedscript

Metadata are stored in an object {} making check for key in the object irrelevant, since not existing key will result in returning undefined value.
On top of that, merging metadata existance if condition into returning statement.

Differential revision: D4195
Reviewed by: @Freagarach