Page 4 of 10
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:03 pm
by petri
Diarmuid wrote:oh, I just realized:
item:onEquip(slot) ! Simple but super super super super useful.
I agree!
- added Item:onEquipItem(champion, slot) and Item:onUnequipItem(champion, slot) hooks (works for all inventory slots)
I'm going to have a short break.. need more GLÖÖGG!
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:06 pm
by Komag
I think these guys have the requests covered, I just want to say thanks petri, you're awesome for this!
- oops, one little request, method to removeConnector(event, target, action)
- uh, one more pair, Monster:getAIState(), Monster:getLevel()
(that would help for custom mod difficultly levels, or special challenges depending on previous party actions or possessions)
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:11 pm
by petri
JKos wrote:petri wrote:Grimwold wrote:shootProjectile() to reference the same flags bitfield as damageTile() so that the originator ordinal can be used
The projectile code is rather limited at the moment... I could add "championOrdinal" argument to shootProjectile() which indicates the champion who casted the projectile. Is this good enough?
Yes please, and it would be nice if shootProjectile could return the shot projectile id or the actual entity.
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:16 pm
by Grimwold
petri wrote:JKos wrote:petri wrote:The projectile code is rather limited at the moment... I could add "championOrdinal" argument to shootProjectile() which indicates the champion who casted the projectile. Is this good enough?
Yes please, and it would be nice if shootProjectile could return the shot projectile id or the actual entity.
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
Great! thanks Petri!
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:17 pm
by LordYig
Komag wrote:I just want to say thanks petri, you're awesome for this!

I support this statement One thousand times and even more !
You
(grim)...Rocks !
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:21 pm
by Xanathar
I just want to say thanks petri, you're awesome for this!

I totally agree! The support AH dedicates to us is awesome!
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:21 pm
by JKos
petri wrote:
Ok, added optional 15th (!!) argument championOrdinal to shootProjectile.
shootProjectile should really use named arguments......
Or you can just remove all offset arguments because they don't seem to work

Anyway thanks a lot!
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:23 pm
by petri
Thanks guys
- added Monster:setPosition(x, y, level, facing) and Party:setPosition(x, y, level ,facing) (note the order of parameters is inconsistent with other methods, usually they're level, x, y, facing, because of legacy things related to how teleporting is implemented)
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:24 pm
by JohnWordsworth
@JKOS: Haha, that's a good point. Those offset parameters would be nice to use

.
Also agree with everyone else - if I could buy you more glogg right now from behind my desk, I would definitely do so! (Seriously!)
Re: Petri consumes glögg and codes with you
Posted: Tue Dec 04, 2012 8:26 pm
by petri
Cheers JohnWordsworth !
Hmm, what next...? dialoque & ai requests are too big to handle right now...