DEADSOFTWARE

Add use item actions module
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / GameItems.java
index a5d6c23f716681c78acf0d34f923d6fedbbaf3b0..079f4855d88465aebea7b60091b06e773d3ac328 100644 (file)
@@ -197,12 +197,14 @@ public class GameItems {
 
                 int id = Assets.getIntFromJson(item, "id", count);
 
+                String actionKey = Assets.getStringFromJson(item, "action_key", null);
+
                 if (count >= id) {
                     count++;
                 }
 
                 itemsIds.put(key, id);
-                itemsSet.add(new Item(id, key, name, type, sprite, origin));
+                itemsSet.add(new Item(id, key, name, type, sprite, origin, actionKey));
             } catch (GdxRuntimeException e) {
                 Gdx.app.error(TAG, e.getMessage());
             }