- type: entity
  parent: [SimpleMobBase, StripableInventoryBase, BaseSpeciesPickupable]
  id: MobKitsuneFox
  name: kitsune-mob-name
  description: kitsune-mob-description
  components:
  - type: Inventory
    templateId: kitsune_pet
  - type: Sprite
    drawdepth: Mobs
    sprite: _Fish/nine_tailed_fox.rsi
    layers:
    - state: fox
  - type: Physics
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeCircle
          radius: 0.35
        density: 50 #They actually are pretty light, I looked it up
        mask:
        - MobMask
        layer:
        - MobLayer
  - type: MovementSpeedModifier
    baseWalkSpeed: 3
    baseSprintSpeed: 6
  - type: FootstepModifier
    footstepSoundCollection:
      collection: BarestepHard
  - type: Tag
    tags:
    - DoorBumpOpener
    - FootstepSound
  - type: InteractionPopup
    successChance: 0.5
    interactSuccessString: petting-success-soft-floofy
    interactFailureString: petting-failure-generic
    interactSuccessSpawn: EffectHearts
    interactSuccessSound:
      collection: Fox
  - type: Grammar
    attributes:
      gender: epicene
  - type: ComplexInteraction
  - type: TTS
    voice: KateSmirnovaTB
  - type: MeleeWeapon
    angle: 0
    animation: WeaponArcBite
    soundHit:
      path: /Audio/Effects/bite.ogg
    damage:
      types:
        Piercing: 9
  - type: NpcFactionMember
    factions:
    - Passive
  - type: NPCRetaliation
    attackMemoryLength: 10
  - type: HTN
    rootTask:
      task: RuminantHostileCompound
  - type: Carriable
    requiresNestingMob: true
  - type: CanEscapeInventory
  - type: TypingIndicator
    proto: kitsune
  - type: Damageable
    damageModifierSet: Kitsune
  - type: Speech
    speechSounds: Vulpkanin
    speechVerb: Vulpkanin
    speechBubbleOffset: -0.5
    allowedEmotes: [ 'Bark', 'Snarl', 'Whine', 'Howl', 'Growl' ]
  - type: Vocal
    sounds:
      Male: MaleVulpkanin
      Female: FemaleVulpkanin
      Unsexed: MaleVulpkanin
  - type: TemperatureDamage
    heatDamageThreshold: 400
    coldDamageThreshold: 200
    coldDamage:
      types:
        Cold: 0.1
    heatDamage:
      types:
        Heat: 1.5
  - type: ToggleableNightVision

# Player-transformed Kitsune form with dual sprite layers for color + white parts
- type: entity
  parent: MobKitsuneFox
  id: MobKitsunePlayerFox
  components:
  - type: Sprite
    drawdepth: Mobs
    sprite: _Fish/nine_tailed_fox.rsi
    layers:
    - state: nine-tail_fox_gray_color
    - state: nine-tail_fox_gray_white
  - type: KitsuneTransform
    actions:
    - ActionKitsuneRevert
