From 37b6e2ece1574536aec3e9e9ab58618d3c55e1c9 Mon Sep 17 00:00:00 2001 From: VAILLANT Jeremy Date: Fri, 14 May 2021 22:15:00 +0200 Subject: [PATCH] Adjuste data to BDD --- db/MBase.gd | 9 +-------- db/ahog.json | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/db/MBase.gd b/db/MBase.gd index 8c2110d..0018d15 100644 --- a/db/MBase.gd +++ b/db/MBase.gd @@ -11,14 +11,7 @@ func _set_data(value, id, type): return value func _get_data_id(prop_name, index): - print("[mbase#_get_data_id] : prop_name : "+String(prop_name)) - print("[mbase#_get_data_id] : index : "+String(index)) - if table.get_prop_at(index).get_prop_name() == prop_name: - print("[mbase#_get_data_id] : find prop with ID ") - var id = table.get_prop_at(index).get_prop_id() - - print("[mbase#_get_data_id] : "+String(id)) - return id + return table.get_prop_at(index).get_prop_id() else: return null diff --git a/db/ahog.json b/db/ahog.json index b3e8492..6d78bd5 100644 --- a/db/ahog.json +++ b/db/ahog.json @@ -30,7 +30,7 @@ {"name":"level","type":"table","table_name":"levels","auto_increment":"0"}, {"name":"mesh","type":"3","auto_increment":"0"} ], - "data":["0.0","True","Dagger","0","dagger","0","sm_dagger","0.0","0","Fiole","9649","fiole1","0","fioles/sm_fiole1","1.8","0","Fiole","0","fiole2","0","fioles/sm_fiole2","0.0","0","Fiole","0","fiole3","0","fioles/sm_fiole_socle/sm_fiole3","0.0","0","Spyglass","0","spyglass","0","sm_spyglass","0.0","0","Coins","0","coin1","0","golds/sm_stackgold_1","0.0","0","Coins","0","coin2","0","golds/sm_stackgold_2","0.0","0","Coins","0","coin3","0","golds/sm_stackgold_3","0.0","0","Weapon Gun","0","weapon","0","sm_weapon_gun","0.0","0","Apple","0","apple1","0","apples/sm_apple_1","0.0","0","Apple","0","apple2","0","apples/sm_apple_2","0.0","0","Apple","0","apple3","0","apples/sm_apple_3","0.0","0","Apple","0","apple4","0","apples/sm_apple_4","0.0","0","Beer","0","beer","0","sm_pinte_beer","0.0","0","SuperDager","0","gadder","1","sm_super_dager"] + "data":["0.0","True","Dagger","0","dagger","0","dagger","0.0","0","Fiole","28391","fiole1","0","fioles/fiole1","1.42","0","Fiole","0","fiole2","0","fioles/fiole2","0.0","0","Fiole","0","fiole3","0","fioles/fiole_socle/fiole3","0.0","0","Spyglass","0","spyglass","0","spyglass","0.0","0","Coins","0","coin1","0","golds/coin1","0.0","0","Coins","0","coin2","0","golds/coin2","0.0","0","Coins","0","coin3","0","golds/coin3","0.0","0","Weapon Gun","0","weapon","0","weapon","0.0","0","Apple","0","apple1","0","apples/apple1","0.0","0","Apple","0","apple2","0","apples/apple2","0.0","0","Apple","0","apple3","0","apples/apple3","0.0","0","Apple","0","apple4","0","apples/apple4","0.0","0","Beer","0","beer","0","beer","0.0","0","SuperDager","0","gadder","1","sm_super_dager"] } ] } \ No newline at end of file