Фиксы (#462)

* Fix crafting steel tiles requiring silk (#19071)

* No gift uplinks

* Cargo hunter balance

* More prices

* Fix tests

* Price fixes

* Map fix

* No payment in lobby

* Fix cloth recipe

* Less money

---------

Co-authored-by: PixelTK <85175107+PixelTheKermit@users.noreply.github.com>
This commit is contained in:
Aviu00
2023-10-03 12:16:19 +09:00
committed by Aviu00
parent dff51b930b
commit 04f0c69b5a
17 changed files with 48 additions and 13 deletions

View File

@@ -33,6 +33,7 @@ public sealed class BankCardSystem : EntitySystem
[Dependency] private readonly InventorySystem _inventorySystem = default!; [Dependency] private readonly InventorySystem _inventorySystem = default!;
[Dependency] private readonly BankCartridgeSystem _bankCartridge = default!; [Dependency] private readonly BankCartridgeSystem _bankCartridge = default!;
[Dependency] private readonly JobSystem _job = default!; [Dependency] private readonly JobSystem _job = default!;
[Dependency] private readonly GameTicker _gameTicker = default!;
private const int SalaryDelay = 1200; private const int SalaryDelay = 1200;
@@ -53,6 +54,12 @@ public sealed class BankCardSystem : EntitySystem
{ {
base.Update(frameTime); base.Update(frameTime);
if (_gameTicker.RunLevel != GameRunLevel.InRound)
{
_salaryTimer = 0f;
return;
}
_salaryTimer += frameTime; _salaryTimer += frameTime;
if (_salaryTimer <= SalaryDelay) if (_salaryTimer <= SalaryDelay)
@@ -121,7 +128,7 @@ public sealed class BankCardSystem : EntitySystem
if (!TryComp(mind.Mind, out MindComponent? mindComponent)) if (!TryComp(mind.Mind, out MindComponent? mindComponent))
return; return;
bankAccount.Balance = GetSalary(mind.Mind) * 3; bankAccount.Balance = GetSalary(mind.Mind) + 100;
mindComponent.AddMemory(new Memory("PIN", bankAccount.AccountPin.ToString())); mindComponent.AddMemory(new Memory("PIN", bankAccount.AccountPin.ToString()));
bankAccount.Mind = (mind.Mind.Value, mindComponent); bankAccount.Mind = (mind.Mind.Value, mindComponent);
bankAccount.Name = Name(ev.Mob); bankAccount.Name = Name(ev.Mob);

View File

@@ -27,6 +27,7 @@ ent-SecurityBudgetCard = Ведомственная карточка (Оборо
.suffix = { "" } .suffix = { "" }
ent-CommandBudgetPinPaper = PIN-код станционного бюджета. ent-CommandBudgetPinPaper = PIN-код станционного бюджета.
.desc = Листок белой бумаги
.suffix = { "" } .suffix = { "" }
command-budget-pin-message = PIN-код станционного бюджета: { $pin } command-budget-pin-message = PIN-код станционного бюджета: { $pin }

View File

@@ -12,7 +12,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockBoozeFilled product: CrateVendingMachineRestockBoozeFilled
cost: 3500 cost: 5000
category: Service category: Service
group: market group: market
@@ -84,7 +84,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockHotDrinksFilled product: CrateVendingMachineRestockHotDrinksFilled
cost: 1200 cost: 1500
category: Service category: Service
group: market group: market
@@ -134,7 +134,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockRobustSoftdrinksFilled product: CrateVendingMachineRestockRobustSoftdrinksFilled
cost: 1200 cost: 2000
category: Service category: Service
group: market group: market
@@ -174,7 +174,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockSmokesFilled product: CrateVendingMachineRestockSmokesFilled
cost: 1200 cost: 1500
category: Service category: Service
group: market group: market
@@ -224,7 +224,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockGetmoreChocolateCorpFilled product: CrateVendingMachineRestockGetmoreChocolateCorpFilled
cost: 1200 cost: 2000
category: Service category: Service
group: market group: market
@@ -234,7 +234,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockChangFilled product: CrateVendingMachineRestockChangFilled
cost: 1200 cost: 2000
category: Service category: Service
group: market group: market
@@ -244,7 +244,7 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockDiscountDansFilled product: CrateVendingMachineRestockDiscountDansFilled
cost: 1200 cost: 2000
category: Service category: Service
group: market group: market
@@ -254,6 +254,6 @@
sprite: Objects/Specific/Service/vending_machine_restock.rsi sprite: Objects/Specific/Service/vending_machine_restock.rsi
state: base state: base
product: CrateVendingMachineRestockDonutFilled product: CrateVendingMachineRestockDonutFilled
cost: 1200 cost: 2000
category: Service category: Service
group: market group: market

View File

@@ -30,6 +30,8 @@
delay: 0.5 delay: 0.5
- type: ExplosionResistance - type: ExplosionResistance
damageCoefficient: 0.9 damageCoefficient: 0.9
- type: StaticPrice
price: 40
- type: entity - type: entity
parent: ClothingBackpack parent: ClothingBackpack

View File

@@ -14,6 +14,8 @@
walkModifier: 1 walkModifier: 1
sprintModifier: 0.9 sprintModifier: 0.9
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: StaticPrice
price: 40
- type: entity - type: entity
parent: ClothingBackpackDuffel parent: ClothingBackpackDuffel

View File

@@ -14,7 +14,7 @@
materialComposition: materialComposition:
Cloth: 50 Cloth: 50
- type: StaticPrice - type: StaticPrice
price: 25 price: 30
- type: entity - type: entity
abstract: true abstract: true

View File

@@ -25,6 +25,8 @@
- ClothMade - ClothMade
- DroneUsable - DroneUsable
- WhitelistChameleon - WhitelistChameleon
- type: StaticPrice
price: 25
- type: entity - type: entity
abstract: true abstract: true

View File

@@ -29,3 +29,5 @@
tags: tags:
- ClothMade - ClothMade
- WhitelistChameleon - WhitelistChameleon
- type: StaticPrice
price: 25

View File

@@ -8,6 +8,8 @@
- outerClothing - outerClothing
- type: Sprite - type: Sprite
state: icon state: icon
- type: StaticPrice
price: 40
- type: entity - type: entity
abstract: true abstract: true
@@ -51,8 +53,6 @@
interfaces: interfaces:
- key: enum.StorageUiKey.Key - key: enum.StorageUiKey.Key
type: StorageBoundUserInterface type: StorageBoundUserInterface
- type: StaticPrice
price: 20
# WD edit sounds start # WD edit sounds start
- type: EmitSoundOnPickup - type: EmitSoundOnPickup
sound: sound:

View File

@@ -23,6 +23,8 @@
tags: tags:
- ClothMade - ClothMade
- WhitelistChameleon - WhitelistChameleon
- type: StaticPrice
price: 25
- type: entity - type: entity
abstract: true abstract: true

View File

@@ -27,6 +27,8 @@
tags: tags:
- ClothMade - ClothMade
- WhitelistChameleon - WhitelistChameleon
- type: StaticPrice
price: 30
# WD edit sounds start # WD edit sounds start
- type: EmitSoundOnPickup - type: EmitSoundOnPickup
sound: sound:

View File

@@ -20,6 +20,8 @@
state: cigpapers state: cigpapers
- type: Item - type: Item
sprite: Objects/Consumable/Smokeables/Cigarettes/paper.rsi sprite: Objects/Consumable/Smokeables/Cigarettes/paper.rsi
- type: StaticPrice
price: 5
- type: entity - type: entity
parent: PackPaperRolling parent: PackPaperRolling
@@ -38,6 +40,8 @@
amount: 2 amount: 2
- id: CigaretteFilter - id: CigaretteFilter
amount: 2 amount: 2
- type: StaticPrice
price: 5
- type: entity - type: entity
id: PaperRolling id: PaperRolling

View File

@@ -154,6 +154,9 @@
state: cloth state: cloth
- type: Stack - type: Stack
count: 1 count: 1
- type: Construction
graph: WebObjects
node: cloth
- type: entity - type: entity
parent: MaterialBase parent: MaterialBase
@@ -212,7 +215,7 @@
reagents: #Hell if I know what durathread is made out of. reagents: #Hell if I know what durathread is made out of.
- ReagentId: Fiber - ReagentId: Fiber
Quantity: 6 Quantity: 6
- type: entity - type: entity
parent: MaterialBase parent: MaterialBase
id: MaterialWoodPlank id: MaterialWoodPlank

View File

@@ -179,6 +179,7 @@
components: components:
- type: Implanter - type: Implanter
implant: UplinkImplant implant: UplinkImplant
- type: GiftIgnore
- type: entity - type: entity
id: EmpImplanter id: EmpImplanter

View File

@@ -71,6 +71,7 @@
preset: StorePresetUplink preset: StorePresetUplink
balance: balance:
Telecrystal: 0 Telecrystal: 0
- type: GiftIgnore
- type: entity - type: entity
parent: BaseUplinkRadio parent: BaseUplinkRadio
@@ -81,6 +82,7 @@
preset: StorePresetUplink preset: StorePresetUplink
balance: balance:
Telecrystal: 20 Telecrystal: 20
- type: GiftIgnore
- type: entity - type: entity
parent: BaseUplinkRadio parent: BaseUplinkRadio
@@ -91,6 +93,7 @@
preset: StorePresetUplink preset: StorePresetUplink
balance: balance:
Telecrystal: 25 Telecrystal: 25
- type: GiftIgnore
#this uplink MUST be used for nukeops, as it has the tag for filtering the listing. #this uplink MUST be used for nukeops, as it has the tag for filtering the listing.
- type: entity - type: entity
@@ -105,6 +108,7 @@
- type: Tag - type: Tag
tags: tags:
- NukeOpsUplink - NukeOpsUplink
- type: GiftIgnore
- type: entity - type: entity
parent: BaseUplinkRadio parent: BaseUplinkRadio

View File

@@ -113,3 +113,5 @@
tags: tags:
- Trash - Trash
- type: SpaceGarbage - type: SpaceGarbage
- type: StaticPrice
price: 5

View File

@@ -11,6 +11,7 @@
Quartermaster: 600 Quartermaster: 600
CargoTechnician: 200 CargoTechnician: 200
SalvageSpecialist: 300 SalvageSpecialist: 300
SeniorSalvageSpecialist: 400
Bartender: 200 Bartender: 200
Botanist: 200 Botanist: 200
Boxer: 150 Boxer: 150