Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds codex for CAS rockets #837

Merged
merged 12 commits into from
Dec 17, 2024
27 changes: 27 additions & 0 deletions code/modules/codex/entries/cas_ammo_codex.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/obj/structure/ship_ammo/get_mechanics_info()
. = ..()

. += "<br>--------------COMBAT INFORMATION-------------------------"

if(travelling_time)
var/timetohit = travelling_time * 0.1
. += "Time to drop = [timetohit] seconds.<br>"

if(explosion_power)
. += "The force of the explosion = [explosion_power].<br>"

if(explosion_falloff)
. += "Explosion will lose [explosion_falloff] power per turf.<br>"

var/prediction_type_string
switch(prediction_type)
if(CAS_AMMO_EXPLOSIVE)
prediction_type_string = "Explosive"
. += "Ammo type = [prediction_type_string] rocket.<br>"
if(CAS_AMMO_INCENDIARY)
prediction_type_string = "Incendiary"
. += "Ammo type = [prediction_type_string] rocket.<br>"
. += "Radius of fire = [fire_range] tiles.<br>"
if(CAS_AMMO_HARMLESS)
prediction_type_string = "Harmless"
. += "Ammo type = [prediction_type_string] rocket. It's do nothing.<br>"
LoneAsket marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions tgmc.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,7 @@
#include "code\modules\codex\entries\_codex_entry.dm"
#include "code\modules\codex\entries\ammunition_codex.dm"
#include "code\modules\codex\entries\atmospherics_codex.dm"
#include "code\modules\codex\entries\cas_ammo_codex.dm"
#include "code\modules\codex\entries\clothing_codex.dm"
#include "code\modules\codex\entries\engineering_codex.dm"
#include "code\modules\codex\entries\faction_codex.dm"
Expand Down
Loading