mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
ID card photos are now created irrespective of character direction at time of spawn. (#13213)
This commit is contained in:
@@ -640,7 +640,7 @@ proc/ColorTone(rgb, tone)
|
||||
/// appearance system (overlays/underlays, etc.) is not available.
|
||||
///
|
||||
/// Only the first argument is required.
|
||||
/proc/getFlatIcon(image/A, defdir, deficon, defstate, defblend, start = TRUE, no_anim = FALSE)
|
||||
/proc/getFlatIcon(image/A, defdir, deficon, defstate, defblend, start = TRUE, no_anim = FALSE, ignore_parent_dir = FALSE)
|
||||
//Define... defines.
|
||||
var/static/icon/flat_template = icon('icons/effects/effects.dmi', "nothing")
|
||||
|
||||
@@ -701,7 +701,7 @@ proc/ColorTone(rgb, tone)
|
||||
var/base_icon_dir //We'll use this to get the icon state to display if not null BUT NOT pass it to overlays as the dir we have
|
||||
|
||||
//These should use the parent's direction (most likely)
|
||||
if(!A.dir || A.dir == SOUTH)
|
||||
if(!A.dir || A.dir == SOUTH || ignore_parent_dir)
|
||||
curdir = defdir
|
||||
else
|
||||
curdir = A.dir
|
||||
|
||||
@@ -151,9 +151,9 @@ var/const/NO_EMAG_ACT = -50
|
||||
chat_user.username = chat_user.generateUsernameIdCard(src)
|
||||
|
||||
/obj/item/card/id/proc/set_id_photo(var/mob/M)
|
||||
front = getFlatIcon(M, SOUTH)
|
||||
front = getFlatIcon(M, SOUTH, ignore_parent_dir = TRUE)
|
||||
front.Scale(128, 128)
|
||||
side = getFlatIcon(M, WEST)
|
||||
side = getFlatIcon(M, WEST, ignore_parent_dir = TRUE)
|
||||
side.Scale(128, 128)
|
||||
|
||||
/mob/proc/set_id_info(var/obj/item/card/id/id_card)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: mikomyazaki
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "ID card photos will now face the correct directions instead of both being of the direction your character was facing when your ID card spawned."
|
||||
Reference in New Issue
Block a user