From 5761a38000ca97e06c28aeb822b94c4ac7e4e1a1 Mon Sep 17 00:00:00 2001 From: wish Date: Sun, 12 Mar 2023 02:09:36 +1100 Subject: [PATCH] extra content --- common/mhfcourse/mhfcourse.go | 2 ++ patch-schema/rights-v4.sql | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 patch-schema/rights-v4.sql diff --git a/common/mhfcourse/mhfcourse.go b/common/mhfcourse/mhfcourse.go index a1c12f8b5..62b8d171f 100644 --- a/common/mhfcourse/mhfcourse.go +++ b/common/mhfcourse/mhfcourse.go @@ -24,6 +24,7 @@ var aliases = map[uint16][]string{ 10: {"Hiden", "Secret"}, 11: {"HunterSupport", "HunterAid", "Support", "Aid", "Royal"}, 12: {"NBoost", "NetCafeBoost", "Boost"}, + // 13-19 show up as (unknown) 20: {"DEBUG"}, 21: {"COG_LINK_EXPIRED"}, 22: {"360_GOLD"}, @@ -34,6 +35,7 @@ var aliases = map[uint16][]string{ 27: {"HLRenewing", "HLR", "HLRenewal", "HLRenew", "CardHL"}, 28: {"EXRenewing", "EXR", "EXRenewal", "EXRenew", "CardEX"}, 29: {"Free"}, + // 30 = Real NetCafe course } func (c Course) Aliases() []string { diff --git a/patch-schema/rights-v4.sql b/patch-schema/rights-v4.sql new file mode 100644 index 000000000..9732097ed --- /dev/null +++ b/patch-schema/rights-v4.sql @@ -0,0 +1,6 @@ +BEGIN; + +-- Remove Trial Course from all users +UPDATE users SET rights = rights-2; + +END; \ No newline at end of file