Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ private void OnTargetCaptured(TargetOverlayShootEvent args)
var performer = GetEntity(args.Performer);
var sender = GetEntity(args.Sender.Value);

if (!PassesSpellPrerequisites(sender, performer, Transform(performer).Coordinates)) return;

if (!TryComp<MedievalSpellCasterComponent>(performer, out var spellCasterComponent)) return;
if (!TryComp<ActionComponent>(sender, out var actionComponent)) return;
if (actionComponent.Cooldown.HasValue && actionComponent.Cooldown.Value.End >= _timing.CurTime) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected bool PassesSpellPrerequisites(EntityUid spell, EntityUid performer, En
RaiseLocalEvent(spell, ref ev);

if (_handsSystem.TryGetEmptyHand(performer, out _) == false) // TODO: Если в игре появятся магические катализаторы (посохи, палочки), что дают баффы при сотворении чар, то нужно будет добавить их в исключение
return ev.Cancelled;
return false;

return !ev.Cancelled;
}
Expand Down
6 changes: 6 additions & 0 deletions Resources/Locale/ru-RU/Imperial/Medieval/medieval.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,12 @@ ent-MedievalGallows = виселица
ent-MedievalMedicalBed2Craft = заготовка роскошной кровати
.desc = Кликните с заготовкой в активной руке по месту, куда вы хотите разместить объект, чтобы смастерить старинную кровать.
.suffix = { "Средневековье" }
ent-MedievalBedT2 = кровать
.desc = Обычная кровать.
.suffix = { "Средневековье, декор" }
ent-MedievalBedT2Craft = заготовка кровати
.desc = Кликните с заготовкой в активной руке по месту, куда вы хотите разместить объект, чтобы смастерить кровать.
.suffix = { "Средневековье, декор" }
ent-MedievalGoldOre = золотая руда
.desc = Драгоценный металл.
.suffix = { "Средневековье, ресурс" }
Expand Down
55 changes: 55 additions & 0 deletions Resources/Prototypes/Imperial/Medieval/decor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,61 @@
- type: MedievalPlagueHealStrapped
level: 2

- type: entity
parent: Bed
id: MedievalBedT2
components:
- type: Strap
buckleTime: 0.5
unbuckleTime: 0.5
buckleSound:
path: /Audio/Imperial/Medieval/Effects/lay_on_bed1.ogg
unbuckleSound:
path: /Audio/Imperial/Medieval/Effects/lay_on_bed2.ogg
- type: Buckle
- type: BloodRegenBed
bloodRegenMultiplier: 2.0
- type: Sprite
sprite: Imperial/Medieval/Decor/medieval_decor.rsi
state: bedT2
- type: HealOnBuckle
damage:
groups:
Brute: -0.2
Burn: -0.2
Airloss: -0.4
types:
Poison: -0.16
Caustic: -0.05
Radiation: -0.07
- type: MedievalPlagueHealStrapped

- type: entity
id: MedievalBedT2Craft
parent: BaseItem
components:
- type: RDWeight
value: 25
- type: Item
size: Normal
- type: SpawnAfterInteract
prototype: MedievalBedT2
doAfter: 15
deleteOnInteract: true
- type: Sprite
sprite: Imperial/Medieval/CraftBosses/stockade.rsi
state: icon

- type: CP14Recipe
id: MedievalBedT2Recipe
craftTime: 10
stacks:
Cloth: 10
WoodPlank: 10
MedievalGrass: 3
Cotton: 2
result: MedievalBedT2Craft

- type: entity
id: MedievalDecorAnons
parent: MedievalBannerBase
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Imperial/Medieval/lathes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@
- MedievalCartRecipe
- MedievalDecorBoxEmptyRecipe
- MedievalFlagpoleShipRecipe
- MedievalBedT2Recipe

- type: entity
parent: MedievalFoundry
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
{
"name": "bed2"
},
{
"name": "bedT2"
},
{
"name": "wheat2"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Textures/Structures/Decoration/bonfire.rsi/burning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading