Thread Rating:
  • 5 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Bug] Surgical tray change
#3
Updated:

It occurred to me to test if pulling an item off of the tray with the pull verb might break my change. And it does, so I decided to fix it. My fix for this also fixes the commonly experienced bug where you can use the pull-click to pull mobs or items out of the morgue or genetics scanners. Sorry. I thought about not fixing it and just making it so that you can pull items off the tray, but that would mean making 3 changes to turf.dm for a single object's special use. Much better to make 3 changes to fix a bug, even if some people use it for fun.

Basically I just added a check for if the object being pull-clicked's loc is an object and if they're in that object's contents. This is in turf/simulated, turf/unsimulated, and turf/space. You'll need to add it to turf/oshan_floor or whatever itc called. I suppose I am redundantly checking to see if the pulled object is in the container object's contents. But I didn't know or care enough to say if there's an edge case so better safe than sorry...


https://github.com/goonstation/goonstati...efd983d89d

Edit: Fixed that original bug with the throwing at objects. Had to add a check in proc/throw_at . You can take or leave it, it's only in the very last commit: https://github.com/goonstation/goonstati...6bf1976f8b
Reply


Messages In This Thread
[Bug] Surgical tray change - by kyle2143 - 01-28-2019, 04:45 PM
RE: [Bug] Surgical tray change - by New525 - 01-30-2019, 10:45 AM
RE: [Bug] Surgical tray change - by kyle2143 - 02-20-2019, 12:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)