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

Добавлен дружелюбный моб: Каста #1965

Closed
wants to merge 4 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
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/ghost/roles/ghost-role-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ ghost-role-information-cburn-agent-description = A highly trained CentCom agent,
ghost-role-information-centcom-official-name = CentComm official
ghost-role-information-centcom-official-description = Perform CentComm related duties such as inspect the station, jotting down performance reviews for heads of staff, and managing the fax machine.

ghost-role-information-kasta-dog-name = Kasta
ghost-role-information-kasta-dog-description = Kasta, a dog which got to station because some Matiz has hit it

ghost-role-information-nukeop-rules = You are a syndicate operative tasked with the destruction of the station. As an antagonist, do whatever is required to complete this task.

ghost-role-information-loneop-name = Lone Operative
Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ghost/roles/ghost-role-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ ghost-role-information-space-tick-name = Космический клещ
ghost-role-information-space-tick-description = Устройте хаос на станции!
ghost-role-information-salvage-tick-name = Космический клещ на обломке в космосе
ghost-role-information-salvage-tick-description = Защищайте сокровища космического обломка!
ghost-role-information-kasta-dog-name = Каста
ghost-role-information-kasta-dog-description = Каста, собака, которая попала на станцию, потому что какой-то Матиз отправил её в полет.
ghost-role-information-honkbot-name = Хонкбот
ghost-role-information-honkbot-description = Искусственное воплощение чистого зла.
ghost-role-information-jonkbot-name = Кринжбот
Expand Down
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
88 changes: 88 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,94 @@
- 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
- 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