Update product sell costs in SQL and initialization script: Adjust sell costs for various products to improve game balance, ensuring consistency across the database and initialization logic.
This commit is contained in:
@@ -2,17 +2,17 @@ BEGIN;
|
|||||||
|
|
||||||
UPDATE falukant_type.product
|
UPDATE falukant_type.product
|
||||||
SET sell_cost = CASE label_tr
|
SET sell_cost = CASE label_tr
|
||||||
WHEN 'wheat' THEN 7
|
WHEN 'wheat' THEN 11
|
||||||
WHEN 'grain' THEN 7
|
WHEN 'grain' THEN 11
|
||||||
WHEN 'carrot' THEN 4
|
WHEN 'carrot' THEN 8
|
||||||
WHEN 'fish' THEN 7
|
WHEN 'fish' THEN 11
|
||||||
WHEN 'meat' THEN 7
|
WHEN 'meat' THEN 11
|
||||||
WHEN 'leather' THEN 7
|
WHEN 'leather' THEN 11
|
||||||
WHEN 'wood' THEN 7
|
WHEN 'wood' THEN 11
|
||||||
WHEN 'stone' THEN 7
|
WHEN 'stone' THEN 11
|
||||||
WHEN 'milk' THEN 5
|
WHEN 'milk' THEN 11
|
||||||
WHEN 'cheese' THEN 5
|
WHEN 'cheese' THEN 11
|
||||||
WHEN 'bread' THEN 5
|
WHEN 'bread' THEN 11
|
||||||
WHEN 'beer' THEN 22
|
WHEN 'beer' THEN 22
|
||||||
WHEN 'iron' THEN 24
|
WHEN 'iron' THEN 24
|
||||||
WHEN 'copper' THEN 24
|
WHEN 'copper' THEN 24
|
||||||
|
|||||||
@@ -248,17 +248,17 @@ async function initializeFalukantProducts() {
|
|||||||
const factorMax = (maxTax >= 100) ? 1 : (1 / (1 - maxTax / 100));
|
const factorMax = (maxTax >= 100) ? 1 : (1 / (1 - maxTax / 100));
|
||||||
|
|
||||||
const baseProducts = [
|
const baseProducts = [
|
||||||
{ labelTr: 'wheat', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'wheat', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'grain', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'grain', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'carrot', category: 1, productionTime: 2, sellCost: 4 },
|
{ labelTr: 'carrot', category: 1, productionTime: 2, sellCost: 8 },
|
||||||
{ labelTr: 'fish', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'fish', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'meat', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'meat', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'leather', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'leather', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'wood', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'wood', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'stone', category: 1, productionTime: 2, sellCost: 7 },
|
{ labelTr: 'stone', category: 1, productionTime: 2, sellCost: 11 },
|
||||||
{ labelTr: 'milk', category: 1, productionTime: 1, sellCost: 5 },
|
{ labelTr: 'milk', category: 1, productionTime: 1, sellCost: 11 },
|
||||||
{ labelTr: 'cheese', category: 1, productionTime: 1, sellCost: 5 },
|
{ labelTr: 'cheese', category: 1, productionTime: 1, sellCost: 11 },
|
||||||
{ labelTr: 'bread', category: 1, productionTime: 1, sellCost: 5 },
|
{ labelTr: 'bread', category: 1, productionTime: 1, sellCost: 11 },
|
||||||
{ labelTr: 'beer', category: 2, productionTime: 3, sellCost: 22 },
|
{ labelTr: 'beer', category: 2, productionTime: 3, sellCost: 22 },
|
||||||
{ labelTr: 'iron', category: 2, productionTime: 4, sellCost: 24 },
|
{ labelTr: 'iron', category: 2, productionTime: 4, sellCost: 24 },
|
||||||
{ labelTr: 'copper', category: 2, productionTime: 4, sellCost: 24 },
|
{ labelTr: 'copper', category: 2, productionTime: 4, sellCost: 24 },
|
||||||
|
|||||||
Reference in New Issue
Block a user