diff --git a/code/modules/codex/entries/cas_ammo_codex.dm b/code/modules/codex/entries/cas_ammo_codex.dm new file mode 100644 index 00000000000..8daa13925e4 --- /dev/null +++ b/code/modules/codex/entries/cas_ammo_codex.dm @@ -0,0 +1,27 @@ +/obj/structure/ship_ammo/get_mechanics_info() + . = ..() + + . += "
--------------COMBAT INFORMATION-------------------------" + + if(travelling_time) + var/timetohit = travelling_time * 0.1 + . += "Time to drop = [timetohit] seconds.
" + + if(explosion_power) + . += "The force of the explosion = [explosion_power].
" + + if(explosion_falloff) + . += "Explosion will lose [explosion_falloff] power per turf.
" + + var/prediction_type_string + switch(prediction_type) + if(CAS_AMMO_EXPLOSIVE) + prediction_type_string = "Explosive" + . += "Ammo type = [prediction_type_string] rocket.
" + if(CAS_AMMO_INCENDIARY) + prediction_type_string = "Incendiary" + . += "Ammo type = [prediction_type_string] rocket.
" + . += "Radius of fire = [fire_range] tiles.
" + if(CAS_AMMO_HARMLESS) + prediction_type_string = "Harmless" + . += "Ammo type = [prediction_type_string] rocket. It doesn't deal any damage.
" diff --git a/tgmc.dme b/tgmc.dme index 3419d877925..de70c70aecb 100644 --- a/tgmc.dme +++ b/tgmc.dme @@ -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"