Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@Altoids1
Copy link
Contributor

@Altoids1 Altoids1 commented Dec 29, 2019

Altoids releases Paperwork: 2!

image

Overview

This fixes a bunch of bugs created by the recent language overhaul with paper (#7268), especially with how it interacts with photocopiers.

Coder Warnings

While I was in there I made the maximum toner amount in photocopiers a #define called MAX_TONER, so, there's that.

This also involved the creation of a new var in all paper called color_override which lathers a new font color over the whole paper (provided all font color spans within have been already neutered), so that's a thing too. It doesn't automatically kill all fontcolor'd things on the paper to allow for clowns to write in crayon on copied pieces of paper.

Changelog

🆑 Altoids
bugfix: The paper icon should now update when it's written onto.
bugfix: Fixes photocopiers failing to copy paper with only player-written text.
bugfix: Fixes bug with handwritten paperfields always writing to bottom.
bugfix: Copies of copies of copies of copies of paper should now be capable of being faded out.
bugfix: Player-written text will now actually be printed black in photocopiers.
/:cl:

@Altoids1 Altoids1 added the Fix This fixes an issue. Please link issues in fix PRs label Dec 29, 2019
* Photocopier
*/

#define MAX_TONER 40 // The maximum amount of toner in the photocopier, as well as the amount of toner given by toner cartridges.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutly no need for a define here

var/obj/item/documents/doccopy = null
var/copies = 1 //how many copies to print!
var/toner = 40 //how much toner is left! woooooo~
var/toner = MAX_TONER //how much toner is left! woooooo~
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/toner = MAX_TONER //how much toner is left! woooooo~
var/toner = 40//how much toner is left! woooooo~

return
qdel(O)
toner = 40
toner = MAX_TONER
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
toner = MAX_TONER
toner = initial(toner)

@Altoids1
Copy link
Contributor Author

@alexkar598 It's a magic number used in more than one place. That's enough to merit a #define. I don't see the problem here.

@alexkar598
Copy link
Member

Its usage can be reduced to a single place and that would allow to make subtypes with more toner without having to change code

@AsV9 AsV9 added the Stale I'm closing this in like a week if you don't push a new commit label Jan 10, 2020
@AsV9 AsV9 removed the Stale I'm closing this in like a week if you don't push a new commit label Jan 13, 2020
Co-Authored-By: AsV9 <andreaslv99@hotmail.com>
@AsV9 AsV9 merged commit dcc8959 into yogstation13:master Jan 13, 2020
@Altoids1 Altoids1 deleted the paper-language branch January 17, 2020 03:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Fix This fixes an issue. Please link issues in fix PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants