Wall lantern + floor water (PLaceholders) (#167)

* fix lamp sprite

* Update wallmount_torch.yml

* add water test sprite

* add simple water entity

* add reversed crystall sprites

* add sand tile
This commit is contained in:
Ed
2024-05-22 23:18:18 +03:00
committed by GitHub
parent 8da9910814
commit 2e91620630
27 changed files with 401 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ cp14-tiles-base = rock strata
# Natural
cp14-tiles-grass = meadow grass
cp14-tiles-dirt = soil
cp14-tiles-sand = sand
# Produced
cp14-tiles-foundation = foundation

View File

@@ -4,6 +4,7 @@ cp14-tiles-base = каменная толща
# Natural
cp14-tiles-grass = луговая трава
cp14-tiles-dirt = почва
cp14-tiles-sand = песок
# Produced
cp14-tiles-foundation = фундамент

View File

@@ -0,0 +1,58 @@
- type: entity
parent: BaseStructure
id: CP14FloorWater
name: water
description: Bruh
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: PlacementReplacement
key: floorTile
- type: Sprite
sprite: _CP14/Tiles/Water/water.rsi
drawdepth: BelowFloor
- type: Icon
sprite: _CP14/Tiles/Water/water.rsi
state: full
- type: IconSmooth
key: CP14Water
base: water
- type: FloorOccluder
- type: Transform
anchored: true
- type: SyncSprite
- type: SpeedModifierContacts
walkSpeedModifier: 0.5
sprintSpeedModifier: 0.5
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
layer:
- SlipLayer
mask:
- ItemMask
density: 1000
hard: false
- type: FootstepModifier
footstepSoundCollection:
collection: FootstepWater
params:
volume: 8
- type: SolutionContainerManager
solutions:
pool:
maxVol: 9999999 #.inf seems to break the whole yaml file, but would definitely be preferable.
reagents:
- ReagentId: CP14Water
Quantity: 9999999
- type: DrainableSolution
solution: pool
- type: Drink
solution: pool

View File

@@ -70,3 +70,39 @@
- type: Construction
graph: CP14WallmountTorch
node: CP14WallmountTorch
- type: entity
id: CP14WallmountLamp
name: eternal flame lamp
description: A fragile eternal blue fire as proof of the superiority of magic over nature.
placement:
mode: SnapgridCenter
components:
- type: Transform
anchored: true
- type: Clickable
- type: InteractionOutline
- type: Sprite
drawdepth: Mobs
sprite: _CP14/Structures/Wallmount/wallmount_lamp.rsi
layers:
- state: base
- state: on
shader: unshaded
map: [ "light" ]
- type: PointLight
radius: 6
netsync: false
color: "#b0eaf6"
- type: Appearance
#TODO toggleable
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -40,6 +40,37 @@
heatCapacity: 10000
weather: true
- type: tile
editorHidden: false
id: CP14FloorSand
name: cp14-tiles-sand
sprite: /Textures/_CP14/Tiles/Sand/sand.png
variants: 5
placementVariants:
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
edgeSpritePriority: 2
edgeSprites:
SouthEast: /Textures/_CP14/Tiles/Sand/single_edge.png
NorthEast: /Textures/_CP14/Tiles/Sand/single_edge.png
NorthWest: /Textures/_CP14/Tiles/Sand/single_edge.png
SouthWest: /Textures/_CP14/Tiles/Sand/single_edge.png
South: /Textures/_CP14/Tiles/Sand/double_edge.png
East: /Textures/_CP14/Tiles/Sand/double_edge.png
North: /Textures/_CP14/Tiles/Sand/double_edge.png
West: /Textures/_CP14/Tiles/Sand/double_edge.png
baseTurf: CP14FloorBase
deconstructTools: [ CP14Digging ]
itemDrop: CP14DirtEffect #TODO sand variant
isSubfloor: true
footstepSounds:
collection: FootstepSnow #TODO
heatCapacity: 10000
weather: true
- type: tile
id: CP14FloorGrass
editorHidden: false
@@ -51,7 +82,7 @@
- 1.0
- 1.0
- 1.0
edgeSpritePriority: 2
edgeSpritePriority: 3
edgeSprites:
SouthEast: /Textures/Tiles/Planet/Grass/single_edge.png
NorthEast: /Textures/Tiles/Planet/Grass/single_edge.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 948 B

After

Width:  |  Height:  |  Size: 946 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 B

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

View File

@@ -16,6 +16,15 @@
{
"name": "small"
},
{
"name": "big_R"
},
{
"name": "medium_R"
},
{
"name": "small_R"
},
{
"name": "shard"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

View File

@@ -3,7 +3,7 @@
copyright: "Space Station 14, recolored by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"
- files: ["double_edge.png", "single_edge.png", "triple_edge.png"]
- files: ["double_edge.png", "single_edge.png"]
license: "CC-BY-SA-3.0"
copyright: "Created by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1009 B

View File

@@ -0,0 +1,9 @@
- files: ["sand.png"]
license: "CC-BY-SA-3.0"
copyright: "Space Station 14"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"
- files: ["double_edge.png", "single_edge.png"]
license: "CC-BY-SA-3.0"
copyright: "Created by TheShuEd"
source: "https://github.com/crystallpunk-14/crystall-punk-14/"

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

View File

@@ -0,0 +1,254 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-NC-SA-3.0",
"copyright": "Created by TheShuEd for CrystallPunk",
"states": [
{
"name": "full"
},
{
"name": "water0",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water1",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water2",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water3",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water4",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water5",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water6",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "water7",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 995 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B