Regeneration

From Caves of Qud Wiki
Revision as of 18:49, 18 August 2019 by Teamtoto (talk | contribs) (Created page with "{{Mutation | title = {{PAGENAME}} | image = none | type = Physical | cost = 5 | id = Regeneration | code = bt | desc = Your wounds heal very quickly. Increased natural healin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Regeneration
Category

Physical

Cost

5

ID?Use this ID to wish for the mutation
(example: mutation:Regeneration)

Regeneration

Reality DistortingReality distorting mutations
cannot be used under
the effects of normality.

no

Regeneration

Your wounds heal very quickly.

Increased natural healing rate
Severed limbs regrow over time

Regenerating Limbs

This article has information that is missing or not up to par.
Reason: My brain's too brain dead for this. Figure out what this means later
...
public int nNextLimb = 5000;
...
 if (E.ID == "Regenerating")
      {
        ++this.nRegrowCount;
        if (this.nRegrowCount >= this.nNextLimb)
        {
          this.nRegrowCount = 0;
          this.nNextLimb = 5000 - 400 * this.Level + Stat.Roll("1d" + ((11 - Math.Min(this.Level, 10)) * 1000).ToString());
          this.ParentObject.FireEvent(Event.New("RegenerateLimb", 0, 0, 0));
        }
        E.AddParameter("Amount", E.GetIntParameter("Amount") + (20 + this.Level * 4));
        return true;
      }