From 42c5c496dc12edd1235efddc621d0e887f970ea5 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 27 Jun 2023 00:25:03 -0700 Subject: [PATCH] fix tech level description bug --- src/ItemData.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ItemData.cc b/src/ItemData.cc index 6ba25957..9ea18fdb 100644 --- a/src/ItemData.cc +++ b/src/ItemData.cc @@ -1438,7 +1438,7 @@ ItemData::ItemData(const string& orig_description, bool skip_special) { throw runtime_error("invalid tech disk format"); } uint8_t tech = technique_for_name(tokens[0].substr(5)); - uint8_t level = stoul(tokens[1].substr(3), nullptr, 10); + uint8_t level = stoul(tokens[1].substr(3), nullptr, 10) - 1; this->data1[0] = 0x03; this->data1[1] = 0x02; this->data1[2] = level;