fix: Draugh Ashlands meats, rebindable flight keys, Geisli on gamepad
Draugh: add AsksvinMeat and BoneMawSerpentMeat to the shared raw-to-cooked table; the Aswid blood refinery no longer adds them on its own copy. DirectedFlight (drake, bat): read ZInput Forward/Backward/Run instead of raw W, S and Shift, so keys rebound in the settings work. Geisli: the pad has no free button in vanilla's Classic layout, so the beam is held on the pad's secondary attack, bare-handed or in the Archon form, as Skadi's Cold Spell does. The unarmed kick is swallowed while it fires. RaceInput.EmptyHanded is shared with Skadi. Compendium text mentions the pad in English, Italian and Russian.
This commit is contained in:
parent
b9ec452e72
commit
db9aac2bf6
9 changed files with 55 additions and 18 deletions
|
|
@ -167,6 +167,19 @@ namespace RacesOfValheim
|
|||
return Input.GetMouseButtonDown(mouseButton) || PadAttackDown(mouseButton);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Nothing in either hand and not building. The pad has no spare button, so a race power
|
||||
/// that needs one borrows the secondary attack under this condition only: with a weapon or
|
||||
/// a tool in hand that button stays the item's, as in vanilla.
|
||||
/// </summary>
|
||||
public static bool EmptyHanded(Player player)
|
||||
{
|
||||
if (player == null || player.InPlaceMode()) return false;
|
||||
var hands = Traverse.Create(player);
|
||||
return hands.Field<ItemDrop.ItemData>("m_rightItem").Value == null &&
|
||||
hands.Field<ItemDrop.ItemData>("m_leftItem").Value == null;
|
||||
}
|
||||
|
||||
/// <summary>Held-down counterpart of <see cref="AttackDown"/>.</summary>
|
||||
public static bool AttackHeld(int mouseButton)
|
||||
{
|
||||
|
|
@ -202,7 +215,7 @@ namespace RacesOfValheim
|
|||
private static bool loggedOpen;
|
||||
private static bool loggedClosed;
|
||||
|
||||
private static bool RadialOpen
|
||||
internal static bool RadialOpen
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue