Skip to content

Commit

Permalink
Adds codex for CAS rockets (#837)
Browse files Browse the repository at this point in the history
* QOLCAS

* fix

* fix

* fix_space

* Update code/modules/codex/entries/cas_ammo_codex.dm

Co-authored-by: Helg2 <[email protected]>
Signed-off-by: LoneAsket <[email protected]>

* fix_comments

* Update code/modules/codex/entries/cas_ammo_codex.dm

Co-authored-by: Helg2 <[email protected]>
Signed-off-by: LoneAsket <[email protected]>

* Update code/modules/codex/entries/cas_ammo_codex.dm

Co-authored-by: Helg2 <[email protected]>
Signed-off-by: LoneAsket <[email protected]>

* Update code/modules/codex/entries/cas_ammo_codex.dm

Co-authored-by: Helg2 <[email protected]>
Signed-off-by: LoneAsket <[email protected]>

---------

Signed-off-by: LoneAsket <[email protected]>
Co-authored-by: Helg2 <[email protected]>
  • Loading branch information
LoneAsket and Helg2 authored Dec 17, 2024
1 parent a3ee755 commit 6736e8b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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 doesn't deal any damage.<br>"
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

0 comments on commit 6736e8b

Please sign in to comment.