mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 12:05:28 +01:00
Transform overmap ship icons to exact angle of heading.
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
name = "spacecraft"
|
||||
desc = "This marker represents a spaceship. Scan it for more information."
|
||||
scanner_desc = "Unknown spacefaring vessel."
|
||||
dir = NORTH
|
||||
icon_state = "ship"
|
||||
appearance_flags = TILE_BOUND|KEEP_TOGETHER //VOREStation Edit
|
||||
var/moving_state = "ship_moving"
|
||||
|
||||
var/vessel_mass = 10000 //tonnes, arbitrary number, affects acceleration provided by engines
|
||||
@@ -163,11 +165,15 @@
|
||||
/obj/effect/overmap/visitable/ship/update_icon()
|
||||
if(!is_still())
|
||||
icon_state = moving_state
|
||||
dir = get_heading()
|
||||
transform = matrix().Turn(get_heading_degrees())
|
||||
else
|
||||
icon_state = initial(icon_state)
|
||||
transform = null
|
||||
..()
|
||||
|
||||
/obj/effect/overmap/visitable/ship/set_dir(new_dir)
|
||||
return ..(NORTH) // NO! We always face north.
|
||||
|
||||
/obj/effect/overmap/visitable/ship/proc/burn()
|
||||
for(var/datum/ship_engine/E in engines)
|
||||
. += E.burn()
|
||||
|
||||
Reference in New Issue
Block a user