mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Moved Captain's announcment out of equipping to spawning. Removed redundant satchel spawning things - they are being taken care of in job's equip()
This commit is contained in:
@@ -37,8 +37,6 @@ var/datum/announcement/minor/captain_announcement = new(do_newscast = 1)
|
|||||||
else
|
else
|
||||||
H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/ids(H.back), slot_in_backpack)
|
H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/ids(H.back), slot_in_backpack)
|
||||||
|
|
||||||
var/sound/announce_sound = (ticker.current_state <= GAME_STATE_SETTING_UP)? null : sound('sound/misc/boatswain.ogg', volume=20)
|
|
||||||
captain_announcement.Announce("All hands, Captain [H.real_name] on deck!", new_sound=announce_sound)
|
|
||||||
|
|
||||||
H.implant_loyalty(src)
|
H.implant_loyalty(src)
|
||||||
|
|
||||||
|
|||||||
@@ -468,38 +468,29 @@ var/global/datum/controller/occupations/job_master
|
|||||||
return H.Robotize()
|
return H.Robotize()
|
||||||
if("AI")
|
if("AI")
|
||||||
return H
|
return H
|
||||||
if("Clown") //don't need bag preference stuff!
|
if("Captain")
|
||||||
|
var/sound/announce_sound = (ticker.current_state <= GAME_STATE_SETTING_UP)? null : sound('sound/misc/boatswain.ogg', volume=20)
|
||||||
|
captain_announcement.Announce("All hands, Captain [H.real_name] on deck!", new_sound=announce_sound)
|
||||||
|
|
||||||
|
if(istype(H.back, /obj/item/weapon/storage))
|
||||||
|
new /obj/item/weapon/storage/box/survival(H.back)
|
||||||
|
else
|
||||||
|
H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/survival(H), slot_r_hand)
|
||||||
|
|
||||||
|
//Deferred item spawning.
|
||||||
|
if(spawn_in_storage && spawn_in_storage.len)
|
||||||
|
var/obj/item/weapon/storage/B
|
||||||
|
for(var/obj/item/weapon/storage/S in H.contents)
|
||||||
|
B = S
|
||||||
|
break
|
||||||
|
|
||||||
|
if(!isnull(B))
|
||||||
|
for(var/thing in spawn_in_storage)
|
||||||
|
H << "\blue Placing [thing] in your [B]!"
|
||||||
|
var/datum/gear/G = gear_datums[thing]
|
||||||
|
new G.path(B)
|
||||||
else
|
else
|
||||||
switch(H.backbag) //BS12 EDIT
|
H << "\red Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug."
|
||||||
if(1)
|
|
||||||
H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/survival(H), slot_r_hand)
|
|
||||||
if(2)
|
|
||||||
var/obj/item/weapon/storage/backpack/BPK = new/obj/item/weapon/storage/backpack(H)
|
|
||||||
new /obj/item/weapon/storage/box/survival(BPK)
|
|
||||||
H.equip_to_slot_or_del(BPK, slot_back,1)
|
|
||||||
if(3)
|
|
||||||
var/obj/item/weapon/storage/backpack/BPK = new/obj/item/weapon/storage/backpack/satchel_norm(H)
|
|
||||||
new /obj/item/weapon/storage/box/survival(BPK)
|
|
||||||
H.equip_to_slot_or_del(BPK, slot_back,1)
|
|
||||||
if(4)
|
|
||||||
var/obj/item/weapon/storage/backpack/BPK = new/obj/item/weapon/storage/backpack/satchel(H)
|
|
||||||
new /obj/item/weapon/storage/box/survival(BPK)
|
|
||||||
H.equip_to_slot_or_del(BPK, slot_back,1)
|
|
||||||
|
|
||||||
//Deferred item spawning.
|
|
||||||
if(spawn_in_storage && spawn_in_storage.len)
|
|
||||||
var/obj/item/weapon/storage/B
|
|
||||||
for(var/obj/item/weapon/storage/S in H.contents)
|
|
||||||
B = S
|
|
||||||
break
|
|
||||||
|
|
||||||
if(!isnull(B))
|
|
||||||
for(var/thing in spawn_in_storage)
|
|
||||||
H << "\blue Placing [thing] in your [B]!"
|
|
||||||
var/datum/gear/G = gear_datums[thing]
|
|
||||||
new G.path(B)
|
|
||||||
else
|
|
||||||
H << "\red Failed to locate a storage object on your mob, either you spawned with no arms and no backpack or this is a bug."
|
|
||||||
|
|
||||||
if(istype(H)) //give humans wheelchairs, if they need them.
|
if(istype(H)) //give humans wheelchairs, if they need them.
|
||||||
var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
|
var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
|
||||||
|
|||||||
Reference in New Issue
Block a user