Skip to content

Commit

Permalink
[MIRROR] New Cleanbot and Bucket sprites (No GAGS) [MDB IGNORE] (#255…
Browse files Browse the repository at this point in the history
…46) (#1066)

* New Cleanbot and Bucket sprites (No GAGS) (#80205)

* New Cleanbot and Bucket sprites (No GAGS)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Andrew <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent 46bdae1 commit 3ef42aa
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,35 +309,6 @@
icon_file = 'icons/obj/tapes.dmi'
json_config = 'code/datums/greyscale/json_configs/tape_piece_spikes_worn.json'

//
// BUCKETS
//

/datum/greyscale_config/buckets
name = "Buckets"
icon_file = 'icons/obj/service/janitor.dmi'
json_config = 'code/datums/greyscale/json_configs/buckets.json'

/datum/greyscale_config/buckets_worn
name = "Buckets Worn"
icon_file = 'icons/mob/clothing/head/utility.dmi'
json_config = 'code/datums/greyscale/json_configs/buckets.json'

/datum/greyscale_config/buckets_inhands_left
name = "Buckets Inhands Left"
icon_file = 'icons/mob/inhands/equipment/custodial_lefthand.dmi'
json_config = 'code/datums/greyscale/json_configs/buckets.json'

/datum/greyscale_config/buckets_inhands_right
name = "Buckets Inhands Right"
icon_file = 'icons/mob/inhands/equipment/custodial_righthand.dmi'
json_config = 'code/datums/greyscale/json_configs/buckets.json'

/datum/greyscale_config/buckets_cleanbot
name = "Buckets - Cleanbot"
icon_file = 'icons/mob/silicon/aibots.dmi'
json_config = 'code/datums/greyscale/json_configs/buckets_bot.json'

//
// MISC
//
Expand Down
15 changes: 0 additions & 15 deletions code/datums/greyscale/json_configs/buckets.json

This file was deleted.

54 changes: 0 additions & 54 deletions code/datums/greyscale/json_configs/buckets_bot.json

This file was deleted.

6 changes: 2 additions & 4 deletions code/modules/mob/living/basic/bots/cleanbot/cleanbot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
bot_type = CLEAN_BOT
hackables = "cleaning software"
additional_access = /datum/id_trim/job/janitor
greyscale_config = /datum/greyscale_config/buckets_cleanbot
possessed_message = "You are a cleanbot! Clean the station to the best of your ability!"
ai_controller = /datum/ai_controller/basic_controller/bot/cleanbot
///the bucket used to build us.
Expand Down Expand Up @@ -140,14 +139,14 @@
generate_ai_keys()
AddComponent(/datum/component/obeys_commands, pet_commands)
AddComponent(/datum/component/cleaner, \
base_cleaning_duration = 1 SECONDS, \
base_cleaning_duration = 2 SECONDS, \
pre_clean_callback = CALLBACK(src, PROC_REF(update_bot_mode), BOT_CLEANING), \
on_cleaned_callback = CALLBACK(src, PROC_REF(update_bot_mode), BOT_IDLE), \
)

GLOB.janitor_devices += src

var/obj/item/reagent_containers/cup/bucket/consistent/bucket_obj = new
var/obj/item/reagent_containers/cup/bucket/bucket_obj = new
bucket_obj.forceMove(src)

var/obj/item/mop/new_mop = new
Expand All @@ -166,7 +165,6 @@
. = ..()
if(istype(arrived, /obj/item/reagent_containers/cup/bucket) && isnull(build_bucket))
build_bucket = arrived
set_greyscale(build_bucket.greyscale_colors)
return

if(istype(arrived, /obj/item/mop) && isnull(our_mop))
Expand Down
4 changes: 1 addition & 3 deletions code/modules/mob/living/simple_animal/bot/construction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
/obj/item/bot_assembly/cleanbot
desc = "It's a bucket with a sensor attached."
name = "incomplete cleanbot assembly"
icon_state = "bucket_proxy"
greyscale_config = /datum/greyscale_config/buckets_cleanbot
icon_state = "cleanbot_assembly"
throwforce = 5
created_name = "Cleanbot"
var/obj/item/reagent_containers/cup/bucket/bucket_obj
Expand All @@ -61,7 +60,6 @@
if(bucket_obj && bucket_obj != arrived)
qdel(bucket_obj)
bucket_obj = arrived
set_greyscale(bucket_obj.greyscale_colors)
return ..()

/obj/item/bot_assembly/cleanbot/Exited(atom/movable/gone, direction)
Expand Down
23 changes: 2 additions & 21 deletions code/modules/reagents/reagent_containers/cups/_cup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,8 @@
inhand_icon_state = "bucket"
lefthand_file = 'icons/mob/inhands/equipment/custodial_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/custodial_righthand.dmi'
greyscale_colors = "#0085e5" //matches 1:1 with the original sprite color before gag-ification.
greyscale_config = /datum/greyscale_config/buckets
greyscale_config_worn = /datum/greyscale_config/buckets_worn
greyscale_config_inhand_left = /datum/greyscale_config/buckets_inhands_left
greyscale_config_inhand_right = /datum/greyscale_config/buckets_inhands_right
fill_icon_state = "bucket"
fill_icon_thresholds = list(50, 90)
custom_materials = list(/datum/material/iron=SMALL_MATERIAL_AMOUNT * 2)
w_class = WEIGHT_CLASS_NORMAL
amount_per_transfer_from_this = 20
Expand All @@ -380,31 +377,15 @@
ITEM_SLOT_DEX_STORAGE
)

/// Should this bucket randomize its colors?
var/randomize_colors = TRUE

/datum/armor/cup_bucket
melee = 10
fire = 75
acid = 50

/obj/item/reagent_containers/cup/bucket/Initialize(mapload, vol)
if (randomize_colors && greyscale_colors == initial(greyscale_colors))
set_greyscale(pick(list("#0085e5", COLOR_OFF_WHITE, COLOR_ORANGE_BROWN, COLOR_SERVICE_LIME, COLOR_MOSTLY_PURE_ORANGE, COLOR_FADED_PINK, COLOR_RED, COLOR_YELLOW, COLOR_VIOLET, COLOR_WEBSAFE_DARK_GRAY)))
return ..()

/obj/item/reagent_containers/cup/bucket/consistent
randomize_colors = FALSE

/obj/item/reagent_containers/cup/bucket/wooden
name = "wooden bucket"
icon_state = "woodbucket"
inhand_icon_state = "woodbucket"
greyscale_colors = null
greyscale_config = null
greyscale_config_worn = null
greyscale_config_inhand_left = null
greyscale_config_inhand_right = null
custom_materials = list(/datum/material/wood = SHEET_MATERIAL_AMOUNT * 2)
resistance_flags = FLAMMABLE
armor_type = /datum/armor/bucket_wooden
Expand Down
Binary file modified icons/mob/clothing/head/utility.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/equipment/custodial_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/equipment/custodial_righthand.dmi
Binary file not shown.
Binary file modified icons/mob/silicon/aibots.dmi
Binary file not shown.
Binary file modified icons/obj/medical/reagent_fillings.dmi
Binary file not shown.
Binary file modified icons/obj/service/janitor.dmi
Binary file not shown.

0 comments on commit 3ef42aa

Please sign in to comment.