From 6b2b908b5b2e8f0767d1d8c035ec6b7a9b3d66a4 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 11 Sep 2021 13:16:07 +0200 Subject: [PATCH] [MIRROR] adds infinity to vv classes (#8110) * adds infinity to vv classes (#61302) adds infinity as a vv option * adds infinity to vv classes Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- code/__DEFINES/vv.dm | 1 + code/modules/admin/view_variables/get_variables.dm | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/code/__DEFINES/vv.dm b/code/__DEFINES/vv.dm index 91dfd3d5e70..137b2bc8bc2 100644 --- a/code/__DEFINES/vv.dm +++ b/code/__DEFINES/vv.dm @@ -17,6 +17,7 @@ #define VV_NEW_TYPE "New Custom Typepath" #define VV_NEW_LIST "New List" #define VV_NULL "NULL" +#define VV_INFINITY "Infinity" #define VV_RESTORE_DEFAULT "Restore to Default" #define VV_MARKED_DATUM "Marked Datum" #define VV_BITFIELD "Bitfield" diff --git a/code/modules/admin/view_variables/get_variables.dm b/code/modules/admin/view_variables/get_variables.dm index f624233fe06..57827f15230 100644 --- a/code/modules/admin/view_variables/get_variables.dm +++ b/code/modules/admin/view_variables/get_variables.dm @@ -70,6 +70,7 @@ VV_NEW_TYPE, VV_NEW_LIST, VV_NULL, + VV_INFINITY, VV_RESTORE_DEFAULT, VV_TEXT_LOCATE, VV_PROCCALL_RETVAL, @@ -278,3 +279,6 @@ if(.["value"] == null) .["class"] = null return + + if(VV_INFINITY) + .["value"] = INFINITY