public void onArmor(PieceArmorChangeModel m) { addGenericHistory(m.pieceId, m.activatingPieceId); }
public void onArmorChange(PieceArmorChangeModel armorChange) { var piece = pieces.Piece(armorChange.pieceId); if(piece == null) return; var view = piece.pieceView; if (armorChange.change != 0) { animationQueue.Add( new PieceView.UpdateArmorAnim() { text = view.armorText, textGO = view.armorGO, textBG = view.armorBG, current = view.piece.armor, change = armorChange.change, piece = view.piece } ); } }