Register  |  FAQ  |  Search  |  Memberlist  |  Usergroups  |  Log in 
Reply to topic
 Pentagram activation 
Malachai
Corporal
Corporal

Joined: 09 Aug 2016
Posts: 27
Reply with quote
I often find pentagrams with a grolm on top of it, sometimes up to 6 in a row. It'd be nice if this was changed so that pentagrams deactivate automatically even with someone on top.

Also being able to activate pents even if there's a grolm on top of it.
Just some QoL changes. Laughing
View user's profile Send private message
  
Lordlava
Greater God
Greater God

Joined: 16 Mar 2016
Posts: 1558
Location: The Land Down Under
Reply with quote
This always used to (deleted word) me off as well.

I have never tried to look for the area of the code that manages this.

_________________
The Lord of Molten Rocks
View user's profile Send private message
  
Malachai
Corporal
Corporal

Joined: 09 Aug 2016
Posts: 27
Reply with quote
I found this in the use_driver.c, line 2631 on the use_driver function:
Code:
if (!carried) {
        m=it[in].x+it[in].y*MAPX;
        if (map[m].ch || map[m].to_ch) return;
}


Haven't tested it but from what I can see, if the object isn't take-able it checks if there's a character in the same spot this object is in. If there is, the function stops there.

Also found this in the same file, line 3176 on the item_tick_expire function (which I assume is when pents deactivate):
Code:
if (may_deactivate(in) && !map[m].ch && !map[m].to_ch)

It also checks if there's a character on top when attempting to deactivate the object once its active duration expires.
View user's profile Send private message
  
Rizpah
Corporal
Corporal

Joined: 14 Apr 2016
Posts: 30
Reply with quote
To all that is righteous and good in life, please make this happen. So annoying when you are about to touch a pent and one walks on it right as you are touching or just so happens to spawn one. Happens way too often imo.
View user's profile Send private message
  
LazyWarrior
Baron of Aranock
Baron of Aranock

Joined: 03 Apr 2016
Posts: 759
Location: Temple of Aranock
Reply with quote
I think it acts like this because of other usable objects like doors, if they were toggleable with people on them... it would be quite unpleasant for the person in the door. Although if u can make it work specifically for pents that would be cool and I'm for this.
View user's profile Send private message
  
Malachai
Corporal
Corporal

Joined: 09 Aug 2016
Posts: 27
Reply with quote
I believe you can just check if the object in question doesn't use driver 33 (which is the one used by pents). This way only pents won't check for characters above them.
View user's profile Send private message
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic