MODの作り方/Prototype/Entity/EntityWithHealth

Last-modified: 2016-05-31 (火) 20:00:07
Version0.12.34現在の情報です

EntityWithHealth

HPを持つentityの共通の値

  • max_health
    最大hp
    type:float
  • healing_per_tick
    1tickごとの自然回復hp
    type:float
  • dying_explosion
    不明
  • loot
    entityが死んだときに落とすitem
    type:LootSpecification
    例:
    loot =
    {
      {
        count_max = 10,
        count_min = 2,
        item = "alien-artifact",
        probability = 1
        }
     }
  • resistances
    耐性
    type:Resistances
    例:
    resistances =
    {
      {
        type = "physical",
        decrease = 10,
        percent = 60
      }
    }
  • attack_reaction
    type:(英語wikiに丸投げ)AttackReaction
    default:Empty
  • corpse
    エンティティの名前を指定して死体を設置
    type:EntityName
    default:Empty