Skip to content

Commit

Permalink
каменная стена подгон KREKSa
Browse files Browse the repository at this point in the history
фиксы
  • Loading branch information
TheShuEd committed Mar 30, 2024
1 parent c56b7d2 commit 5485be7
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 4 deletions.
10 changes: 9 additions & 1 deletion Content.Server/CrystallPunk/LockKey/CPLockKeySystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

using Content.Server.GameTicking.Events;
using Content.Shared.CrystallPunk.LockKey;
using Content.Shared.Examine;
using Robust.Shared.Prototypes;
Expand All @@ -21,12 +22,19 @@ public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<RoundStartingEvent>(OnRoundStart);

SubscribeLocalEvent<CPLockComponent, MapInitEvent>(OnLockInit);
SubscribeLocalEvent<CPKeyComponent, ExaminedEvent>(OnKeyExamine);
SubscribeLocalEvent<CPKeyComponent, MapInitEvent>(OnKeyInit);

}

private void OnRoundStart(RoundStartingEvent ev)
{
_roundKeyData = new();
}

private void OnKeyExamine(Entity<CPKeyComponent> key, ref ExaminedEvent args)
{
if (key.Comp.LockShape == null)
Expand All @@ -48,7 +56,7 @@ private void OnKeyInit(Entity<CPKeyComponent> keyEnt, ref MapInitEvent args)

private void OnLockInit(Entity<CPLockComponent> lockEnt, ref MapInitEvent args)
{
throw new NotImplementedException();

}

private List<int> GetKeyLockData(ProtoId<CPLockCategoryPrototype> category)
Expand Down
3 changes: 3 additions & 0 deletions Resources/Locale/ru-RU/cpKeylock/lock.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cp-lock-debug-1 = дебаг 1
cp-lock-debug-2 = дебаг 2
cp-lock-debug-3 = дебаг 3
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@
key: CPwallswood
base: wood

- type: entity
id: CaveStoneWall
name: каменная порода
parent: CPBaseWall
description: Прочная каменная природная стена. От нее веет пещерным холодом.
components:
- type: Sprite
sprite: CrystallPunk/Structures/Walls/cave_stone.rsi
- type: Icon
sprite: CrystallPunk/Structures/Walls/cave_stone.rsi
- type: IconSmooth
key: CPwallsbrick
base: stone

- type: entity
id: StoneRuinFragment
parent: BaseRock
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
- type: CPLockCategory
id: Debug
name: что-то дебажное
name: cp-lock-debug-1
complexity: 5

- type: CPLockCategory
id: Debug2
name: что-то другое
name: cp-lock-debug-2
complexity: 3

- type: CPLockCategory
id: Debug3
name: что-то третье
name: cp-lock-debug-3
complexity: 4

- type: entity
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
@@ -0,0 +1,46 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Created by KREKS (Discord) for CrystallPunk14",
"states": [
{
"name": "stone0",
"directions": 4
},
{
"name": "stone1",
"directions": 4
},
{
"name": "stone2",
"directions": 4
},
{
"name": "stone3",
"directions": 4
},
{
"name": "stone4",
"directions": 4
},
{
"name": "stone5",
"directions": 4
},
{
"name": "stone6",
"directions": 4
},
{
"name": "stone7",
"directions": 4
},
{
"name": "full"
}
]
}
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.
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.

0 comments on commit 5485be7

Please sign in to comment.