diff options
author | Gene Carlson <kvngncrlsn@gmail.com> | 2025-03-21 00:37:31 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-03-21 21:47:30 +0700 |
commit | 1e68234c8a30f91ea99e58bbed946f402fe521f0 (patch) | |
tree | c3bff5cfa2b3f0b77fdcbca9e584ca6257c9eeba /games | |
parent | 6a03b23a8932a06ef98c209ac4360fda02b2327d (diff) |
games/pioneer: Applied upstream commits.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/pioneer/equipment-efb0077.diff | 84 | ||||
-rw-r--r-- | games/pioneer/equipment.diff | 15 | ||||
-rw-r--r-- | games/pioneer/hyperdrive-db5330e.diff (renamed from games/pioneer/hyperdrive.diff) | 0 | ||||
-rw-r--r-- | games/pioneer/lighting-33158a5.diff | 13 | ||||
-rw-r--r-- | games/pioneer/pioneer.SlackBuild | 9 |
5 files changed, 102 insertions, 19 deletions
diff --git a/games/pioneer/equipment-efb0077.diff b/games/pioneer/equipment-efb0077.diff new file mode 100644 index 0000000000..2bf931ae2b --- /dev/null +++ b/games/pioneer/equipment-efb0077.diff @@ -0,0 +1,84 @@ +diff --git a/data/modules/Equipment/Hyperdrive.lua b/data/modules/Equipment/Hyperdrive.lua +index e3c8cd5b5e..fec629107b 100644 +--- a/data/modules/Equipment/Hyperdrive.lua ++++ b/data/modules/Equipment/Hyperdrive.lua +@@ -96,7 +96,7 @@ Equipment.Register("hyperspace.hyperdrive_mil3", HyperdriveType.New { + slot = { type="hyperdrive.military", size=3 }, + mass=12.5, volume=15, capabilities={ hyperclass=3 }, + fuel_resv_size = 10, factor_eff = 60, +- price=85000, purchasable=true, tech_level=11, ++ price=85000, purchasable=true, tech_level="MILITARY", + icon_name="equip_hyperdrive_mil" + }) + Equipment.Register("hyperspace.hyperdrive_mil4", HyperdriveType.New { +@@ -104,7 +104,7 @@ Equipment.Register("hyperspace.hyperdrive_mil4", HyperdriveType.New { + slot = { type="hyperdrive.military", size=4 }, + mass=32, volume=40, capabilities={ hyperclass=4 }, + fuel_resv_size = 30, factor_eff = 48, +- price=214000, purchasable=true, tech_level=12, ++ price=214000, purchasable=true, tech_level="MILITARY", + icon_name="equip_hyperdrive_mil" + }) + Equipment.Register("hyperspace.hyperdrive_mil5", HyperdriveType.New { +diff --git a/data/pigui/libs/equipment-outfitter.lua b/data/pigui/libs/equipment-outfitter.lua +index 21bbc21a7c..86a08e592f 100644 +--- a/data/pigui/libs/equipment-outfitter.lua ++++ b/data/pigui/libs/equipment-outfitter.lua +@@ -196,8 +196,12 @@ end + --================== + + function Outfitter:stationHasTech(level) +- level = level == "MILITARY" and 11 or level +- return self.station.techLevel >= level ++ if level ~= "MILITARY" then ++ return self.station.techLevel >= level ++ else ++ level = 11 ++ return self.station.techLevel == level ++ end + end + + -- Override to support e.g. custom equipment shops +@@ -490,8 +494,15 @@ function Outfitter:renderCompareRow(label, stat_a, stat_b) + ui.text(label) + + local icon_size = Vector2(ui.getTextLineHeight()) ++ local cmp_a, cmp_b = "", "" ++ if stat_a then ++ cmp_a = stat_a[3] == "MILITARY" and 11 or stat_a[3] ++ end ++ if stat_b then ++ cmp_b = stat_b[3] == "MILITARY" and 11 or stat_b[3] ++ end + local color = stat_a and stat_b +- and compare(stat_a[3], stat_b[3], stat_a[5]) ++ and compare(cmp_a, cmp_b, stat_a[5]) + or colors.font + + ui.tableNextColumn() +@@ -500,7 +511,11 @@ function Outfitter:renderCompareRow(label, stat_a, stat_b) + ui.sameLine() + + local val, format = stat_a[3], stat_a[4] +- ui.textColored(color, format(val)) ++ if val ~= "MILITARY" then ++ ui.textColored(color, format(val)) ++ else ++ ui.icon(icons.shield_other, icon_size, color) ++ end + end + + ui.tableNextColumn() +@@ -509,7 +524,11 @@ function Outfitter:renderCompareRow(label, stat_a, stat_b) + ui.sameLine() + + local val, format = stat_b[3], stat_b[4] +- ui.text(format(val)) ++ if val ~= "MILITARY" then ++ ui.textColored(color, format(val)) ++ else ++ ui.icon(icons.shield_other, icon_size, color) ++ end + end + end + diff --git a/games/pioneer/equipment.diff b/games/pioneer/equipment.diff deleted file mode 100644 index 91f04753ce..0000000000 --- a/games/pioneer/equipment.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- data/pigui/libs/equipment-outfitter.lua.old 2025-02-08 00:53:12.018320147 +0900 -+++ data/pigui/libs/equipment-outfitter.lua 2025-02-08 00:53:18.344388274 +0900 -@@ -266,9 +266,11 @@ - ---@param data UI.EquipCard.Data - function Outfitter:modifyEquipmentStats(data) - local stock = self:getStock(data.equip) -+ local tech_level = data.equip.tech_level -+ tech_level = tech_level == "MILITARY" and 11 or tech_level - - table.insert(data.stats, 1, { l.AVAILABLE_STOCK, icons.cargo_crate, stock, fmt_number }) -- table.insert(data.stats, 2, { l.TECH_LEVEL, icons.station_orbital_large, data.equip.tech_level, fmt_number }) -+ table.insert(data.stats, 2, { l.TECH_LEVEL, icons.station_orbital_large, tech_level, fmt_number }) - end - - function Outfitter:buildEquipmentList() diff --git a/games/pioneer/hyperdrive.diff b/games/pioneer/hyperdrive-db5330e.diff index 834a47863a..834a47863a 100644 --- a/games/pioneer/hyperdrive.diff +++ b/games/pioneer/hyperdrive-db5330e.diff diff --git a/games/pioneer/lighting-33158a5.diff b/games/pioneer/lighting-33158a5.diff new file mode 100644 index 0000000000..63d4de6d4b --- /dev/null +++ b/games/pioneer/lighting-33158a5.diff @@ -0,0 +1,13 @@ +diff --git a/src/graphics/opengl/VertexBufferGL.cpp b/src/graphics/opengl/VertexBufferGL.cpp +index 3b0b0f2817..a96476f237 100644 +--- a/src/graphics/opengl/VertexBufferGL.cpp ++++ b/src/graphics/opengl/VertexBufferGL.cpp +@@ -20,7 +20,7 @@ namespace Graphics { + case ATTRIB_NORMAL: return 1; + case ATTRIB_DIFFUSE: return 2; + case ATTRIB_UV0: return 3; +- case ATTRIB_TANGENT: return 4; ++ case ATTRIB_TANGENT: return 5; + default: + assert(false); + return 0; diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild index 0ae414e9b9..bdc62288a5 100644 --- a/games/pioneer/pioneer.SlackBuild +++ b/games/pioneer/pioneer.SlackBuild @@ -36,7 +36,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pioneer VERSION=${VERSION:-20250203} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,9 +79,10 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + -# 20250208 KEC: Post-release patches. -patch -p0 < $CWD/equipment.diff -patch -p0 < $CWD/hyperdrive.diff +# Post-release patches (upstream commits) +patch -p0 < $CWD/hyperdrive-db5330e.diff +patch -p1 < $CWD/lighting-33158a5.diff +patch -p1 < $CWD/equipment-efb0077.diff if [ "${DEBUG:=0}" != 0 ]; then RELEASE=Debug |