summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-02-27 09:56:19 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-02-27 09:56:19 +0100 |
commit | a7cb1de44bdbf4375fdfd459e9f92dca8bd2e3c5 (patch) | |
tree | d5bb5553f0d0cc134ff91674d9807bb4e2ca36f1 /src | |
parent | 15b5f6fd53ce14ad9b4ae7dc4aec9877eb554bd4 (diff) |
Switching weapons seem to work.
Diffstat (limited to 'src')
-rw-r--r-- | src/query/character_turn.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/query/character_turn.erl b/src/query/character_turn.erl index b3af73d..d8fe694 100644 --- a/src/query/character_turn.erl +++ b/src/query/character_turn.erl @@ -172,7 +172,7 @@ handle_character_instance_switching_weapons (QueryState, Input) -> ControlledCharacterAttributes = character:get_attributes(ControlledCharacter), {PrimaryWeapon, SecondaryWeapon} = - character:get_weapons(ControlledCharacter), + character:get_weapon_ids(ControlledCharacter), ControlledCharacterIX = Input#input.character_instance_ix, UpdatedWeapons = {SecondaryWeapon, PrimaryWeapon}, @@ -186,8 +186,9 @@ handle_character_instance_switching_weapons (QueryState, Input) -> character:set_statistics ( UpdatedControlledCharacterStatistics, - character:set_weapons + character:set_weapon_ids ( + UpdatedWeapons, ControlledCharacter ) ), |