Skip to content

Commit

Permalink
Make Hep give innate frail 1
Browse files Browse the repository at this point in the history
The god is a bit too strong right now; this seemed like the most
fun way to weaken it. (I don't want to make the ancestor much
weaker than they are at present, since it's not fun if the
ancestor is weak... though there's probably still some room to
manuever, there.) Easy to theme, too; powering your ancestor with
your life essence...

Frail 2 might be more dramatic? Not sure.
  • Loading branch information
PleasingFungus committed Aug 11, 2016
1 parent 39308c2 commit 80501f5
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 23 deletions.
32 changes: 17 additions & 15 deletions crawl-ref/source/dat/descript/gods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ afford. Fortunately, Gozag's worshippers are said to have the touch of gold.
Hepliaklqana

Hepliaklqana the Forgotten accepts the worship of those who would remember
their forebears, and fight alongside the greatest of them all. Hepliaklqana
demands only that followers explore and form new experiences; as they advance
in this service, they will find themselves able to shape and control their
ancestor's memory, eventually bringing them into the ranks of the mythical
heroes.
their forebears, and fight alongside the greatest of them all. Acolytes of
Hepliaklqana sacrifice a small part of their life essence to manifest their
ancestor into the world; as they explore and form new experiences, they will
find themselves able to shape and control their ancestor's memory, eventually
bringing them into the ranks of the mythical heroes.
%%%%
Jiyva

Expand Down Expand Up @@ -280,14 +280,15 @@ entire branches.
%%%%
Hepliaklqana powers

Hepliaklqana's worshippers are served by a guardian formed from their memories
of their greatest ancestor. This ancestor is at first remembered as they were
at the start of their fabled adventures, but will advance in skill as their
descendant does. Hepliaklqana always allows followers to recall their ancestor
to their side, and, even if the ancestor is destroyed, Hepliaklqana will call
it forth again not long after. Further advancement in Hepliaklqana's service
allows worshippers to restore and strengthen their ancestor, to swap them with
other creatures, and to choose how to remember their life's talents.
Hepliaklqana's worshippers are served by a guardian formed a part of their life
essence, in the shape of their greatest ancestor. This ancestor is at first
remembered as they were at the start of their fabled adventures, but will
advance in skill as their descendant does. Hepliaklqana always allows followers
to recall their ancestor to their side, and, even if the ancestor is destroyed,
Hepliaklqana will call it forth again not long after. Further advancement in
Hepliaklqana's service allows worshippers to restore and strengthen their
ancestor, to swap them with other creatures, and to choose how to remember
their life's talents.
%%%%
Jiyva powers

Expand Down Expand Up @@ -512,8 +513,9 @@ Hepliaklqana wrath
Hepliaklqana believes that the only reasonable punishment for turning one's
back on the path of memory is to be denied its use. All new experience is
denied to the unfortunate apostate, until Hepliaklqana decides they have
been punished enough. This will not be quick: unlike some, Hepliaklqana has
a long memory...
been punished enough. The life essence sacrificed to manifest an ancestor will
not be returned until Hepliaklqana is mollified, and this will not be quick:
unlike some, Hepliaklqana has a long memory.
%%%%
Gozag wrath

Expand Down
5 changes: 4 additions & 1 deletion crawl-ref/source/godpassive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,10 @@ static const vector<god_passive> god_passives[NUM_GODS] =
{ },

// Hepliaklqana
{ { 5, passive_t::transfer_drain, "drain nearby creatures when transferring your ancestor" }, },
{
{ -1, passive_t::frail, "GOD siphons a part of your essence into your ancestor" },
{ 5, passive_t::transfer_drain, "drain nearby creatures when transferring your ancestor" },
},
};

bool have_passive(passive_t passive)
Expand Down
3 changes: 3 additions & 0 deletions crawl-ref/source/godpassive.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ enum class passive_t

/// Hep's transfer drains enemies adjacent to the effect's target
transfer_drain,

/// Hep reduces your max HP
frail,
};

enum ru_interference
Expand Down
6 changes: 5 additions & 1 deletion crawl-ref/source/player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4138,12 +4138,16 @@ int get_real_hp(bool trans, bool rotted)
hitp *= 10 + species_hp_modifier(you.species);
hitp /= 10;

const bool hep_frail = have_passive(passive_t::frail)
|| player_under_penance(GOD_HEPLIAKLQANA);

// Mutations that increase HP by a percentage
hitp *= 100 + (player_mutation_level(MUT_ROBUST) * 10)
+ (you.attribute[ATTR_DIVINE_VIGOUR] * 5)
+ (player_mutation_level(MUT_RUGGED_BROWN_SCALES) ?
player_mutation_level(MUT_RUGGED_BROWN_SCALES) * 2 + 1 : 0)
- (player_mutation_level(MUT_FRAIL) * 10);
- (player_mutation_level(MUT_FRAIL) * 10)
- (hep_frail ? 10 : 0);

hitp /= 100;

Expand Down
21 changes: 15 additions & 6 deletions crawl-ref/source/religion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,18 @@ void dec_penance(god_type god, int val)
mi->del_ench(ENCH_AWAKEN_FOREST);
}
}
else if (god == GOD_PAKELLAS)
else
{
// Penance just ended w/o worshipping Pakellas;
// notify the player that MP regeneration will start again.
mprf(MSGCH_GOD, god, "You begin regenerating magic.");
if (god == GOD_PAKELLAS)
{
// Penance just ended w/o worshipping Pakellas;
// notify the player that MP regeneration will start again.
mprf(MSGCH_GOD, god, "You begin regenerating magic.");
} else if (god == GOD_HEPLIAKLQANA)
{
calc_hp(); // frailty ends
mprf(MSGCH_GOD, god, "Your full life essence returns.");
}
}
}
else if (god == GOD_NEMELEX_XOBEH && you.penance[god] > 100)
Expand Down Expand Up @@ -3398,11 +3405,13 @@ static void _join_hepliaklqana()
: GENDER_MALE;
}

calc_hp(); // adjust for frailty

// Complimentary ancestor upon joining.
const mgen_data mg = hepliaklqana_ancestor_gen_data();
delayed_monster(mg);
simple_god_message(make_stringf(" brings forth the memory of your ancestor,"
" %s!",
simple_god_message(make_stringf(" forms a fragment of your life essence"
" into the memory of your ancestor, %s!",
mg.mname.c_str()).c_str());
}

Expand Down

0 comments on commit 80501f5

Please sign in to comment.