Skip to content

Commit

Permalink
fixes everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Pockets-byte committed Aug 25, 2024
1 parent 6307cc6 commit 0bfeaeb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nsv13/code/modules/munitions/ship_weapons/_ship_weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@

// These variables only pertain to energy weapons, but need to be checked later in /proc/fire
var/charge = 0
var/heat = 0
var/charge_rate = 0 //How quickly do we charge?
var/charge_per_shot = 0 //How much power per shot do we have to use?

var/heat_per_shot = 0 //how much heat do we make per shot
var/heat_rate = 0 // how fast do we discharge heat
var/max_heat = 0 //how much heat before ::fun:: happens
var/overloaded = 0 //have we cooked ourself
/**
* Constructor for /obj/machinery/ship_weapon
* Attempts to link the weapon to an overmap ship.
Expand Down Expand Up @@ -521,6 +525,7 @@
local_fire()
overmap_fire(target)
charge -= charge_per_shot
heat += heat_per_shot
after_fire()
. = TRUE
if(shots > 1)
Expand Down

0 comments on commit 0bfeaeb

Please sign in to comment.