Commit graph

487 commits

Author SHA1 Message Date
41c031092e Update weapon_keys_controller.rb 2022-12-21 22:10:35 -08:00
89e666219a Update SearchController for blueprinter 2022-12-21 22:10:31 -08:00
9a27ac853d Update JobsController and JobSkillsController for blueprinter 2022-12-21 21:46:35 -08:00
349c42f839 Update blueprints to remove id field or identifier
This is built into ApiBlueprint
2022-12-21 21:07:26 -08:00
3b6edfae5d Update WeaponKey output for blueprinter 2022-12-21 21:04:42 -08:00
116ec9dbbc Refactor GridObjectControllers to use blueprinter 2022-12-21 20:53:48 -08:00
2a74b8aa4d Add minimal view to Party and use in GridObject 2022-12-21 20:53:34 -08:00
a15ba3c376 Correct ConflictBlueprint
ConflictBlueprint uses `options` to display arbitrary values, but I think those are only available behind conditional statements. This adds those statements and checks if the key that will be used exists on the hash.

ConflictBlueprint was also inheriting from ApiBlueprint which requires a real object (with an ID), so instead we inherit from Blueprinter::Base
2022-12-21 20:40:27 -08:00
747ffbc4ff Update GridObject blueprints with view 2022-12-21 20:39:17 -08:00
33775539cd Add ConflictBlueprint
This should be used for character conflicts (implemented) and weapon conflicts (to-do in a future PR)
2022-12-21 19:27:55 -08:00
bf04ddcbba Fix GridObject blueprints 2022-12-21 19:27:33 -08:00
979d28be75 Update party_blueprint.rb 2022-12-21 16:20:04 -08:00
af51869927 Fix build_conditions method
The method of assigning values was assigning nil if the value wasn't present in `params`, which is bad
2022-12-21 16:20:00 -08:00
5b37e480f8 Refactor FavoritesController for blueprinter 2022-12-21 16:10:53 -08:00
f86aa30791 GranblueError should not require input param 2022-12-21 15:50:06 -08:00
44e92733d3 Refactor RaidsController for blueprinter 2022-12-21 15:35:05 -08:00
290099e2f4 Refactor PartiesController for blueprinter
* Refactored and tried to simplify methods in PartiesController
* Implemented new error render methods in ApiController
* Removed parties/[weapons, summons, characters] routes
2022-12-21 15:34:54 -08:00
2fe8b8de1a Fix Rubocop warnings for arrays 2022-12-21 15:33:53 -08:00
e541182e36 Add all blueprints and associate with models 2022-12-21 03:31:55 -08:00
c102d68dd7 Update blueprinter.rb 2022-12-21 03:31:24 -08:00
a1ff18092d Create error_blueprint.rb 2022-12-21 01:20:55 -08:00
31e62e073c Create api_blueprint.rb 2022-12-21 01:20:13 -08:00
7720d5400f Configure Blueprinter 2022-12-21 01:17:04 -08:00
712c866296 Remove rabl 2022-12-21 01:16:34 -08:00
b584a523c6 Install blueprinter 2022-12-21 01:13:46 -08:00
464ea98d6d Add awakening output to templates 2022-12-21 00:49:44 -08:00
bb0e596e0d Add awakening boolean to canonical weapons 2022-12-21 00:48:18 -08:00
c14b2eac82 Add awakening to weapons and characters 2022-12-21 00:41:54 -08:00
c1716c1e4f Run RuboCop on everything
yolo
2022-12-21 00:22:47 -08:00
1fe1c1bb36 Update .gitignore 2022-12-20 23:50:44 -08:00
9e2f9c0af1 Fix job creation 2022-12-03 20:13:48 -08:00
16920c6373
Merge pull request #16 from jedmund/job-skills
Implement job skills
2022-12-03 19:14:29 -08:00
a8301019f5 Fix search for base skills
Before they didn't really show up at all, then they showed up on everything, then they showed up on EX1 and EX2, now they only show up on EX2.
2022-12-03 18:34:38 -08:00
fc7cde4c5a Fix race condition for base skill mismatch check 2022-12-03 18:21:15 -08:00
a08421722f Add GranblueError and move app errors to extend it 2022-12-03 18:21:01 -08:00
6ba5335668 Fix last bugs around adding skills with 0~3 existing 2022-12-03 16:39:38 -08:00
813c2ba202 Fix bug regarding finding old_position 2022-12-03 14:51:01 -08:00
243ba2de3e Fix bug when desired position is empty 2022-12-03 14:10:18 -08:00
27d31d61c0 Fix race condition 2022-12-03 13:55:41 -08:00
b93d0dd366 Update routes.rb 2022-12-03 13:45:34 -08:00
ec3b42101b Move logic to JobsController
It was getting too heavy to keep in PartiesController
2022-12-03 11:45:00 -08:00
bd33ee44fc Update Job model to reference base_job 2022-12-03 11:44:09 -08:00
4ee90f6c09 Add new errors and fix handling in ApiController 2022-12-03 11:43:56 -08:00
b1c6930121 Add base_job so we can track base skills 2022-12-03 11:43:27 -08:00
5c9a2b8d7a Refactor job skill assignment a bit 2022-12-02 20:46:51 -08:00
f6613d6e91 Add TooManySkillsOfTypeError 2022-12-02 20:45:46 -08:00
644ffd74e5 Added logic for swapping and replacing job skills 2022-12-02 11:20:43 -08:00
d1eba7aed8 Add == and update search 2022-12-02 11:20:22 -08:00
aa5d2451a8 Add skill uniqueness validation to Party 2022-12-02 11:20:11 -08:00
741d20aa70 Send job and skills when party is updated 2022-12-01 04:47:31 -08:00