From 96566c7ea0dd7e3bfc49e5bcc5e45232c0e06ab8 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Mon, 16 Aug 2021 09:34:14 -0500 Subject: [PATCH] Implement halflineheight endpoint value --- ngsplanner_patch.sql | 3 ++- ngsplanner_schema.sql | 3 ++- ngsplanner_seed.sql | 4 ++-- server.js | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ngsplanner_patch.sql b/ngsplanner_patch.sql index 1a468f8..e301b48 100644 --- a/ngsplanner_patch.sql +++ b/ngsplanner_patch.sql @@ -9,4 +9,5 @@ alter table photon_art add column icon text; alter table users add column recovery_hash text; alter table armor rename column pb_gauge_build to slot; CREATE TABLE "skill_tree_data"("id" SERIAL UNIQUE PRIMARY KEY,"class_id" int,"data" text,"skill_data" text,"line_color" text,"line_width" int,"gridsizex" int,"gridsizey" int,"gridpaddingx" int,"gridpaddingy" int); -ALTER TABLE "skill_tree_data" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id"); \ No newline at end of file +ALTER TABLE "skill_tree_data" ADD FOREIGN KEY ("class_id") REFERENCES "class" ("id"); +alter table skill_tree_data add column halflineheight int; \ No newline at end of file diff --git a/ngsplanner_schema.sql b/ngsplanner_schema.sql index 55e9a0d..c9f0b40 100644 --- a/ngsplanner_schema.sql +++ b/ngsplanner_schema.sql @@ -316,7 +316,8 @@ CREATE TABLE "skill_tree_data" ( "gridsizex" int, "gridsizey" int, "gridpaddingx" int, - "gridpaddingy" int + "gridpaddingy" int, + "halflineheight" int ); ALTER TABLE "builds" ADD FOREIGN KEY ("users_id") REFERENCES "users" ("id"); diff --git a/ngsplanner_seed.sql b/ngsplanner_seed.sql index b470bba..c22a6cb 100644 --- a/ngsplanner_seed.sql +++ b/ngsplanner_seed.sql @@ -276,5 +276,5 @@ insert into class_skill_data(name,class_skill_id,dependency,level,effect,duratio insert into class_skill_data(name,class_skill_id,dependency,level,effect,duration,cooldown,damage_taken,pa_potency,conditional_buff,pp_recovery,property,all_damage_buff,active_pp_recovery,status_ailment_accum,status_ailment_duration,pp_consumption,max_hp_decrease,natural_pp_recovery,added_pp,pb_gauge_fortification) values('Assault Charge Advent',(SELECT id from class_skill WHERE name='Assault Charge Advent' limit 1),'',1,'Effect Name',30,24,1.0,1.1,false,0.8,'',0,0,0,0,0,0,0.6,0,0); -insert into skill_tree_data(class_id,data,skill_data,line_color,line_width,gridsizex,gridsizey,gridpaddingx,gridpaddingy) - values((select id from class where name='Hunter'),'□ □ ,└□─┘□□, │ ││, │ □│, □─□┼□, □ ','','#000000',3,80,60,10,10); \ No newline at end of file +insert into skill_tree_data(class_id,data,skill_data,line_color,line_width,gridsizex,gridsizey,gridpaddingx,gridpaddingy,halflineheight) + values((select id from class where name='Hunter'),'□ □ ,└□─┘□□, │ ││, │ □│, □─□┼□, □ ','','#000000',3,80,60,10,10,60); \ No newline at end of file diff --git a/server.js b/server.js index 361206f..a3ff977 100644 --- a/server.js +++ b/server.js @@ -223,7 +223,7 @@ const ENDPOINTDATA=[ }, { endpoint:"skill_tree_data", - requiredfields:["class_id","data","skill_data","line_color","line_width","gridsizex","gridsizey","gridpaddingx","gridpaddingy"], + requiredfields:["class_id","data","skill_data","line_color","line_width","gridsizex","gridsizey","gridpaddingx","gridpaddingy","halflineheight"], optionalfields:[], excludedfields:[] //Fields to not output in GET. }