Skip to content

Commit

Permalink
Dwarves come in groups of 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Loobinex committed Nov 24, 2024
1 parent 7ba40ed commit 5775727
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/fxdata/magic.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2051,14 +2051,14 @@ PanelTabIndex = 17
SoundSamples = 0
SoundPlayed = 0
Cooldown = 35
Power = 0 0 0 0 0 0 0 0 0 0
Cost = 150 150 150 150 150 150 150 150 150
Power = 0 1 2 3 4 5 6 7 8 9
Cost = 700 770 840 910 980 1040 1110 1180 1220
Castability = OWNED_GROUND NEEDS_DELAY
Artifact = SPELLBOOK_TUNLR
Properties =
PlayerState = PLAYER_STATE_CREATEGOODDIGGER
ParentPower = NOPOWER
CastExpandFunc = do_not_expand
CastExpandFunc = general_expand
UseFunction = magic_use_power_tunneller
CreatureType = TUNNELLER

Expand Down
1 change: 1 addition & 0 deletions src/config_magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ enum PowerKinds {
PwrK_SLOW, // 25
PwrK_FLIGHT,
PwrK_VISION,
PwrK_MKTUNNELLER,
};

/** Contains properties of a shot model, to be stored in ShotConfigStats.
Expand Down
3 changes: 2 additions & 1 deletion src/magic.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ GoldAmount compute_power_price(PlayerNumber plyr_idx, PowerKind pwkind, long pwl
case PwrK_MKTUNNELLER:
dungeon = get_players_num_dungeon(plyr_idx);
powerst = get_power_model_stats(pwkind);
price = compute_power_price_scaled_with_amount(plyr_idx, pwkind, pwlevel, dungeon->owned_creatures_of_model[powerst->creature_model]);
amount = (dungeon->owned_creatures_of_model[powerst->creature_model] / 7); //Dwarves come in pairs of 7
price = compute_power_price_scaled_with_amount(plyr_idx, pwkind, pwlevel, amount);
break;
default:
pwrdynst = get_power_dynamic_stats(pwkind);
Expand Down

0 comments on commit 5775727

Please sign in to comment.