generic pooled enumerators
guild event bcp
This commit is contained in:
parent
42bdaae3f1
commit
88488bc616
9 changed files with 645 additions and 476 deletions
|
|
@ -249,7 +249,7 @@ namespace Server.Items
|
|||
if ( direct )
|
||||
alchemyBonus = (int)(from.Skills.Alchemy.Value / (Core.AOS ? 5 : 10));
|
||||
|
||||
IPooledEnumerable eable = LeveledExplosion ? map.GetObjectsInRange( loc, ExplosionRange ) : map.GetMobilesInRange( loc, ExplosionRange );
|
||||
IPooledEnumerable eable = LeveledExplosion ? (IPooledEnumerable)map.GetObjectsInRange( loc, ExplosionRange ) : (IPooledEnumerable)map.GetMobilesInRange( loc, ExplosionRange );
|
||||
ArrayList toExplode = new ArrayList();
|
||||
|
||||
int toDamage = 0;
|
||||
|
|
|
|||
|
|
@ -687,9 +687,9 @@ namespace Server.Guilds
|
|||
pm.SendGump( new GuildInfoGump( pm, pm.Guild as Guild ) );
|
||||
}
|
||||
|
||||
public static BaseGuild EventSink_CreateGuild( CreateGuildEventArgs args )
|
||||
public static void EventSink_CreateGuild(CreateGuildEventArgs args)
|
||||
{
|
||||
return (BaseGuild)(new Guild( args.Id ));
|
||||
args.Guild = new Guild(args.Id);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -2592,7 +2592,7 @@ namespace Server.Mobiles
|
|||
#if Framework_4_0
|
||||
object valLock = new object();
|
||||
|
||||
Parallel.ForEach( eable.Cast<Mobile>(), m => {
|
||||
Parallel.ForEach(eable, m => {
|
||||
if (m.Deleted || m.Blessed)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue