mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
Moved custom_synthetic.dmi into a proper define.
This commit is contained in:
@@ -278,7 +278,7 @@ var/list/ai_verbs_default = list(
|
|||||||
|
|
||||||
if(Entry[1] == src.ckey && Entry[2] == src.real_name)
|
if(Entry[1] == src.ckey && Entry[2] == src.real_name)
|
||||||
custom_sprite = 1 //They're in the list? Custom sprite time
|
custom_sprite = 1 //They're in the list? Custom sprite time
|
||||||
icon = 'icons/mob/custom-synthetic.dmi'
|
icon = CUSTOM_ITEM_ROBOT
|
||||||
|
|
||||||
//if(icon_state == initial(icon_state))
|
//if(icon_state == initial(icon_state))
|
||||||
var/icontype = ""
|
var/icontype = ""
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
//list(ckey = real_name,)
|
//list(ckey = real_name,)
|
||||||
//Since the ckey is used as the icon_state, the current system will only permit a single custom robot sprite per ckey.
|
//Since the ckey is used as the icon_state, the current system will only permit a single custom robot sprite per ckey.
|
||||||
//While it might be possible for a ckey to use that custom sprite for several real_names, it seems rather pointless to support it.
|
//While it might be possible for a ckey to use that custom sprite for several real_names, it seems rather pointless to support it.
|
||||||
var/list/robot_custom_icons
|
var/list/robot_custom_icons
|
||||||
@@ -14,10 +14,10 @@ var/list/robot_custom_icons
|
|||||||
var/split_idx = findtext(line, "-") //this works if ckey cannot contain dashes, and findtext starts from the beginning
|
var/split_idx = findtext(line, "-") //this works if ckey cannot contain dashes, and findtext starts from the beginning
|
||||||
if(!split_idx || split_idx == length(line))
|
if(!split_idx || split_idx == length(line))
|
||||||
continue //bad entry
|
continue //bad entry
|
||||||
|
|
||||||
var/ckey = copytext(line, 1, split_idx)
|
var/ckey = copytext(line, 1, split_idx)
|
||||||
var/real_name = copytext(line, split_idx+1)
|
var/real_name = copytext(line, split_idx+1)
|
||||||
|
|
||||||
robot_custom_icons[ckey] = real_name
|
robot_custom_icons[ckey] = real_name
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
@@ -25,6 +25,6 @@ var/list/robot_custom_icons
|
|||||||
var/rname = robot_custom_icons[ckey]
|
var/rname = robot_custom_icons[ckey]
|
||||||
if(rname && rname == real_name)
|
if(rname && rname == real_name)
|
||||||
custom_sprite = 1
|
custom_sprite = 1
|
||||||
icon = 'icons/mob/custom-synthetic.dmi'
|
icon = CUSTOM_ITEM_ROBOT
|
||||||
if(icon_state == "robot")
|
if(icon_state == "robot")
|
||||||
icon_state = "[ckey]-Standard"
|
icon_state = "[ckey]-Standard"
|
||||||
|
|||||||
@@ -977,6 +977,9 @@ var/list/be_special_flags = list(
|
|||||||
#ifndef CUSTOM_ITEM_MOB
|
#ifndef CUSTOM_ITEM_MOB
|
||||||
#define CUSTOM_ITEM_MOB 'icons/mob/custom_items_mob.dmi'
|
#define CUSTOM_ITEM_MOB 'icons/mob/custom_items_mob.dmi'
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef CUSTOM_ITEM_ROBOT
|
||||||
|
#define CUSTOM_ITEM_ROBOT 'icons/mob/custom_synthetic.dmi'
|
||||||
|
#endif
|
||||||
|
|
||||||
//default item on-mob icons
|
//default item on-mob icons
|
||||||
#define INV_HEAD_DEF_ICON 'icons/mob/head.dmi'
|
#define INV_HEAD_DEF_ICON 'icons/mob/head.dmi'
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 294 KiB |
0
icons/mob/custom_synthetic.dmi
Normal file
0
icons/mob/custom_synthetic.dmi
Normal file
Reference in New Issue
Block a user