Skip to content

Commit

Permalink
Draw energy tech: Flame mages get bonus energy for being near lava, i…
Browse files Browse the repository at this point in the history
…ce mages for being near ice. Instead of the usual 5 energy, they get 4d6 for each time they draw from one of these squares.
  • Loading branch information
elunna committed Oct 29, 2023
1 parent 5d0351b commit 3699a40
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/tech.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,13 +1749,19 @@ draw_energy(VOID_ARGS)
break;
case CLOUD: /* Air */
case TREE: /* Earth */
case LAVAPOOL: /* Fire */
case ICE: /* Water - most ordered form */
powbonus = 5;
break;
case AIR:
case LAVAPOOL: /* Fire */
if (Role_if(PM_FLAME_MAGE))
powbonus = d(4, 6);
break;
case ICE:
if (Role_if(PM_ICE_MAGE))
powbonus = d(4, 6);
break;
case AIR: /* Air */
case MOAT: /* Doesn't freeze */
case WATER:
case WATER: /* Water - most ordered form */
powbonus = 4;
break;
case POOL: /* Can dry up */
Expand All @@ -1778,10 +1784,9 @@ draw_energy(VOID_ARGS)
powbonus = -2;
break;
case GRAVE:
if (Role_if(PM_NECROMANCER)) {
if (Role_if(PM_NECROMANCER))
powbonus = (u.uenmax > 36 ? u.uenmax / 6 : 6);
break;
}
break;
/* FALLTHROUGH */
case DEADTREE:
powbonus = -4;
Expand Down

0 comments on commit 3699a40

Please sign in to comment.