Adjuste data to BDD

This commit is contained in:
VAILLANT Jeremy
2021-05-14 22:15:00 +02:00
parent ca7787d43d
commit 39b91ea3ed
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -11,14 +11,7 @@ func _set_data(value, id, type):
return value return value
func _get_data_id(prop_name, index): 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: if table.get_prop_at(index).get_prop_name() == prop_name:
print("[mbase#_get_data_id] : find prop with ID ") return table.get_prop_at(index).get_prop_id()
var id = table.get_prop_at(index).get_prop_id()
print("[mbase#_get_data_id] : "+String(id))
return id
else: else:
return null return null
+1 -1
View File
@@ -30,7 +30,7 @@
{"name":"level","type":"table","table_name":"levels","auto_increment":"0"}, {"name":"level","type":"table","table_name":"levels","auto_increment":"0"},
{"name":"mesh","type":"3","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"]
} }
] ]
} }