summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-02-27 09:56:19 +0100
committernsensfel <SpamShield0@noot-noot.org>2018-02-27 09:56:19 +0100
commita7cb1de44bdbf4375fdfd459e9f92dca8bd2e3c5 (patch)
treed5bb5553f0d0cc134ff91674d9807bb4e2ca36f1
parent15b5f6fd53ce14ad9b4ae7dc4aec9877eb554bd4 (diff)
Switching weapons seem to work.
-rw-r--r--src/query/character_turn.erl5
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
)
),