Files
BattleBay_tool_v1.0/main.c
komiko44240BB bac423e90e Update main.c
2024-10-13 21:05:58 +02:00

34 lines
981 B
C

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include "ships.h"
#include "readobjects.h"
#include "readtraining.h"
#include "objects.h"
#include "perks.h"
#include "menu.h"
// Formula to calculate stat and combo stat : ( base stat + flat train stat + flat perk stat ) * ( 1 + % perk stat + % train stat ) * ( 1 + % combo train stat + % combo perk stat )
int main() {
/*int gear[5][2] = {{5,8},{3,4},{0,0},{0,0},{0,0}};
struct Ship* s = initialiseShip("defender",1.2,0.9,0.5,1596,5);
setUpShip(s,gear);
char* object_name= "swift_torpedo";
char* rarity = "legendary";
struct Object* o = readObjectFile(1,object_name,rarity);
bool isAdded = addOject(s,o);
if(!isAdded){
printf("Could not add objects, not enought slot points or slots\n");
}else{
printf("Object added sucesfuly\n");
}
addPerks(o);
printf("\n");
printLoadout(s);
printObject(o);*/
start();
return 0;
}