# Base spider ling

- type: entity
  name: spiderling
  parent: SimpleMobBase
  id: MobSpiderlingBase
  description: a small spider which growth into unknown big and dangerous spider.
  abstract: true
  components:
  - type: OptionsVisualizer
    visuals:
      base:
        - options: Default
          data:
            drawdepth: Mobs
            sprite: _Starlight/Mobs/Animals/Spiders/spiderling.rsi
            map: ["enum.DamageStateVisualLayers.Base", "movement"]
            state: alive
        - options: Arachnophobia
          data:
            drawdepth: Mobs
            sprite: _Starlight/Mobs/Animals/Spiders/Arachnophobia/spiderling.rsi
            map: ["enum.DamageStateVisualLayers.Base", "movement"]
            state: alive
  - type: LanguageKnowledge
    speaks:
    - Chittin
    - Darktongue
    understands:
    - Chittin
    - Darktongue
  - type: VentCrawler
  - type: Physics
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeCircle
          radius: 0.2
        density: 50
        mask:
        - SmallMobMask
        layer:
        - SmallMobLayer
  - type: DamageStateVisuals
    states:
      Alive:
        Base: alive
      Critical:
        Base: dead
      Dead:
        Base: dead
  - type: Body
    prototype: AnimalHemocyanin
  - type: MobThresholds
    thresholds:
      0: Alive
      40: Dead
  - type: ReplacementAccent
    accent: xeno
  - type: NoSlip
  - type: IgnoreSpiderWeb
  - type: Bloodstream
    bloodReferenceSolution:
        reagents:
        - ReagentId: CopperBlood
          Quantity: 50
  - type: Speech
    speechVerb: Arachnid
    speechSounds: Arachnid
    allowedEmotes: ['Click', 'Chitter']
  - type: Vocal
    sounds:
      Male: UnisexArachnid
      Female: UnisexArachnid
      Unsexed: UnisexArachnid
  - type: TypingIndicator
    proto: spider
  - type: Tag
    tags:
    - FootstepSound
  - type: NpcFactionMember
    factions:
      - Xeno
  - type: InputMover
  - type: MobMover
  - type: HTN
    rootTask:
      task: SimpleAvoidanceCompound
  - type: Jump

# Default
- type: entity
  parent: MobSpiderlingBase
  id: MobSpiderling
  components:
  - type: VentCrawler
  - type: MovementSpeedModifier
    baseWalkSpeed : 4.00
    baseSprintSpeed : 5.00

- type: entity
  name: spiderling
  parent: MobSpiderling
  id: MobSpiderlingTerrorRed
  components:
  - type: TimedSpawner
    prototypes:
    - MobTerrorRed
    intervalSeconds: 90
    minimumEntitiesSpawned: 1
    maximumEntitiesSpawned: 1
  - type: TimedDespawn
    lifetime: 91

- type: entity
  name: spiderling
  parent: MobSpiderling
  id: MobSpiderlingTerrorGray
  components:
  - type: TimedSpawner
    prototypes:
    - MobTerrorGray
    intervalSeconds: 90
    minimumEntitiesSpawned: 1
    maximumEntitiesSpawned: 1
  - type: TimedDespawn
    lifetime: 91

- type: entity
  name: spiderling
  parent: MobSpiderling
  id: MobSpiderlingTerrorGreen
  components:
  - type: TimedSpawner
    prototypes:
    - MobTerrorGreen
    intervalSeconds: 90
    minimumEntitiesSpawned: 1
    maximumEntitiesSpawned: 1
  - type: TimedDespawn
    lifetime: 91

- type: entity
  name: spiderling
  parent: MobSpiderling
  id: MobSpiderlingSpiderAngry
  components:
  - type: TimedSpawner
    prototypes:
    - MobGiantSpiderAngry
    intervalSeconds: 60
    minimumEntitiesSpawned: 1
    maximumEntitiesSpawned: 1
  - type: TimedDespawn
    lifetime: 61
