Add /datum/tgs_version equality support

This commit is contained in:
Jordan Brown
2020-04-27 23:30:27 -04:00
parent c3291e5b71
commit 410c646a92
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -127,6 +127,10 @@
/datum/tgs_version/proc/Wildcard()
return
//if the tgs_version equals some other_version
/datum/tgs_version/proc/Equals(datum/tgs_version/other_version)
return
//represents a merge of a GitHub pull request
/datum/tgs_revision_information/test_merge
var/number //pull request number
+6
View File
@@ -20,3 +20,9 @@
/datum/tgs_version/Wildcard()
return minor == null || patch == null
/datum/tgs_version/Equals(datum/tgs_version/other_version)
if(!istype(other_version))
return FALSE
return major == other_version.major && minor == other_version.minor && patch == other_version.patch && deprecated_patch != other_version.deprecated_patch