mirror of
https://github.com/komiko44240BB/BattleBay_tool_v1.0.git
synced 2026-01-18 16:27:29 +01:00
34 lines
981 B
C
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;
|
|
} |