Skip to content

Commit

Permalink
feat: ship-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Blogaugis committed Feb 25, 2025
1 parent 57230a1 commit 36b20a7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
22 changes: 22 additions & 0 deletions objects/obj_al_ship/Alarm_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,28 @@ if (class=="Iconoclast"){
weapon_dam[1]=8;
weapon_range[1]=300;
weapon_cooldown[1]=30;
}else
if (class=="Q-ship"){
sprite_index=spr_ship_stri;
ship_size=2;
name="";
hp=300;
maxhp=300;
conditions="";
shields=100;
maxshields=100;
leadership=80;
armour_front=3;
armour_other=2;
weapons=1;
turrets=2;
capacity=150;
carrying=0;
weapon[1]="Weapons Battery";
weapon_facing[1]="most";
weapon_dam[1]=8;
weapon_range[1]=300;
weapon_cooldown[1]=30;
}
// Tyranids
if (class=="Leviathan"){
Expand Down
1 change: 1 addition & 0 deletions objects/obj_bomb_select/Mouse_56.gml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ if (__b__){
if (ship_all[i]==1){
if (obj_ini.ship_class[ship_ide[i]]=="Battle Barge") then bomb_score+=3;
if (obj_ini.ship_class[ship_ide[i]]=="Strike Cruiser") then bomb_score+=1;
// if (obj_ini.ship_class[ship_ide[i]]=="Q-ship") then bomb_score+=1;
}
}

Expand Down
8 changes: 8 additions & 0 deletions objects/obj_p_ship/Alarm_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ if (class="Gloriana"){
weapon_cooldown[2]=60;
}

if (class="Q-ship"){turrets=2;
weapons=1;shield_size=1;sprite_index=spr_ship_stri;
weapon_facing[1]="most";
weapon_dam[1]=8;
weapon_range[1]=300;
weapon_cooldown[1]=30;
}

if (class="Gladius"){turrets=1;
weapons=2;shield_size=1;sprite_index=spr_ship_glad;
weapon_facing[1]="most";
Expand Down
4 changes: 2 additions & 2 deletions objects/obj_p_ship/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if (hp<=0) and (x>-5000){
obj_fleet.capital-=1;
obj_fleet.capital_lost+=1;
}
if (class="Strike Cruiser"){
if (class="Strike Cruiser") or (class="Q-ship"){
obj_fleet.frigate-=1;
obj_fleet.frigate_lost+=1;
}
Expand Down Expand Up @@ -86,7 +86,7 @@ if (hp>0) and (instance_exists(target)){
o_dist=64;
action="broadside";
}
else if (class="Battle Barge") or (class="Strike Cruiser"){
else if (class="Battle Barge") or (class="Strike Cruiser") or (class="Q-ship"){
o_dist=300;
action="attack";
}
Expand Down
5 changes: 5 additions & 0 deletions objects/obj_shop/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,11 @@ if (shop = "warships") {
item_cost[i] = 0;
}
i += 1;
item[i] = "Q-ship";
item_stocked[i] = scr_ship_count(item[i]);
nobuy[i] = 1;
// forge_cost[i] = 10000;
i += 1;
item[i] = "Gladius";
item_stocked[i] = scr_ship_count(item[i]);
item_cost[i] = 2250;
Expand Down

0 comments on commit 36b20a7

Please sign in to comment.