Implement halflineheight endpoint value

master
sigonasr2 3 years ago
parent d1476ac35c
commit 96566c7ea0
  1. 1
      ngsplanner_patch.sql
  2. 3
      ngsplanner_schema.sql
  3. 4
      ngsplanner_seed.sql
  4. 2
      server.js

@ -10,3 +10,4 @@ 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");
alter table skill_tree_data add column halflineheight int;

@ -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");

@ -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);
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);

@ -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.
}

Loading…
Cancel
Save