Commit Graph

5 Commits

Author SHA1 Message Date
Henri215
74f998f22d Mop no longer fails to clean when used with 1 unit remaining (#20057) 2023-01-13 16:05:46 -05:00
FloFluoro
93e92381a9 Cmagged objects now use the same define on ADD_TRAIT (#19718) 2022-11-17 21:06:49 +01:00
FloFluoro
47d9783d70 Plant data disks can now be cmagged (#19273)
* Plant data disks can now be cmagged

* Changed usr to user

* Now uses update_appearance()
2022-10-08 12:03:43 +01:00
FloFluoro
58cccec340 Fixes non-moppers getting "you mopped the floor" notifications (#19277)
* Fixes non-moppers getting "you mopped the floor" notifications

* Adds missing argument to visible_message()
2022-10-04 10:15:00 -05:00
FloFluoro
6a876e1994 Standardize cleaning object behavior into "cleaning_act" proc (#19001)
* Standardizes cleaning item functionality into "cleaning_act" proc

* Culling commented-out code

* Damp rag now checks for humans before cleaning

* Change proc scoping, moved mop reagent check out of cleaning.dm

* Adds can_clean and post_clean procs to handle mopping, removes ismop parameter

* Adds can_clean() to cleaning objects/mobs

* cleaning_act() now carries message strings as params

* Refactored cleaning_act() for earlier returns and less redundancy

* cleaning_act now runs on the target atom, instead of the cleaning object

* Changed turf checks to overrides, rescoped clean_turf, lots of tidying

* Removed cleaner param from post_clean, since it'll always be src

* Code review tidying

* Tidying..........

* Removed clean_turf and put its functionality in turf/simulated/cleaning_act(), added new param to keep track of original targeted object

* Moved cleaning.dm from datums to code/game/objects

* Added early return, defined cleanspeed in seconds
2022-10-03 20:25:00 +01:00