public void SetMapData(MapGrid newMapGrid, MapSquare mapSquare, HackTarget newHackTarget)
 {
     mapGrid          = newMapGrid;
     currentMapSquare = mapSquare;
     hackTarget       = newHackTarget;
     trapType         = mapSquare.GetTriggeredTrapType();
 }
Ejemplo n.º 2
0
 public void GetDataFromMapSquare(MapSquare newCurrentSquare)
 {
     mapSquare   = newCurrentSquare;
     enemyId     = GetEnemyIDFromMapSquare(newCurrentSquare);
     enemyLoaded = true;
     trapType    = mapSquare.GetTriggeredTrapType();
     trapAmount  = mapSquare.GetTriggeredTrapAmount();
 }
Ejemplo n.º 3
0
    private bool PostMovementActions(MapSquare currentSquare)
    {
        CheckRegen();
        AttemptToSpawnEnemy();

        // Elecrified Zone
        if (currentSquare.GetTriggeredTrapType() == MapObject.TrapTypes.ElectrifiedZone)
        {
            runner.TakeDamageFromMap(currentSquare.GetTriggeredTrapAmount());
        }

        RaiseSecurityLevel(currentSquare);
        bool didTrapsSpring = TrapsSpring(currentSquare);

        if (didTrapsSpring)
        {
            return(false);
        }
        else
        {
            return(true);
        }
    }