Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Новый дружелюбный моб: Kasta #1964

Closed
wants to merge 3 commits into from
Closed
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
70,913 changes: 70,913 additions & 0 deletions Resources/Maps/foo.yml

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions Resources/Prototypes/Entities/Markers/Spawners/ghost_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@
- sprite: Mobs/Animals/regalrat.rsi
state: icon

- type: entity
id: SpawnPointGhostKastaDog
name: ghost role spawn point
suffix: kasta dog
parent: MarkerBase
components:
- type: GhostRole
name: ghost-role-information-kasta-dog-name
description: ghost-role-information-kasta-dog-description
rules: ghost-role-information-kasta-dog-rules
- type: GhostRoleMobSpawner
prototype: MobKasta
- type: Sprite
sprite: Markers/jobs.rsi
layers:
- state: green
- sprite: Mobs/Animals/regalrat.rsi
state: icon

- type: entity
id: SpawnPointGhostRemilia
name: ghost role spawn point
Expand Down
14 changes: 14 additions & 0 deletions Resources/Prototypes/Entities/Markers/Spawners/mobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,20 @@
prototypes:
- MobSpiderShiva

- type: entity
name: Kasta Spawner
id: SpawnMobKasta
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- state: shiva
sprite: Mobs/Pets/kasta.rsi
- type: ConditionalSpawner
prototypes:
- MobKasta

- type: entity
name: Willow Spawner
id: SpawnMobKangarooWillow
Expand Down
89 changes: 89 additions & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,95 @@
- type: StealTarget
stealGroup: AnimalShiva

- type: entity
name: Kasta
parent: SimpleMobBase
id: MobKasta
description: He likes chems and treats. Kasta.
components:
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Pets/kasta.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: kasta
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.35
density: 50
mask:
- MobMask
layer:
- MobLayer
- type: Inventory
speciesId: dog
templateId: pet
- type: InventorySlots
- type: Strippable
- type: UserInterface
interfaces:
- key: enum.StrippingUiKey.Key
type: StrippableBoundUserInterface
- type: DamageStateVisuals
states:
Alive:
Base: kasta
Critical:
Base: kasta_dead
Dead:
Base: kasta_dead
- type: Butcherable
spawned:
- id: FoodMeat
amount: 3
- type: ReplacementAccent
accent: dog
- type: MeleeWeapon
angle: 0
animation: WeaponArcBite
soundHit:
path: /Audio/Effects/bite.ogg
damage:
types:
Piercing: 20
- type: InteractionPopup
successChance: 0.7
interactSuccessString: petting-success-dog
interactFailureString: petting-failure-generic
interactSuccessSpawn: EffectHearts
interactSuccessSound:
path: /Audio/Animals/small_dog_bark_happy.ogg
- type: Grammar
attributes:
proper: true
gender: male
- type: GhostRole
makeSentient: true
allowSpeech: true
allowMovement: true
name: ghost-role-information-kasta-dog-name
description: ghost-role-information-rat-king-description
rules: ghost-role-information-rat-king-rules
- type: GhostTakeoverAvailable
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: NpcFactionMember
factions:
- PetsNT
- type: Tag
tags:
- CannotSuicide
- VimPilot
- DoorBumpOpener
- FootstepSound
- type: StealTarget
stealGroup: AnimalKasta

- type: entity
name: Willow
parent: MobKangaroo
Expand Down
16 changes: 16 additions & 0 deletions Resources/Prototypes/Maps/foo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- type: gameMap
id: KastaArena
mapName: Test kasta
mapPath: /Maps/foo.yml
minPlayers: 0
stations:
Arena:
stationProto: StandardStationArena
components:
- type: StationNameSetup
mapNameTemplate: "Test kasta"
- type: StationJobs
overflowJobs:
- Passenger
availableJobs:
Passenger: [ -1, -1 ]
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.
22 changes: 22 additions & 0 deletions Resources/Textures/Mobs/Pets/kasta.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": 1,
"size":
{
"x": 32,
"y": 32
},
"license": "AGPL-3",
"copyright": "Taken from Paradise SS13 with recolor to make it look like shepherd, https://scrubby.melonmesa.com/dmi/icons/mob/pets.dmi?codebase=paradisepets.dmi",
"states":
[
{
"name": "kasta",
"directions": 4
},

{
"name": "kasta_dead",
"directions": 1
}
]
}
Loading