<commit_before>Crafty.c 'Explosion',
  init: ->
    @requires '2D,Tween,Delay'

    @explosionMode = window.Game.explosionMode
    if @explosionMode is 'block'
      @requires 'WebGL, Color'

  explode: (attr) ->
    radius = attr.radius ? 20
    duration = (attr.duration ? 160) / 1000
    @attr attr

    options =
      maxParticles: 6 * attr.radius
      size: attr.radius
      sizeRandom: 8
      speed: (attr.radius / 13)
      speedRandom: 0.5
      # Lifespan in frames
      lifeSpan: 19
      lifeSpanRandom: 7
      # Angle is calculated clockwise: 12pm is 0deg, 3pm is 90deg etc.
      angle: 0
      angleRandom: 360
      startColour: [235, 135, 5, 1]
      startColourRandom: [28, 150, 45, 0.2]
      endColour: [135, 135, 135, 0]
      endColourRandom: [60, 60, 60, 0.1]
      # Only applies when fastMode is off, specifies how sharp the gradients are drawn
      sharpness: 10
      sharpnessRandom: 10
      # Random spread from origin
      spread: attr.radius / 2
      # How many frames should this last
      duration: duration * Crafty.timer.FPS()
      #duration: -1
      # Will draw squares instead of circle gradients
      #fastMode: false
      fastMode: no
      gravity: { x: 0, y: 0 }
      # sensible values are 0-3
      jitter: 0<commit_msg>Tone down explosions more<commit_after>Crafty.c 'Explosion',
  init: ->
    @requires '2D,Tween,Delay'

    @explosionMode = window.Game.explosionMode
    if @explosionMode is 'block'
      @requires 'WebGL, Color'

  explode: (attr) ->
    radius = attr.radius ? 20
    duration = (attr.duration ? 160) / 1000
    @attr attr

    options =
      maxParticles: 3 * attr.radius
      size: attr.radius
      sizeRandom: 8
      speed: (attr.radius / 13)
      speedRandom: 0.5
      # Lifespan in frames
      lifeSpan: 19
      lifeSpanRandom: 7
      # Angle is calculated clockwise: 12pm is 0deg, 3pm is 90deg etc.
      angle: 0
      angleRandom: 360
      startColour: [235, 135, 5, 1]
      startColourRandom: [28, 150, 45, 0.2]
      endColour: [135, 135, 135, 0]
      endColourRandom: [60, 60, 60, 0.1]
      # Only applies when fastMode is off, specifies how sharp the gradients are drawn
      sharpness: 10
      sharpnessRandom: 10
      # Random spread from origin
      spread: attr.radius / 2
      # How many frames should this last
      duration: duration * Crafty.timer.FPS()
      #duration: -1
      # Will draw squares instead of circle gradients
      #fastMode: false
      fastMode: no
      gravity: { x: 0, y: 0 }
      # sensible values are 0-3
      jitter: 0
{'fraction_non_alphanumeric': 0.09431021044427124, 'fraction_numerical': 0.05845674201091192, 'mean_word_length': 2.2329974811083124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2133523', 'n_tokens_mistral': 968, 'n_tokens_neox': 806, 'n_words': 276}