Anonymous | Login | 2024-04-20 04:56 CEST |
Main | My View | View Issues | Change Log | Wiki | Tavern | News |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||||
0006147 | [DCSS] Bug Report | minor | always | 2012-09-02 02:34 | 2012-11-24 20:59 | ||||||||
Reporter | infiniplex | View Status | public | ||||||||||
Assigned To | Kate | ||||||||||||
Priority | normal | Resolution | done | ||||||||||
Status | resolved | Product Branch | 0.11 ancient branch | ||||||||||
Summary | 0006147: Teleporter teleport onto monster teleports it out of the way | ||||||||||||
Description |
There exists a LUA function for vault desgn that teleports the player. It is used in the Roulette of Golubria wizlab (and other places).you.teleport_to(my_slaves[1].x, my_slaves[1].y, true) If this function teleports the player on top of a monster, the monster is teleported (I think randomly). If the monster was visible before, there is a message: "_____ disappears!" I suspect that this behaviour is unintentional because the function is always wrapped in an if block to handle the case it fails. I also suspect that the code to use this function was written once and repeatedly copied, but that is besides the point. if you.teleport_to(my_slaves[1].x, my_slaves[1].y, true) then crawl.mpr("Your surroundings suddenly seem different!") else crawl.mpr("There is a strange hissing noise.") end I assumed that this function would fail (and return false) if the target cell was occupied. Monsters refuse to step on these teleporters (is this a bug?), so I was unable to test if the player could also be bumped. |
||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
|
Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |