Add LumeraMagicVision skill and update trading requests (#1477)
Introduces the LumeraMagicVision skill to the Lumera demigod skill tree, granting access to the Magic Vision action. Also removes several 30-minute jewelry trading requests (Ruby, Emerald, Sapphire, Topaz) from thaumaturgy.yml. Additionally, improves price scanner logic to skip items with non-positive price.
This commit is contained in:
@@ -39,9 +39,10 @@ public sealed class CP14PriceScannerSystem : EntitySystem
|
||||
if (HasComp<MobStateComponent>(uid))
|
||||
return;
|
||||
|
||||
var getPrice = _price.GetPrice(args.Examined);
|
||||
var price = Math.Round(_price.GetPrice(args.Examined));
|
||||
|
||||
var price = Math.Round(getPrice);
|
||||
if (price <= 0)
|
||||
return;
|
||||
|
||||
var priceMsg = Loc.GetString("cp14-currency-examine-title");
|
||||
|
||||
|
||||
@@ -58,6 +58,20 @@
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: LumeraT1
|
||||
|
||||
- type: cp14Skill
|
||||
id: LumeraMagicVision
|
||||
skillUiPosition: 2, 5
|
||||
tree: GodLumera
|
||||
icon:
|
||||
sprite: _CP14/Actions/Spells/meta.rsi
|
||||
state: magic_vision
|
||||
effects:
|
||||
- !type:AddAction
|
||||
action: CP14ActionToggleMagicVision
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: LumeraT1
|
||||
|
||||
# T2
|
||||
|
||||
- type: cp14Skill
|
||||
|
||||
@@ -8,53 +8,6 @@
|
||||
count: 5
|
||||
|
||||
# 30 minutes
|
||||
- type: cp14TradingRequest
|
||||
id: ThaumaturgyRuby
|
||||
possibleFactions:
|
||||
- Thaumaturgy
|
||||
- Tailors
|
||||
- DwarfMining
|
||||
fromMinutes: 30
|
||||
requirements:
|
||||
- !type:ProtoIdResource
|
||||
protoId: CP14JewelryRuby
|
||||
count: 1
|
||||
|
||||
- type: cp14TradingRequest
|
||||
id: ThaumaturgyEmerald
|
||||
possibleFactions:
|
||||
- Thaumaturgy
|
||||
- Tailors
|
||||
- DwarfMining
|
||||
fromMinutes: 30
|
||||
requirements:
|
||||
- !type:ProtoIdResource
|
||||
protoId: CP14JewelryEmerald
|
||||
count: 1
|
||||
|
||||
- type: cp14TradingRequest
|
||||
id: ThaumaturgySapphire
|
||||
possibleFactions:
|
||||
- Thaumaturgy
|
||||
- Tailors
|
||||
- DwarfMining
|
||||
fromMinutes: 30
|
||||
requirements:
|
||||
- !type:ProtoIdResource
|
||||
protoId: CP14JewelrySapphire
|
||||
count: 1
|
||||
|
||||
- type: cp14TradingRequest
|
||||
id: ThaumaturgyTopaz
|
||||
possibleFactions:
|
||||
- Thaumaturgy
|
||||
- Tailors
|
||||
- DwarfMining
|
||||
fromMinutes: 30
|
||||
requirements:
|
||||
- !type:ProtoIdResource
|
||||
protoId: CP14JewelryTopaz
|
||||
count: 1
|
||||
|
||||
- type: cp14TradingRequest
|
||||
id: ThaumaturgyGoldAmulet
|
||||
|
||||
Reference in New Issue
Block a user